// JavaScript Documentfunction openCenterWindow(URL,winName,w,h,features) {  // if screen.dimension is true (available),   // then calculate the position using that value, else use a fixed value  xPos = (screen.width) ? (screen.width-w)/2 : 50;  yPos = (screen.height) ? (screen.height-h)/2 : 50;    // assemble all window settings from calculations and parameters  settings = 'height='+h+',width='+w+',top='+yPos+',left='+xPos+','+features    // open the window and bring it to front  thisWin=window.open(URL,winName,settings);  thisWin.focus();}//Check to see if Netscape 4, if so, run functionif (document.layers){ self.location.href="detect.html";}// Correctly handle PNG transparency in Win IE 5.5 or higher.// http://homepage.ntlworld.com/bobosola. Updated 02-March-2004function correctPNG()    {   for(var i=0; i<document.images.length; i++)      {	  var img = document.images[i]	  var imgName = img.src.toUpperCase()	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")	     {		 var imgID = (img.id) ? "id='" + img.id + "' " : ""		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "		 var imgStyle = "display:inline-block;" + img.style.cssText 		 if (img.align == "left") imgStyle = "float:left;" + imgStyle		 if (img.align == "right") imgStyle = "float:right;" + imgStyle		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle				 var strNewHTML = "<span " + imgID + imgClass + imgTitle		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 		 img.outerHTML = strNewHTML		 i = i-1	     }      }   }window.attachEvent("onload", correctPNG);function highlightCurrentLink() {  	var currentLocation = document.location.href;	var targetNode;	targetNode = document;		// You can speed up this script, by preventing it searching through the entire document	// Uncomment the line below, and it will only search through the tag with ID 'navigation'		//targetNode = document.getElementById("navigation");		links = targetNode.getElementsByTagName("a");	// Search thorugh all links	for (i=0; i<links.length; i++) {		linkHref = links[i].href;				if (linkHref==currentLocation) {			// Set class for different browsers, if link is this link			links[i].setAttribute("className", "currentlink");			links[i].setAttribute("class", "currentlink");      		}	}}// Piggy-back fucntion onto onLoad event ............................................function addLoadEvent(func) {  var oldonload = window.onload;  if (typeof window.onload != 'function') {    window.onload = func;  } else {    window.onload = function() {      oldonload();      func();    }  }}addLoadEvent(highlightCurrentLink);