// Load External Site links in a new window

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

// Thumbnail Images load Full Size in fitted Window

function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop,imagePath) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">');
	newWindow.document.write('<html><head><title>'+alt+'</title></head><body style="margin:0; padding:0; border:0;"'); 
	if (imageType == "swf"){
	newWindow.document.write('>'); 
	newWindow.document.write('<script type=\"text/javascript\">');
	newWindow.document.write('AC_FL_RunContent( \'codebase\',\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\',\'width\',\''+imageWidth+'\',\'height\',\''+imageHeight+'\',\'src\',\''+imagePath+'\',\'quality\',\'high\',\'pluginspage\',\'http://www.macromedia.com/go/getflashplayer\',\'movie\',\''+imagePath+'\' );');
	newWindow.document.write('</script>');
	newWindow.document.write('<div style=\"margin:0; padding:0; border:0;\"><object type=\"application/x-shockwave-flash\" data=\"/banner/leaderboard.swf\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=\"movie\" value=\"'+imageName+'\" /><param name=\"quality\" value=\"high\" />');
	newWindow.document.write('</object></div>');	}else{
	newWindow.document.write(' onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}