function TJKpopAppPdf(){ // v1.0 | www.TJKDesign.com
var zA=document.getElementsByTagName("a");
	for (var i=0;i<zA.length;i++){
	// if the type value contains "application/pdf" or if the href value contains "PDF" or if the file is in a "PDF" folder then we have a winner
		if (zA[i].getAttribute("href") != null && (zA[i].getAttribute("type") == "application/pdf" || zA[i].getAttribute("href").toUpperCase().indexOf(".PDF") >= 0 || zA[i].getAttribute("href").toUpperCase().indexOf("PDF/") >= 0)){
		zA[i].title+=" (opens in new window)";
		zA[i].className+=zA[i].className?" pdfFile":"pdfFile";
		// This spawns multiple windows, but works fine with popup blockers
		zA[i].target="_blank";
		// This opens a unique window and brings it in front of the opener each time the user clicks on the link
		// Note that the new window opens without a toolbar. This is to avoid further conusion for the visitor 
		zA[i].onclick=function() {newWin=window.open(this.href,"TJKWin","toolbar=no");if( window.focus){newWin.focus()} return false;}
		}
	}
}