// JavaScript Document<!--function change(id, newClass) { layer=document.getElementById(id); layer.className=newClass;}function switchlink(){	if(view=="Detail"){		change("switchtodetail", "hidden");		change("switchtobrief", "showing");		//alert("cookie is brief so change to hide");	}else{		change("switchtobrief", "hidden");		change("switchtodetail", "showing");	//	alert("this is the else part");	}}function P7_swapClass(){ //v1.4 by PVII var i,x,tB,j=0,tA=new Array(),arg=P7_swapClass.arguments; if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);  for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){  if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}  }else if(arg[0]==1 && arg[1]=='none'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}  }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}}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";}//show hide function for cookie alertfunction showhide(layer_ref) {//if (state == 'block') {//state = 'none'; //} //else { state = "block"; //alert(layer_ref);//} if (document.all) { //IS IE 4 or 5 (or 6 beta)eval("document.all." + layer_ref + ".style.display = state");} if (document.layers) { //IS NETSCAPE 4 or belowdocument.layers[layer_ref].display = state;} if (document.getElementById &&!document.all) {hza = document.getElementById(layer_ref);hza.style.display = state;//alert(state);} } // set a cookiefunction getCookie(name) {    for (i=0; i < bites.length; i++) {      nextbite = bites[i].split("="); // break into name and value      if (nextbite[0] == name) // if name matches        return unescape(nextbite[1]); // return value    }    return null; // if no match return null  }  var today = new Date();  var expiry = new Date(today.getTime() + 24 * 60 * 60 * 1000); // plus 1 day  function setCookie(name, value) { // use: setCookie("name", value);    if (value != null && value != "")      document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString();    bites = document.cookie.split("; "); // update cookie bites  }// Check to see if cookies enabledfunction checkCookies(){	setCookie("test", "on");	var test =getCookie("test");	cookieEnabled=(test=="on")? true : false;	setCookie("test", "idle"); //erase dummy value	if (cookieEnabled==false) {		//document.location = "cookieAlert.html";	//showhide('cookiealert'); this would pass the value but did not follow through in html	showhide('cookiealert');	}}function videodetect(){var OS = navigator.platform;//alert(OS);if (OS == "MacPPC"){	//document.location.href = "howweworkqt.html";	openCenterWindow("popup/video.html","Video","450","435","dependent=1,directories=0,location=0,menubar=0,resizable=0,scrollbars=0,toolbar=0");	//alert(OS);	}	else {		//document.location.href = "howweworkswf.html";	openCenterWindow("popup/videoswf.html","Video","450","435","dependent=1,directories=0,location=0,menubar=0,resizable=0,scrollbars=0,toolbar=0");	//alert("This is a PC!")}}