/* -- Adobe GoLive JavaScript Library *//* -- Global Functions */CSStateArray = new Object;CSCookieArray = new Object;CSCookieValArray = new Object;

function CSDefineState(action) {	CSCookieArray[action[1]] = action[3]; }function CSSetState(action) {	CSStateArray[action[1]] = action[2];}function CSInitState(action) {	if(typeof(CSStateArray[action[1]]) == "undefined")		CSStateArray[action[1]] = action[2];}function CSCheckState(action) {	var obj1 = CSStateArray[action[1]];	var obj2 = action[2];	if(typeof(obj1) == "object") {		for(var i=0;i<obj1.length;i++) {			if(obj1[i] != obj2[i])				return false;			}		return true;		}	var res;	var op = action[3];		     if(op == "==") res = (CSStateArray[action[1]] == action[2]);			else if(op == "!=") res = (CSStateArray[action[1]] != action[2]);			else if(op == ">" ) res = (CSStateArray[action[1]] >  action[2]);			else if(op == ">=") res = (CSStateArray[action[1]] >= action[2]);			else if(op == "<" ) res = (CSStateArray[action[1]] <  action[2]);			else if(op == "<=") res = (CSStateArray[action[1]] <= action[2]);		return res;}function CSGetImage(n) {if(document.images) {return ((!IsIE()&&CSBVers<5)?CSFindElement(n,0):document.images[n]);} else {return null;}}CSDInit=false;function CSDisposeTransElement (el) { el.locked = false; }function CSScriptInit() {if(typeof(skipPage) != "undefined") { if(skipPage) return; }idxArray = new Array;for(var i=0;i<CSInit.length;i++)	idxArray[i] = i;CSAction2(CSInit, idxArray);}CSInit = new Array;CSExit = new Array;CSStopExecution=false;function CSILoad(action) {	im=action[1];	if (document.images) {		CSIm[im]=new Object();		for (var i=2;i<5;i++) {			if (action[i]!='') {CSIm[im][i-2]=new Image(); CSIm[im][i-2].src=action[i];}			else CSIm[im][i-2]=0;		}		CSIm[im][3] = action[5];	}}function newImage(arg) {	if (document.images) {		rslt = new Image();		rslt.src = arg;		return rslt;	}}function changeImagesArray(array) {	if (preloadFlag == true) {		var d = document; var img;		for (i=0;i<array.length;i+=2) {			img = null; var n = array[i];			if (d.images) {				if (d.layers) {img = findElement(n,0);}				else {img = d.images[n];}			}			if (!img && d.getElementById) {img = d.getElementById(n);}			if (!img && d.getElementsByName) {				var elms = d.getElementsByName(n);				if (elms) {					for (j=0;j<elms.length;j++) {						if (elms[j].src) {img = elms[j]; break;}					}				}			}			if (img) {img.src = array[i+1];}		}	}}function changeImages() {	changeImagesArray(changeImages.arguments);}function toggleImages() {	for (var i=0; i<toggleImages.arguments.length; i+=2) {		if (selected == toggleImages.arguments[i])			changeImagesArray(toggleImages.arguments[i+1]);	}}function CSURLPopupShow(formName, popupName, target) {	var form  = (!IsIE()&&CSBVers>=5)?document.forms[formName]:CSFindElement(formName);	var popup = form.elements[popupName];	window.open(popup.options[popup.selectedIndex].value, target);	popup.selectedIndex = 0;}function CSCloseWindow() { if (self.parent.frames.length != 0) {	self.parent.close()		} else {	window.close()	}}function dailyImageURL(action) {var dateArray = newinitIArray("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");var today = new Date();var day = dateArray[today.getDay()];if (today.getDay() == 0) { day = "Sunday"; }var img = null;if (document.images) {	if (!IsIE()&&CSBVers<5) img = CSFindElement(action[1],0);	else img = document.images[action[1]];		if (img) {			if (day == "Monday" && action[2] != "(Empty Reference!)" && action[2] != "(EmptyReference!)") img.src = action[2]			if (day == "Tuesday" && action[3] != "(Empty Reference!)" && action[3] != "(EmptyReference!)") img.src = action[3]			if (day == "Wednesday" && action[4] != "(Empty Reference!)" && action[4] != "(EmptyReference!)") img.src = action[4]			if (day == "Thursday" && action[5] != "(Empty Reference!)" && action[5] != "(EmptyReference!)") img.src = action[5]			if (day == "Friday" && action[6] != "(Empty Reference!)" && action[6] != "(EmptyReference!)") img.src = action[6]			if (day == "Saturday" && action[7] != "(Empty Reference!)" && action[7] != "(EmptyReference!)") img.src = action[7]			if (day == "Sunday" && action[8] != "(Empty Reference!)" && action[8] != "(EmptyReference!)") img.src = action[8]		}  }  }function initArray() {this.length = initArray.arguments.length;for (var i = 0; i < this.length; i++)this[i+1] = initArray.arguments[i]; }function dailyRedirect(action) {var dateArray = newinitArray("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");var today = new Date();var day = dateArray[today.getDay()];if (today.getDay() == 0) { day = "Sunday"; }if (day == "Monday" && action[1] != "(Empty Reference!)" && action[1] != "(EmptyReference!)") window.location = action[1]if (day == "Tuesday" && action[2] != "(Empty Reference!)" && action[2] != "(EmptyReference!)") window.location = action[2]if (day == "Wednesday" && action[3] != "(Empty Reference!)" && action[3] != "(EmptyReference!)") window.location = action[3]if (day == "Thursday" && action[4] != "(Empty Reference!)" && action[4] != "(EmptyReference!)") window.location = action[4]if (day == "Friday" && action[5] != "(Empty Reference!)" && action[5] != "(EmptyReference!)") window.location = action[5]if (day == "Saturday" && action[6] != "(Empty Reference!)" && action[6] != "(EmptyReference!)") window.location = action[6]if (day == "Sunday" && action[7] != "(Empty Reference!)" && action[7] != "(EmptyReference!)") window.location = action[7]}function CSDeleteCookie(action) {var name=action[1]var value=action[2]var jours=-12000path="/"domain=nullvar expdate = new Date ();expdate.setTime (expdate.getTime() + (jours * 60 * 60 * 1000));SetCookie(name,value,expdate)}function SetCookie (name, value) {  var argv = SetCookie.arguments;  var argc = SetCookie.arguments.length;  var expires = (argc > 2) ? argv[2] : 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 CSdigitalclock(action){img1 = CSGetImage(action[1]);img2 = CSGetImage(action[2]);img3 = CSGetImage(action[3]);img4 = CSGetImage(action[4]);usemilitary = action[5];giflocation = action[6];path = giflocation.substring(0, giflocation.length - 5);extension = (giflocation.indexOf("jpg") != -1) ? (".jpg") : (".gif");digClock();}function digClock() {   now = new Date();hours = now.getHours();theMonth = now.getMonth();if(navigator.appVersion.indexOf("MSIE 5.0; Macintosh") != -1) {	if (theMonth <= 11 && theMonth >= 4) { hours = hours + 1 };	if (hours == 24) { hours = 0 };	}minutes = now.getMinutes();hours = ((hours > 12 && usemilitary == false) ? hours -12 : hours);if (hours >= 0 && hours <=9) hours = "0" + hours;if (usemilitary == false && hours == 00) { hours = 12 };if (minutes >= 0 && minutes <=9) minutes = "0" + minutes;hours = "" + hours;minutes = "" + minutes;hour1 = hours.substring(0,1);hour2 = hours.substring(1,2);minutes1 = minutes.substring(0,1);minutes2 = minutes.substring(1,2);updater();}	function updater() {img1.src = path + hour1 + extension;img2.src = path + hour2 + extension;img3.src = path + minutes1 + extension;img4.src = path + minutes2 + extension;theTimer = setTimeout("digClock()",1000);}function CSDocWrite(action) { document.write(action[1]); }var gCSIEDragObject = null;var gDragX,gDragY;function CSSetupDrag (layerName) {	this.x = 0; this.y = 0;	if (IsIE()) {		this.canDrag=true; 		this.layerObj=document.all.tags("div")[layerName];		this.layerObj.dragObj = this;		document.ondragstart = CSIEStartDrag;		document.onmousedown = CSIEMouseDown;		document.onmouseup = CSIEStopDrag;	} else {		if (CSBVers>=5)			{			this.layerObj=document.getElementById(layerName);			this.layerObj.addEventListener("mousedown", CSNS6StartDrag, true);			this.layerObj.addEventListener("mouseup", CSNS6StopDrag, true);			}		else			{			this.layer=CSNSStyl(layerName);this.onmousemove=null; 			this.layer.document.theLayer=this;			this.layer.document.captureEvents(Event.MOUSEDOWN);			this.layer.document.onmousedown=CSNSStartDrag; 			this.layer.document.onmouseup=CSNSStopDrag;			}	}}function CSNS6StartDrag (ev) {	CSIDOM();	ev.currentTarget.addEventListener("mousemove", CSNS6DoDrag, true);	gDragX=ev.clientX;	gDragY=ev.clientY;	ev.preventDefault();}function CSNS6DoDrag (ev) {	var style=ev.currentTarget.style;	style.left = parseInt(style.left)+(ev.clientX-gDragX)+"px";	style.top = parseInt(style.top)+(ev.clientY-gDragY)+"px";	gDragX=ev.clientX;	gDragY=ev.clientY;}function CSNS6StopDrag (ev) {		ev.target.removeEventListener("mousedown", CSNS6StartDrag, true);	ev.target.removeEventListener("mouseup", CSNS6StopDrag, true);	ev.currentTarget.removeEventListener("mousemove", CSNS6DoDrag, true);	ev.preventDefault();}function CSNSStartDrag (ev) {	var clickInMe = false;	if (ev.target != this) {		for (var i=0;i<this.images.length;i++) {			if (this.images[i] == ev.target) { clickInMe = true; break;}			}		}	else clickInMe = true;		if (clickInMe)		{		this.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP); 		this.onmousemove=CSNSDoDrag;		this.theLayer.x= ev.pageX;		this.theLayer.y= ev.pageY;		this.routeEvent(ev);		return false;		}   this.onmousemove=null;this.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);	this.routeEvent(ev);   return true; }function CSNSStopDrag (ev) {   this.onmousemove=null;this.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);return false; }function CSNSDoDrag (ev) {	this.theLayer.layer.moveBy(ev.pageX-this.theLayer.x, ev.pageY-this.theLayer.y); 	this.theLayer.x = ev.pageX; 	this.theLayer.y = ev.pageY;	this.routeEvent(ev);}function CSIEStartDrag () {	if(gCSIEDragObject != null && (gCSIEDragObject.tagName==event.srcElement.tagName))		event.returnValue=false;  }function CSIEStopDrag () { gCSIEDragObject=null; document.onmousemove=null; }function CSIEMouseDown () {	if(event.button==1) {		dragLayer = event.srcElement;		while (dragLayer!=null) 			{			if ((dragLayer.dragObj == null) && (dragLayer.tagName == "DIV"))				break;			if (dragLayer.dragObj != null)				break;			dragLayer=dragLayer.parentElement;			}					if (dragLayer == null) return;		if (dragLayer.dragObj!=null && dragLayer.dragObj.canDrag) {			gCSIEDragObject = dragLayer;			gCSIEDragObject.dragObj.x=event.clientX;			gCSIEDragObject.dragObj.y=event.clientY;			document.onmousemove = CSIEMouseMove;		}	}}function CSIEMouseMove () {	gCSIEDragObject.dragObj.layerObj.style.pixelLeft+=(event.clientX-gCSIEDragObject.dragObj.x);	gCSIEDragObject.dragObj.layerObj.style.pixelTop+=(event.clientY-gCSIEDragObject.dragObj.y);	gCSIEDragObject.dragObj.x=event.clientX;	gCSIEDragObject.dragObj.y=event.clientY;	event.returnValue = false;	event.cancelBubble = true;}var gDragArray = new Array();function CSDrag(action) { gDragArray[gDragArray.length] = new CSSetupDrag(action[1]); }function ROEmbeddedActions (act) {	var fct,i,j,name,nsemb;	name=act[1];	if (!IsIE())nsemb = ROFindEmbed(name);   	if(act[2]!="") {		fct=act[2]; fct+="(";		if(act[3]==undefined)			fct+=")";		for(i=3; i<act.length; i++) {			fct+="\'"; fct+=act[i]; fct+="\'";			if(i==act.length-1)fct+=")";			else fct+=",";		}	}	if(IsIE()) return eval(name+"."+fct);	else {		if(nsemb) return nsemb.eval(fct);	}}function CSFieldValidate(action) { var form = action[1];var elem = action[2];var theEntry  = document.forms[form].elements[elem].valuevar theFormElem = document.forms[form].elements[elem]var badEntry = ""	function theAlert () { 	alert(action[6]);	theFormElem.select();	theFormElem.focus();	}  		function isEmpty() { 		if (theEntry == "") { 		theAlert()		} 		}	function isNumber() { 			if (theEntry == "") { 			theAlert()			} 				for (i=0; i<theEntry.length; i++) {  			if (theEntry.charAt(i) < "0" || theEntry.charAt(i) > "9") {  				badEntry = "notnumber"				} 			}  				if (badEntry == "notnumber") {		theAlert()			}		} 			function isAlpha() { 			if (theEntry == "") { 			theAlert()			} 				for (i=0; i<theEntry.length; i++) {  			if (theEntry.charAt(i) >= "0" && theEntry.charAt(i) <= "9") {  				badEntry = "notalpha"				} 			}  				if (badEntry == "notalpha") {		theAlert()			}		} 					function requiredChars() {	numofChars = theEntry.length		if (numofChars != action[4]) {			theAlert()		} 	}		function exactString() {		if (theEntry != action[5]) {			theAlert()		} 	}			function validEmail() {		invalidChars = " /:,;"				if (theEntry == "") { 			badEntry = "badEmail"			}		for (i=0; i < 5; i++)  {			badChar = invalidChars.charAt(i)				if (theEntry.indexOf(badChar,0) > -1) {				badEntry = "badEmail"				}		}		atsignLoc = theEntry.indexOf("@",1)		if (atsignLoc == -1) {			badEntry = "badEmail"		}				if (theEntry.indexOf("@",atsignLoc+1) > -1) {		badEntry = "badEmail"		}	dotLoc = theEntry.indexOf(".",atsignLoc)		if (dotLoc == -1) {		badEntry = "badEmail"		}		if (dotLoc+3 > theEntry.length) {		badEntry = "badEmail"		}		if (badEntry == "badEmail") {		theAlert()		}	}	function validCC() { 	var theNumber = new Array(theEntry.length);	var i = 0	var total = 0		for (i = 0; i < theEntry.length; ++i) {		theNumber[i] = parseInt(theEntry.charAt(i))		}		for (i = theNumber.length -2; i >= 0; i-=2) {  		theNumber[i] *= 2;							 		if (theNumber[i] > 9) theNumber[i]-=9;			 		}										 		for (i = 0; i < theNumber.length; ++i) {		total += theNumber[i];						 		}			isinteger = total/10		if(parseInt(isinteger)!=isinteger) {		theAlert()		}	}	var type=action[3];if(type==0) isEmpty()else if(type==1) isNumber()else if(type==2) isAlpha()else if(type==3) requiredChars()else if(type==4) exactString()else if(type==5) validEmail()else if(type==6) validCC()}		function CSFlipMove(action) {	if (action[1] == '') return;	var curX = CSGetStylePos(action[1],0); var curY = CSGetStylePos(action[1],1);	var x1 = action[2][0];	var y1 = action[2][1];	if ((x1 != curX) || (y1 != curY)) CSSlideLayer(action[1],action[2],action[4],action[5]);	else CSSlideLayer(action[1],action[3],action[4],action[5]);}if (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) >=5) {	leftH = ".left";	topV = ".top";	nndoc = "document.getElementById(layername).style";	iestyle = "";	offsetH = "window.pageXOffset";	offsetV = "window.pageYOffset";	} 		else if (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) >=4) {	leftH = ".left";	topV = ".top";	nndoc = "document.";	iestyle = "";	offsetH = "window.pageXOffset";	offsetV = "window.pageYOffset";		} 		else if (navigator.appName == "Microsoft Internet Explorer") {	leftH = ".pixelLeft";	topV = ".pixelTop";	nndoc = "";	iestyle = "document.getElementById(layername).style";	offsetH = "document.body.scrollLeft";	offsetV = "document.body.scrollTop";	}function getnewPos() {var currentH = eval(offsetH);var currentV = eval(offsetV);x = parseInt(currentH) + parseInt(xpos);y = parseInt(currentV) + parseInt(ypos);moveLayer();setTimeout("getnewPos()",10)}function CSFloatLayer(action) {layername = action[1];ypos = action[2];xpos = action[3];if (navigator.appVersion.charAt(0) >=5 || navigator.appName == "Microsoft Internet Explorer") {	leftPos = eval(nndoc + iestyle + leftH);	topPos = eval(nndoc + iestyle + topV);	} else {	leftPos = eval(nndoc + layername + iestyle + leftH);	topPos = eval(nndoc + layername + iestyle + topV);	}	getnewPos()	}function moveLayer() {if (navigator.appVersion.charAt(0) >=5  || navigator.appName == "Microsoft Internet Explorer") {	eval(nndoc + iestyle + topV + "=" + y);	eval(nndoc + iestyle + leftH + "=" + x);	} else {	eval(nndoc + layername + iestyle + topV + "=" + y);	eval(nndoc + layername + iestyle + leftH + "=" + x);	}}function frameP(action) {		if(parent.frames.length==0) {			var fileName=window.location.href.substring(window.location.href.lastIndexOf("/")+1,window.location.href.length);			window.location.href=action[1]+"?"+action[2]+"="+fileName;		} else {			if(top.location.search!="") {				var sFrame=top.location.search.substring(1,top.location.search.indexOf("="));				if(name==sFrame) {					var sName=top.location.search.substring(top.location.search.indexOf("=")+1,top.location.search.length);					var fileName=window.location.href.substring(window.location.href.lastIndexOf("/")+1,window.location.href.length);					if(fileName!=sName) {						location=sName;					}				}			}		}	}function ROGetClipInfo (act) {	var property,type;	type=act[1];	if(type==0)property="Album name";	else if(type==1)property="Artist name";	else if(type==2)property="CDNum";	else if(type==3)property="Comments";	else if(type==4)property="Genre";	else if(type==5)property="Language";	else if(type==6)property="Mood";	else if(type==7)property="Preference";	else if(type==8)property="Situation";	else if(type==9)property="Title";	else if(type==10)property="Year";	else return "";	return window.parent.external.GetClipInfo (property);}function CSGetFormElementValue(action) { 	var form = action[1];	var elem = action[2];	return document.forms[form].elements[elem].value;}function ROGetInstalledComponents() {	return window.parent.external.InstalledComponents;}function CSGetLayerPos(action) { 	var layer = action[1];	var x		= CSGetStylePos(layer, 0);	var y		= CSGetStylePos(layer, 1);	return new Array(x, y);}function ROGetPlayerProperty (act) {	var property,type;	type=act[1];	if(type==0)property="APIVERSION";	else if(type==1)property="BANDWIDTH";	else if(type==2)property="COUNTRYID";	else if(type==3)property="DISTRIBUTION";	else if(type==4)property="INSTALLPATH";	else if(type==5)property="LANGUAGEID";	else if(type==6)property="LANGUAGEPREFERENCE";	else if(type==7)property="OSNAME";	else if(type==8)property="PRODUCTNAME";	else if(type==9)property="PRODUCTVERSION";	else if(type==10)property="REGIONDATE";	else return "";	return window.parent.external.PlayerProperty(property);}function ROGetPlayerState() {	var result,state;	state=window.parent.external.GetPlayerState();	switch(state) {		case 0:			result="Stopped";break;		case 1:			result="Contacting";break;		case 2:			result="Buffering";break;		case 3:			result="Playing";break;		case 4:			result="Paused";break;		case 5:			result="Seeking";break;		default:			result="";break;	}	return result;}function ROGetVersionNumber (act) {	var comp,min,max,result,type,unpack;	type=act[1];	if(type==0 && act[2]=="") {		result=window.parent.external.RealPlayerVersion;	}	else {		if(type==1)comp="audp";		else if(type==2)comp="DBCMpg1";		else if(type==3)comp="Flash";		else if(type==4)comp="GF";		else if(type==5)comp="GFJP";		else if(type==6)comp="imgp";		else if(type==7)comp="MP3PL";		else if(type==8)comp="MPGA";		else if(type==9)comp="PNG";		else if(type==10)comp="RA";		else if(type==11)comp="RealTxt";		else if(type==12)comp="RichFX";		else if(type==13)comp="RPix";		else if(type==14)comp="RV";		else if(type==15)comp="sdp";		else if(type==16)comp="vidp";		if(act[2]!="")comp=act[2];		max=act[3];		min=act[4];		result=window.parent.external.ComponentVersion (comp+":"+max+"."+min);	}	unpack=act[5];	if(unpack)		result=ROUnpackVersionNumber (result);	return result;}function CSGoBack1() { history.back() }function CSGotoLink(action) {	if (action[2].length) {		var hasFrame=false;		for(i=0;i<parent.frames.length;i++) { if (parent.frames[i].name==action[2]) { hasFrame=true; break;}}		if (hasFrame==true)			parent.frames[action[2]].location = action[1];		else			window.open (action[1],action[2],"");	}	else location = action[1];}function ROHandleAction (act) {	var str,type;	type=act[1];	if(type==0)str="CD";	else if(type==1)str="MyDevices";	else if(type==2)str="NowPlaying";	else if(type==3)str="Radio";	else if(type==4)str="ShowEqualizer";	else if(type==5)str="Web";	else return;	window.parent.external.HandleAction(str);}function CSIdleObject (action) {	this.conditionAction = action[2];	this.trueAction = action[3];	this.falseAction = action[4];	this.exitIdleIfTrue = action[1];	this.lastState = false;}function CSIdleAction(action) {	idleObj = new CSIdleObject (action);	CSStartFunction (CSDoIdle,idleObj);}function CSDoIdle (param) {	idleObject=param.data;	if (idleObject.conditionAction) {		gCurrentIdleObject = idleObject;		var result = CSAction(new Array(idleObject.conditionAction));		if (result == true && idleObject.lastState==false) {			idleObject.lastState = result;			if (idleObject.trueAction) {				CSAction(new Array(idleObject.trueAction));				if (idleObject.exitIdleIfTrue == true) return false;			}		} else if (result == false && idleObject.lastState == true) {			idleObject.lastState = false;			if (idleObject.falseAction) {				CSAction(new Array(idleObject.falseAction));			}				}	}	return true;}function CSLayerIntersect (condition){	var l1,t1,r1,b1,l2,t2,r2,b2;	if (IsIE()) {		var layer1=document.all.tags("div")[condition[1]];		var layer2=document.all.tags("div")[condition[2]];		l1=layer1.style.pixelLeft; t1=layer1.style.pixelTop; r1=layer1.offsetWidth+l1; b1=layer1.offsetHeight+t1;		l2=layer2.style.pixelLeft; t2=layer2.style.pixelTop; r2=layer2.offsetWidth+l2; b2=layer2.offsetHeight+t2;		} else {		var layer1=CSNSStyl(condition[1]);		var layer2=CSNSStyl(condition[2]);		if (CSBVers>=5)			{			CSIDOM();			l1=parseInt(layer1.left); t1=parseInt(layer1.top); r1=parseInt(layer1.width)+l1; b1=parseInt(layer1.height)+t1;			l2=parseInt(layer2.left); t2=parseInt(layer2.top); r2=parseInt(layer2.width)+l2; b2=parseInt(layer2.height)+t2;			}		else			{			l1=layer1.x; t1=layer1.y; r1=layer1.clip.width+l1; b1=layer1.clip.height+t1;			l2=layer2.x; t2=layer2.y; r2=layer2.clip.width+l2; b2=layer2.clip.height+t2;			}	}	var w = (r1 < r2 ? r1 : r2) - (l1 > l2 ? l1 : l2)	var h = (b1 < b2 ? b1 : b2) - (t1 > t2 ? t1 : t2)	return ((w >= 0) && (h >= 0));}function CSKeePress(action) {desiredKey1 = action[1];calledAction1 = action[2];desiredKey2 = action[3];calledAction2 = action[4];desiredKey3 = action[5];calledAction3 = action[6];desiredKey4 = action[7];calledAction4 = action[8];if (document.layers) { document.captureEvents(Event.KEYPRESS) ; }document.onkeydown = checkKey;function checkKey(e) {	e = (e) ? e : (window.event) ? window.event : "";	if (e) { var keyPressed = ""			 if (e.which)  keyPressed = e.which; 			 else  keyPressed = event.keyCode;			 alphaNum = String.fromCharCode(keyPressed).toLowerCase();			 if (desiredKey1 == alphaNum) { CSAction(new Array(calledAction1)) };			 if (desiredKey2 == alphaNum) { CSAction(new Array(calledAction2)) };			 if (desiredKey3 == alphaNum) { CSAction(new Array(calledAction3)) };			 if (desiredKey4 == alphaNum) { CSAction(new Array(calledAction4)) };	}}checkKey();}CSCurrentPressedKey = -1;function CSKeyPress(ev) {	var code;	if(IsIE()) CSCurrentPressedKey = event.keyCode;	else CSCurrentPressedKey = ev.which;}document.onkeypress	= CSKeyPress;function CSKeyCompare(condition){	var eq = (condition[1] == CSCurrentPressedKey);	if(eq)		CSCurrentPressedKey = -1;	return eq;}function CSPAKkillframe() { if (self.parent.frames.length != 0)self.parent.location = document.location}function CSshowdate(action) {	form = action[1];	elem = action[2];	modified = new Date(document.lastModified);	theMonth = modified.getMonth() + 1;	theDate = modified.getDate();	theYear = (navigator.appVersion.indexOf("3.0") != -1) ? (modified.getYear()) : (modified.getFullYear());	theDay = modified.getDay();	days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");	modified = new Date(document.lastModified);	today = days[theDay];	if (action[3] == 0) todisplay = theMonth + "/" + theDate + "/" + theYear;	if (action[3] == 1) todisplay = theDate + "/" + theMonth + "/" + theYear;	if (action[3] == 2) todisplay = theYear + "/" + theMonth + "/" + theDate;	if (action[3] == 3) todisplay = theYear + "/" + theDate + "/" + theMonth;	if (action[4] == true) todisplay = today + ", " + todisplay;	if(form != "" || elem != "") { document.forms[form].elements[elem].value = todisplay} ;	if (action[5] == false) { alert(todisplay) } 		}function CSshowdateID(action) {(action[2] != "") ? (updateobject = action[2]) : (updateobject = action[1]);modified = new Date(document.lastModified);theMonth = modified.getMonth() + 1;theDate = modified.getDate();theYear = (navigator.appVersion.indexOf("3.0") != -1) ? (modified.getYear()) : (modified.getFullYear());theDay = modified.getDay();days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");today = days[theDay];if (action[3] == 0) todisplay = theMonth + "/" + theDate + "/" + theYear;if (action[3] == 1) todisplay = theDate + "/" + theMonth + "/" + theYear;if (action[3] == 2) todisplay = theYear + "/" + theMonth + "/" + theDate;if (action[3] == 3) todisplay = theYear + "/" + theDate + "/" + theMonth;if (action[4] == true) todisplay = today + ", " + todisplay;if (document.all) { document.all(updateobject).innerHTML = action[6] + action[5] + todisplay + action[7]	 } else {	if (document.getElementById) { document.getElementById(updateobject).innerHTML = action[6] + action[5] + todisplay + action[7] }	}}var myLayer = false;var offSetX = 1;var offSetY = 1;function CSMouseFollow(action,offX,offY){	myLayer = action[1];	if(offX){offSetX=offX;}	if(offY){offSetY=offY;}	if (navigator.appName == "Netscape") {		document.captureEvents(Event.MOUSEMOVE);	} else {		if(navigator.appVersion.indexOf("Mac")!=-1){offSetX=offSetX-18;}	}	document.onmousemove = mouseLayer;}function mouseLayer(e){	if (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) >=5) {		document.getElementById(myLayer).style.left = (e.pageX+offSetX);		document.getElementById(myLayer).style.top = (e.pageY+offSetY); 		}		else if (navigator.appName == "Netscape") {			document.layers[myLayer].moveBy(			(e.pageX+offSetX) - document.layers[myLayer].left, 			(e.pageY+offSetY) - document.layers[myLayer].top);	   		 return true; 		} else {		document.all[myLayer].style.pixelLeft = (event.x+offSetX);		document.all[myLayer].style.pixelTop = (event.y+offSetY);		event.cancelBubble = true;		event.returnValue = false;	}}function CSMoveBy(action){	x = CSGetStylePos(action[1], 0);	y = CSGetStylePos(action[1], 1);	x += parseInt(action[2]);	y += parseInt(action[3]);	x = CSSetStylePos(action[1], 0, x);	y = CSSetStylePos(action[1], 1, y);}function CSMoveTo(action) { CSSlideLayer(action[1],action[2],action[3],action[4]); }function CSHistoryGo(action) { history.go(action[1]); }function RONavigateToURL (act) {	var target,type,url,delay;	url=act[1];	type=act[2];	if(type==0)target="_rpbrowser";	else target="_rpexternal";	delay=act[3]*1000;	if(delay>0) {		var obj=new Object();		obj.type="navigate";		obj.time=delay;		obj.url=url;		obj.target=target;		if(ROOnPLCArray)			ROOnPLCArray[ROOnPLCArray.length]=obj;	}	else		window.parent.external.HandleAction("NavigateToURL("+url+","+target+")");}function CSFixFct() {	var d = document; var w = window;	if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {		d.location = d.location; }}function CSNSFix(action) { 	var d = document; var w = window;	if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {		if (typeof d.cs == 'undefined') { 			d.cs = new Object;			d.cs.csFix = new Object; 		} else if (CSIsFrame (w) == true) CSFixFct();		d.cs.csFix.w = w.innerWidth;		d.cs.csFix.h = w.innerHeight; 		window.onresize = CSFixFct;	  }}function CSIsFrame (window) {	var rootWindow = window.parent;	if (rootWindow == 'undefined') return false;	for (i = 0; i < rootWindow.frames.length; i++)		if (window == rootWindow.frames[i]) return true;	return false;}function CSOpenAlert(action) { alert(action[1]); }function CSOpenWindow(action) {	var wf = "";		wf = wf + "width=" + action[3];	wf = wf + ",height=" + action[4];	wf = wf + ",resizable=" + (action[5] ? "yes" : "no");	wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no");	wf = wf + ",menubar=" + (action[7] ? "yes" : "no");	wf = wf + ",toolbar=" + (action[8] ? "yes" : "no");	wf = wf + ",directories=" + (action[9] ? "yes" : "no");	wf = wf + ",location=" + (action[10] ? "yes" : "no");	wf = wf + ",status=" + (action[11] ? "yes" : "no");			window.open(action[1],action[2],wf);}function CSOpenWindowPrompt(action) {var where = self.location.hrefvar nw = prompt("Enter a new width:","")if (nw != null) {var nh = prompt("Enter a new height:","")}var wf = "";	wf = wf + "width=" + nw;wf = wf + ",height=" + nh;wf = wf + ",resizable=" + (action[1] ? "yes" : "no");wf = wf + ",scrollbars=" + (action[2] ? "yes" : "no");wf = wf + ",menubar=" + (action[3] ? "yes" : "no");wf = wf + ",toolbar=" + (action[4] ? "yes" : "no");wf = wf + ",directories=" + (action[5] ? "yes" : "no");wf = wf + ",location=" + (action[6] ? "yes" : "no");wf = wf + ",status=" + (action[7] ? "yes" : "no");			if (nw == null || nh == null) { 	return null	} else {	window.open(where,'testwin',wf);	}}var actn1 = "";var actn2 = "";var pass=""var z=23;var y=28;iCounter = 3;if (Array) {	var f= new Array();	var K= new Array();	var base= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z")} function inc(){iCounter--if (iCounter > 0)	{	if (confirm("\nPassword is incorrect.\n\n\n\nRetry?"))		Check()	} 	else		alert('Access Denied');} function Check(){pass = prompt("Enter your password.","")if(pass==null || pass==""){	alert("You did not enter a password!");	if(pass==""){		Check()	} } else{	var lpass=(pass.length)+1	for (l=1; l<lpass; l++){		K[l]=pass.charAt(l)	} 	var transmit=0;	for (y=1; y<lpass; y++){		for(x=0; x<62; x++){			if (K[y]==base[x]){				transmit+=f[x]				transmit*=y			} 		} 	} 	if (transmit==parseInt(actn1)) 			go()	else		inc()} } function go(){alert(actn2);location.href=pass+".html";} function PVpassword(action) { if (Array) { 	actn1 = action[1];	actn2 = action[2];	z=23;	y=28;	for (x=0; x<10; x++){		f[x]=x<<9		f[x]+=23	} 	for (x=10; x<36; x++){		y=y<<1		v= Math.sqrt(y)		v = parseInt(v,16)		v+=5		f[x]=v		y++	} 	for (x=36; x<62; x++){		z=z<<1		v= Math.sqrt(z)		v = parseInt(v,16)		v+=74		f[x]=v		z++	} 	iCounter = 3;	Check();} }CSImages=new Array();function CSPreloadImage(action) {	if (document.images) { CSImages[CSImages.length]=new Image(); CSImages[CSImages.length-1].src=action[1]; }}function ROPreloadURL (act) {	ROPreloadURLArray[ROPreloadURLArray.length]=act[1];}ROPreloadURLArray=new Array();function RPOnPreload() {	/* RO-Event-Handler */	for(var i=0;i<ROPreloadURLArray.length;i++) {		if (ROPreloadURLArray[i] != 0) {			window.parent.external.PreloadURL(ROPreloadURLArray[i]);			ROPreloadURLArray[i]=0;		}	}}function CSprintdocument(action){if (navigator.appName .indexOf("Microsoft") != -1 && navigator.platform.indexOf("Mac") != -1 || navigator.appVersion.indexOf("3.0") != -1) {alert("Please use your browser\'s print command to print this document.");	} else {	(action[1] != "") ? (parent.frames[action[1]].print()) : (parent.print());	}}function CSRandomImg(action) { 	var img = CSGetImage(action[1]);	if (img) 		{		var v1 =  Math.floor(Math.random() * 10);		var whichone = v1-(Math.floor(v1/3)*3);		img.src = action[whichone+2];		}}function SetCookie (cookiename, value) {  var argv = SetCookie.arguments;  var argc = SetCookie.arguments.length;  var expires = (argc > 2) ? argv[2] : null;  var secure = (argc > 5) ? argv[5] : false;  document.cookie = cookiename + "=" + escape (value) +    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +    ((path == null) ? "" : ("; path=" + path)) +    ((domain == null) ? "" : ("; domain=" + domain)) +    ((secure == true) ? "; secure" : "");}/* EOF */