var linkIcons=function(){var g=navigator.appName;var h=(g=="Microsoft Internet Explorer")?true:false;var j=parseInt(navigator.appVersion);var k=(h==true)?"cssText":"style";this.begin=function(){var a=document.getElementsByTagName("a");var b=a.length;for(var i=0;i<b;i++){this.linkParse(a[i])}};this.linkParse=function(a){var b=a.getAttribute("onclick");if(b==null){b=""}b=b.toString();var c=a.getAttribute("href");if(c==null){c=""}c=c.toString();var d=c.substring(c.length-4,c.length).toLowerCase();if(b.indexOf("return !namedWindow")>-1||c.indexOf("return !namedWindow")>-1||b.indexOf("siteWindow(")>-1||c.indexOf("siteWindow(")>-1){if(a.getAttribute("noimage")!="true"){var e=a.getAttribute(k);if(e==null){e=""}e+="background:url('/templates/default/_images/icons/external.png') no-repeat scroll right center;padding-right:10px;";if(h){a.style.cssText=e}else{a.setAttribute("style",e)}}}if(c.indexOf("/login")>-1&&c.indexOf("p=")==-1){var f=encodeURIComponent(""+window.location);if(c.indexOf("?")==-1){c+=("?p="+f)}else{c+=("&p="+f)}a.setAttribute("href",c)}if(d==".pdf"){var e=a.getAttribute(k);if(e==null){e=""}e+="background:url('/templates/default/_images/icons/page_white_acrobat.png') no-repeat scroll left center;padding-left:20px;";if(h){a.style.cssText=e}else{a.setAttribute("style",e)}return}if(d==".zip"){var e=a.getAttribute(k);if(e==null){e=""}e+="background:url('/templates/default/_images/icons/page_white_compressed.png') no-repeat scroll left center;padding-left:20px;";if(h){a.style.cssText=e}else{a.setAttribute("style",e)}return}if(d==".xls"){var e=a.getAttribute(k);if(e==null){e=""}e+="background:url('/templates/default/_images/icons/page_white_excel.png') no-repeat scroll left center;padding-left:20px;";if(h){a.style.cssText=e}else{a.setAttribute("style",e)}return}if(d==".swf"){var e=a.getAttribute(k);if(e==null){e=""}e+="background:url('/templates/default/_images/icons/page_white_flash.png') no-repeat scroll left center;padding-left:20px;";if(h){a.style.cssText=e}else{a.setAttribute("style",e)}return}if(d==".doc"||d=="docx"){var e=a.getAttribute(k);if(e==null){e=""}e+="background:url('/templates/default/_images/icons/page_white_word.png') no-repeat scroll left center;padding-left:20px;";if(h){a.style.cssText=e}else{a.setAttribute("style",e)}return}if(d==".jpg"||d==".bmp"||d==".png"||d==".gif"||d==".jpeg"){var e=a.getAttribute(k);if(e==null){e=""}e+="background:url('/templates/default/_images/icons/image.png') no-repeat scroll left center;padding-left:20px;";if(h){a.style.cssText=e}else{a.setAttribute("style",e)}return}}}
