	var sImgExpandedArrow = "";	
 	var sImgDefaultArrow = "";
	var sBW = "";
	var vcookiebtn = "";

	var vtmpsubmit;
	
	function vsubmit(vtmpstr) {
		vtmpsubmit = vtmpstr;
	}

	if (navigator.appName == "Microsoft Internet Explorer") {
		sBW = "Microsoft Internet Explorer";
	}
	else if (navigator.appName == "Netscape") {
		sBW = "Netscape";
	}

	function chngtrcolor(sID,clr1,clr2) {
		if (sBW == "Microsoft Internet Explorer") {
			var otbl = document.all.item(sID);
		}
		else if (sBW == "Netscape") {
			var otbl = document.getElementById(sID);
		}
		
		if (otbl.className == clr1) {
			otbl.className = clr2;
		}
		else if (otbl.className == clr2) {
			otbl.className = clr1;
		}
	}

	function chngfntclass(sID,clr1,clr2) {
		if (sBW == "Microsoft Internet Explorer") {
			var otblfnt = document.all.item(sID);
		}
		else if (sBW == "Netscape") {
			var otblfnt = document.getElementById(sID);
		}
		
		if (otblfnt.className == clr1) {
			otblfnt.className = clr2;
		}
		else if (otblfnt.className == clr2) {
			otblfnt.className = clr1;
		}
	}

	function chngimg(sID,img1,img2, st) {
		if (sBW == "Microsoft Internet Explorer") {
			var oImage = document.all.item(sID);
		}
		else if (sBW == "Netscape") {
			var oImage = document.getElementById(sID);
		}
		
		if (st == 'on') {
			oImage.src = img2;
		}
		else if (st == 'off') {
			oImage.src = img1;
		}
	}

	function chngimg1(sID,img1,img2) {
		if (sBW == "Microsoft Internet Explorer") {
			var oImage = document.all.item(sID);
		}
		else if (sBW == "Netscape") {
			var oImage = document.getElementById(sID);
		}
		
		if (oImage.alt == 'Collapse') {
			oImage.src = img2;
			oImage.alt = 'Expand';
		}
		else if (oImage.alt == 'Expand') {
			oImage.src = img1;
			oImage.alt = 'Collapse';
		}
	}

	function showhidedetails(sID) {
		if (sBW == "Microsoft Internet Explorer") {
			var otbl1 = document.all.item(sID);
		}
		else if (sBW == "Netscape") {
			var otbl1 = document.getElementById(sID);
		}

		if (otbl1.style.display == "none") {
			otbl1.style.display = "";
		}
		else if (otbl1.style.display == "") {
			otbl1.style.display = "none";
		}
	}

	function chngview(sID) {
		if (sBW == "Microsoft Internet Explorer") {
			var otbl1 = document.all.item("tr"+sID);
			var otblttl = document.all.item("title"+sID);
		}
		else if (sBW == "Netscape") {
			var otbl1 = document.getElementById("tr"+sID);
			var otblttl = document.getElementById("title"+sID);
		}

		if (otbl1.style.display == "none") {
			otbl1.style.display = "";
			otblttl.className = "fmtback2";
		}
		else if (otbl1.style.display == "") {
			otbl1.style.display = "none";
			otblttl.className = "fmtback1";
		}
	}

	function openDesc(vUrl) {
		window.open(vUrl,'Details','height=550,width=700,left=50,top=100,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no',true);
	}

	function MM_reloadPage(init) {  //reloads the window if Nav4 resized
		if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
			document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
		else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
	}

	function ltrim(argvalue) {
		while (1) {
	    		if (argvalue.substring(0, 1) != " ")
	      		break;
	    		argvalue = argvalue.substring(1, argvalue.length);
		}
	 	return argvalue;
	}

	function rtrim(argvalue) {
		while (1) {
			if (argvalue.substring(argvalue.length - 1, argvalue.length) != " ")
			break;
			argvalue = argvalue.substring(0, argvalue.length - 1);
		}
		return argvalue;
	}

	function trim(argvalue) {
		var tmpstr = ltrim(argvalue);
		return rtrim(tmpstr);
	}

	function numCheck(argvalue) {
	var digits = "0123456789.";
		if (argvalue.length == 0)
		return false;

		for (var n = 0; n < argvalue.length; n++)
			if (digits.indexOf(argvalue.substring(n, n+1)) == -1)
			return false;
		return true;
	}

	function isEmail(argvalue) {
		if (argvalue.indexOf(" ") != -1)
			return false;
		else if (argvalue.indexOf("@") == -1)
    			return false;
		else if (argvalue.indexOf("@") == 0)
			return false;
		else if (argvalue.indexOf("@") == (argvalue.length-1))
			return false;

		// arrayString = argvalue.split("@"); (works only in netscape3 and above.)
		var retSize = customSplit(argvalue, "@", "arrayString");

		if (arrayString[1].indexOf(".") == -1)
			return false;
		else if (arrayString[1].indexOf(".") == 0)
    			return false;
		else if (arrayString[1].charAt(arrayString[1].length-1) == ".") {
			return false;
		}
		return true;
	}

	function customSplit(strvalue, separator, arrayName) {
  		var n = 0;

  		if (separator.length != 0) {
			while (strvalue.indexOf(separator) != -1) {
				eval("arr"+n+" = strvalue.substring(0, strvalue.indexOf(separator));");
				strvalue = strvalue.substring(strvalue.indexOf(separator)+separator.length,
				strvalue.length+1);
				n++;
			}
			eval("arr" + n + " = strvalue;");
			arraySize = n+1;
		}
  		else {
			for (var x = 0; x < strvalue.length; x++) {
				eval("arr"+n+" = \"" + strvalue.substring(x, x+1) + "\";");
				n++;
			}
			arraySize = n;
		}

		eval(arrayName + " = new makeArray(arraySize);");

		for (var i = 0; i < arraySize; i++)
		eval(arrayName + "[" + i + "] = arr" + i + ";");

		return arraySize;
	}

	function makeArray(IntarrSize) {
		for (var n = 0; n < IntarrSize; n++)
		this[n] = "";
		return this;
	}

	function fshowdetails(vtr) {
		if (sBW == "Microsoft Internet Explorer") {
			var otr = document.all.item(vtr);
		}
		else if (sBW == "Netscape") {
			var otr = document.getElementById(vtr);
		}
	
		if (otr.style.display == "") {
			otr.style.display = "none";
		}
		else if (otr.style.display == "none") {
			otr.style.display = "";
		}
	}

function When(info){
	// When
	    	var rightNow = new Date()
		var WWHTime = 0;
		WWHTime = GetCookie('WWhenH')
		
		WWHTime = WWHTime * 1
	        /*This part is written by 
		Cut & Paste JavaScript  
		Copyright 1996, IMA STUDIOS, Inc.  
		This code may not be resold.
		This Copyright notice must be included
		on every document that contains this code.
		A link to http://www.imastudios.com should
		be included somewhere on your document. 
		*/
		var lastHereFormatting = new Date(WWHTime);  // Date-i-fy that number
	        var intLastVisit = (lastHereFormatting.getYear() * 10000)+(lastHereFormatting.getMonth() * 100) + lastHereFormatting.getDate()
	        var lastHereInDateFormat = "" + lastHereFormatting;  // Gotta use substring functions
	        var dayOfWeek = lastHereInDateFormat.substring(0,3)
	        var dateMonth = lastHereInDateFormat.substring(4,11)
	        var timeOfDay = lastHereInDateFormat.substring(11,16)
	        var year = lastHereInDateFormat.substring(23,25)
	        var WWHText = dayOfWeek + ", " + dateMonth + " at " + timeOfDay // display


	
		SetCookie ("WWhenH", rightNow.getTime(), exp)

	return WWHText;
}

function getCookieVal (offset) {  
	var endstr = document.cookie.indexOf (";", offset);  
	if (endstr == -1)    
		endstr = document.cookie.length;  
		return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
	var j = i + alen;    
	if (document.cookie.substring(i, j) == arg)      
		return getCookieVal (j);    
		i = document.cookie.indexOf(" ", i) + 1;    
		if (i == 0) break;   
	}  
	return null;
}

function SetCookie (name, value) {  
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}

function DeleteCookie (name) {  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	// This cookie is history  
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();

}

	function chngsteps(sID) {
		if (sBW == "Microsoft Internet Explorer") {
			var otbl1 = document.all.item("step1");
			var otbl2 = document.all.item("step2");
			var otbl3 = document.all.item("step3");
		}
		else if (sBW == "Netscape") {
			var otbl1 = document.getElementById("step1");
			var otbl2 = document.getElementById("step2");
			var otbl3 = document.getElementById("step3");
		}

		otbl1.style.display = "none";
		otbl2.style.display = "none";
		otbl3.style.display = "none";

		if (sID == "1") {
			otbl1.style.display = "";
		}
		else if (sID == "2") {
			otbl2.style.display = "";
		}
		else if (sID == "3") {
			otbl3.style.display = "";
		}
	}

	function chngCLick(sID) {
		if (sBW == "Microsoft Internet Explorer") {
			var otbl = document.all.item("Tbl" + sID);
			var ofont = document.all.item("font" + sID);
		}
		else if (sBW == "Netscape") {
			var otbl = document.getElementById("Tbl" + sID);
			var ofont = document.getElementById("font" + sID);
		}
		
		otbl.className = "MenuClick";
		ofont.className = "mfclick";
	}

	function chngArrow(sID) {
		if (sBW == "Microsoft Internet Explorer") {
			var otbl = document.all.item("Tbl" + sID);
			var ofont = document.all.item("font" + sID);
		}
		else if (sBW == "Netscape") {
			var otbl = document.getElementById("Tbl" + sID);
			var ofont = document.getElementById("font" + sID);
		}
		
		if (otbl.className == "MenuHover") {
			otbl.className = "MenuPlain";
			ofont.className = "mfplain";
		}
		else if (otbl.className == "MenuPlain") {
			otbl.className = "MenuHover";
			ofont.className = "mfhover";
		}
		else if (otbl.className == "MenuClick") {
			otbl.className = "MenuClick";
			ofont.className = "mfclick";
		}
	}