/* -- Adobe GoLive JavaScript Library */
/* -- Global Functions */
// PMass.scpt. PassMaster functions.
// This is the default URL. PMassID = "". PMassPassw = "", PMassurl = the URL, or "#" for the same page.
function PMass_0() { PMassID = ""; PMassPassw = ""; return PMassurl = "http://www.cyspacecity.net/forms/forms.htm"; }
// Define the passwords and path/URLs.
function PMass_1() { PMassID = "cyspacecity"; PMassPassw = "mother9493"; return PMassurl = "http://www.cyspacecity.net/forms/forms.htm"; }
function PMass_2() { PMassID = "cyspace"; PMassPassw = "forms"; return PMassurl = "http://www.cyspacecity.net/forms/forms.htm"; }
// PMassPassw = "end" for the last line.
function PMass_3() { PMassID = "end"; PMassPassw = ""; return PMassurl = ""; }
// End
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 CSAction(array) {return CSAction2(CSAct, array);}
function CSAction2(fct, array) { 
	var result;
	for (var i=0;i<array.length;i++) {
		if(CSStopExecution) return false; 
		var aa = fct[array[i]];
		if (aa == null) return false;
		var ta = new Array;
		for(var j=1;j<aa.length;j++) {
			if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){
				if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}
				else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}
				else ta[j]=aa[j];}
			} else ta[j]=aa[j];
		}			
		result=aa[0](ta);
	}
	return result;
}
CSAct = new Object;
function CSClickReturn () {
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
		return true; /* dont follow link */
	else return false; /* dont follow link */
}
/* -- Action Functions */
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;
}
// AutoScroll.action v1.3.2 - January, 2002
// © Copyright 2000 by Walter Blady
// All rights reserved
var ASisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var ASisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var ASW3C = document.getElementById ? true : false;
var ASrepeat = 0, ASrep = 0;
var ASstartDelay = 0, ASlineDelay = 0, ASendDelay = 0;
var ASyDest = 0, ASyOrig = 0, ASyloc = 0, ASxDest = 0, ASxOrig = 0, ASxloc = 0, ASaction;
var ASparamsB, ASparamsC, ASpixCount = 0, ASpauseFlag = false, ASInitFlag = true, ASstartFlag = true;
function WBAutoScroll(action) {
	if (ASVersion()) {
		ASaction = action;
		if (action[3]) {
			clearInterval(ASrepeat);
			ASInitFlag = true;
			clearTimeout(ASrep);
			return;
		}
		if (ASInitFlag) {
			ASparamsB = ASgetObject(action[10]);
			ASparamsC = ASgetObject(action[15]);
			ASscrollTo(ASparamsB, action[14], action[13]);
			if (ASisIE4) {
				var BboxWidth = action[11];
				var t = document.all.tags("div");
				var BboxHeight = (action[12] > 0) ? action[12] : t[action[10]].offsetHeight;
				var BboxTop = ASparamsB.pixelTop;
				var BboxLeft = ASparamsB.pixelLeft;
				var CboxWidth = action[16];
				var CboxHeight = action[17];
			}
			else if (ASW3C) {
				var BboxWidth = action[11];
				var t = document.getElementsByTagName("div");
				var BboxHeight = (action[12] > 0) ? action[12] : t[action[10]].offsetHeight;
				var BboxTop = parseInt(ASparamsB.top);
				var BboxLeft = parseInt(ASparamsB.left);
				var CboxWidth = action[16];
				var CboxHeight = action[17];
			}
			else {
				var BboxWidth = ASparamsB.clip.width;
				var BboxHeight = (action[12] > 0) ? action[12] : ASparamsB.clip.height;
				var BboxTop = ASparamsB.top;
				var BboxLeft = ASparamsB.left;
				var CboxWidth = ASparamsC.clip.width;
				var CboxHeight = ASparamsC.clip.height;
			}
			ASyOrig = BboxTop;
			ASxOrig = BboxLeft;
			ASyloc = BboxTop;
			ASxloc = BboxLeft;
			if (action[2]) {
				ASyDest = BboxTop < 0 ? CboxHeight - BboxTop : -1*(BboxHeight - BboxTop);
				ASxDest = BboxLeft < 0 ? CboxWidth : -1*(BboxWidth - BboxLeft);
			}
			else {
				ASyDest = BboxTop < 0 ? 0 : -1*(BboxHeight - BboxTop + (BboxTop - CboxHeight));
				ASxDest = BboxLeft < 0 ? 0 : -1*(BboxWidth - BboxLeft + (BboxLeft - CboxWidth));
			}
			ASInitFlag = false;
		}
		ASstartDelay = action[20]*1000;
		ASlineDelay = action[9]*1000;
		ASendDelay = action[21]*1000;
		if (action[4]) {
			upDownu = true;
			minusu = false;
			ASrepeat = setInterval("ASdoScroll(upDownu, minusu)", action[18]);
		}
		else if (action[5]) {
			upDownd = true;
			minusd = true;
			ASrepeat = setInterval("ASdoScroll(upDownd, minusd)", action[18]);
		}
		if (action[6]) {
			upDownl = false;
			minusl = false;
			ASrepeat = setInterval("ASdoScroll(upDownl, minusl)", action[18]);
		}
		else if (action[7]) {
			upDownr = false;
			minusr = true;
			ASrepeat = setInterval("ASdoScroll(upDownr, minusr)", action[18]);
		}
	}
	ASInitFlag = false;
	return;
}
function ASdoScroll(upDown, minus) {
	if (ASstartFlag && !ASpauseFlag) {
		ASscrollTo(ASparamsB, ASxloc, ASyloc);
		ASpauseFlag = true;
		ASstartFlag = false;
		ASrep = setTimeout("ASpause()", ASstartDelay);
	}
	if (ASaction[8] > 0 && ASpixCount >= ASaction[8] && !ASpauseFlag) {
		ASpixCount = 0;
		ASpauseFlag = true;
		ASrep = setTimeout("ASpause()", ASlineDelay);
	}
	if (!ASpauseFlag) {
		if (upDown) {
			if (minus) {
				ASyloc = (ASyloc - ASaction[19] >= ASyDest) ? ASyloc - ASaction[19] : ASyDest;
			}
			else {
				ASyloc = (ASyloc + ASaction[19] <= ASyDest) ? ASyloc + ASaction[19] : ASyDest;
			}
		}
		else {
			if (minus) {
				ASxloc = (ASxloc - ASaction[21] >= ASxDest) ? ASxloc - ASaction[19] : ASxDest;
			}
			else {
				ASxloc = (ASxloc + ASaction[19] <= ASxDest) ? ASxloc + ASaction[19] : ASxDest;
			}
		}
		ASscrollTo(ASparamsB, ASxloc, ASyloc);
		ASpixCount += ASaction[19];
	}
	var cont = (upDown) ? ASyloc == ASyDest && !ASpauseFlag : ASxloc == ASxDest && !ASpauseFlag;
	if (cont) {
		ASpauseFlag = true;
		ASstartFlag = true;
		ASyloc = ASyOrig;
		ASxloc = ASxOrig;
		ASpixCount = 0;
		if (!ASaction[1]) {
			ASstop();
		}
		ASrep = setTimeout("ASpause()", ASendDelay);
	}
	return;
}
function ASscrollTo(obj, x, y) {
	if (ASW3C) {
		obj.left = x + "px";
		obj.top = y + "px";
	}
	else if (ASisIE4) {
		obj.pixelLeft = x;
		obj.pixelTop = y;
	}
	else {
		obj.moveTo(x, y);
	}
	return;
}
function ASpause() {
	ASpauseFlag = false;
	clearTimeout(ASrep);
	return;
}
function ASstop() {
	clearInterval(ASrepeat);
	clearTimeout(ASrep);
	ASInitFlag = false;
	return;
}
function ASgetObject(objName) {
	var params;
	if (ASisIE4) {
		params = eval("document.all." + objName + ".style");
	}
	else if (ASW3C) {
		params = eval('document.getElementById("' + objName + '").style');
	}
	else {
		params = ASFindLayerObject(objName, 0);
	}
	return params;
}
function ASFindLayerObject(layer, thisLayer) {
	if (thisLayer) {
		var thisDocument = thisLayer.document;
	}
	else {
		var thisDocument = document;
	}
	var layerObj = thisDocument[layer];
	if (layerObj) {
		return layerObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			layerObj = ASFindLayerObject(layer, thisDocument.layers[i]); 
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function ASVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4);
}
// PassMaster.action v1.5 - June, 2000
// © Copyright 1999 by Walter Blady
// All rights reserved.
//In this version the URL and the password are specified in the external .scpt file.
//The default URL is specified in this Action.
//Set up the global variable.
var PMassID, PMassPassw;
function WBPassMaster(action) {
	//If the password field has an entry.
	if (PMVersion() && action[2].length > 0) {
		//Initiate globals to blanks.
		PMassID = "", PMassPassw = "";
		//Check if there is a layer specified first, then get the form object for either NN or IE.
		var myForm = navigator.appName == "Netscape" && action[5].length >0 ? window.document[action[5]].document[action[1]] : window.document[action[1]];
		//Load the default URL if there is one.
		var access = eval("PMass_" + "0"), defaultUrl = access();
		//Check all the passwords.
		for (i = 1; PMassID.toLowerCase() != "end"; i++) {
			//Setup the Function pointer.
			access = eval("PMass_" + i);
			//Return with the password and the url.
			var pmurl = access();
			//If the password matches and it is not a blank.
			if ((PMassID != "end" || PMassID != "") && PMassPassw != "" && myForm[action[2]].value.toLowerCase() == PMassID.toLowerCase() && myForm[action[3]].value == PMassPassw) {
				//If a URL is specified in the list, use it, otherwise use the default.
				var goURL = pmurl != "" ? pmurl : defaultUrl;
				//If there is a URL.
				if (goURL != "(Empty Reference!)") {
					var params;
					//If a frame and path are not specified, the load URL into parent window.
					if (action[4].length < 1) {
						window.location.href = goURL;
					}
					//Otherwise load URL into the frame or new window.
					else {
						//Has a window been asked for?
						if (action[4].toLowerCase().indexOf("blank") != -1) {
							var ACNewWindow = window.open(goURL,"newWindow");
							return;
						}
						//Otherwise evaluate the frame and path parameters.
						else {
							params = eval(action[4] + ".window.location");
						}
						//Load the URL into the frame.
						params.href = goURL;
					}
				}
				//Password was found. Return without checking the rest of the list.
				return;
			}
		}
		window.alert("The User ID or Password you entered is incorrect. Please enter it again.");
	}
	return;
}
//Browser check.
function PMVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 2);
}
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);
}
/* EOF */
