/* CSSでPDFやExcelなどのリンクに自動でアイコンを付ける方法 http://www.css-lecture.com/ */
/* 外部リンク要素  */
a[href ^="http"]	{ padding: 4px 20px 4px 0; background: url(../common/icon/external.gif) no-repeat 100% 50%; }
* html a.external	{ padding: 4px 20px 4px 0; background: url(../common/icon/external.gif) no-repeat 100% 50%; }
/* mailto要素 ---- */
a[href ^="mailto:"]	{ padding: 4px 20px 4px 0; background: url(../common/icon/mailto.gif) no-repeat 100% 50%; }
* html a.mailto		{ padding: 4px 20px 4px 0; background: url(../common/icon/mailto.gif) no-repeat 100% 50%; }
/* pdf要素 ---- */
a[href $=".pdf"]	{ padding: 4px 20px 4px 0; background: url(../common/icon/pdf.gif) no-repeat 100% 50%; }
* html a.pdf	{ padding: 4px 20px 4px 0; background: url(../common/icon/pdf.gif) no-repeat 100% 50%; }
/* doc要素 ---- */
a[href $=".doc"]	{ padding: 4px 20px 4px 0; background: url(../common/icon/doc.gif) no-repeat 100% 50%; }
* html a.doc	{ padding: 4px 20px 4px 0; background: url(../common/icon/doc.gif) no-repeat 100% 50%; }
/* docx要素 ---- */
a[href $=".docx"]	{ padding: 4px 20px 4px 0; background: url(../common/icon/doc.gif) no-repeat 100% 50%; }
* html a.docx	{ padding: 4px 20px 4px 0; background: url(../common/icon/doc.gif) no-repeat 100% 50%; }
/* xls要素 ---- */
a[href $=".xls"]	{ padding: 4px 20px 4px 0; background: url(../common/icon/xls.gif) no-repeat 100% 50%; }
* html a.xls	{ padding: 4px 20px 4px 0; background: url(../common/icon/xls.gif) no-repeat 100% 50%; }
/* xlsx要素 ---- */
a[href $=".xlsx"]	{ padding: 4px 20px 4px 0; background: url(../common/icon/xls.gif) no-repeat 100% 50%; }
* html a.xlsx	{ padding: 4px 20px 4px 0; background: url(../common/icon/xls.gif) no-repeat 100% 50%; }
/* zip要素 ---- */
a[href $=".zip"]	{ padding: 4px 20px 4px 0; background: url(../common/icon/zip.gif) no-repeat 100% 50%; }
* html a.zip	{ padding: 4px 20px 4px 0; background: url(../common/icon/zip.gif) no-repeat 100% 50%; }

/* IE-6要素 ----------------------------------------------------------- */
* html a	{
	behavior: expression(
	this.className += this.getAttribute("href").match(/^http.*/) ? " external" : "",
	this.className += this.getAttribute("href").match(/^mailto.*/) ? " mailto" : "",
	this.className += this.getAttribute("href").match(/\.pdf$/) ? " pdf" : "",
	this.className += this.getAttribute("href").match(/\.doc$/) ? " doc" : "",
	this.className += this.getAttribute("href").match(/\.xls$/) ? " xls" : "",
	this.className += this.getAttribute("href").match(/\.zip$/) ? " zip" : "",
	this.style.behavior = "none"
	);
}

/* use this class to make sure that images won't get iconized */
.imageLink {
	padding-right: 0px !important;
	background: none !important;
}
