// -- Adobe GoLive JavaScript Library
// -- Global Functions
CSStateArray = new Object;
CSCookieArray = new Object;
CSCookieValArray = new Object;
function CSWriteCookie(action) {
	var name   = "DFT" + action[1];
	var hrs    = action[2];
	var path   = action[3];
	var domain = action[4];
	var secure = action[5];	
	var exp    = new Date((new Date()).getTime() + hrs * 3600000);	
	var cookieVal = "";
	for(var prop in CSCookieArray) {
		if(("DFT" + CSCookieArray[prop]) == name) {
			if(cookieVal != "") cookieVal += "&";
			cookieVal += prop + ":" + escape(CSStateArray[prop]);
		}
	}
	if(hrs != 0)
		cookieVal += "; expires=" + exp.toGMTString();
	if(path != "")
		cookieVal += "; path=" + path;
	if(domain != "")
		cookieVal += "; domain=" + domain;
	if(secure == true)
		cookieVal += "; secure";
	document.cookie = name + '=' + cookieVal;
}
function CSReadCookie(action) {
	var name    = "DFT" + action[1];
	var cookies = document.cookie;
	if(cookies == "") return;
	var start = cookies.indexOf(name);
	if(start == -1) return;
	start += name.length + 1;
	var end = cookies.indexOf(";", start);
	if(end == -1) end = cookies.length;
	var cookieVal = cookies.substring(start, end);
	var arr = cookieVal.split('&');
	for(var i = 0; i < arr.length; i++) {
		var a = arr[i].split(':');
		CSStateArray[a[0]] = unescape(a[1]);
	}	
}
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 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 WBConfirmLink(action) {
	 if (checkIt(action)) {
		 if (action[2] != "(Empty Reference!)" && action[2] != "(EmptyReference!)") {
		 	if (action[3].length < 1) {
				parent.location.href=action[2];
			}
			else if (action[3] == "_blank") {
				window.open(action[2],'newWin','toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes,menubar=yes')
			}
			else {
				parent.frames[action[3]].location.href=action[2];
			}
		}
	}
	return;
}
function checkIt(action) {
	var carryOn = window.confirm(action[1]);
	return carryOn;
	}
var thelongdate="";
var browser="";
var theref='';
var theOS="";
function browserchecker() {
var bName = navigator.appName;
var bVersion = parseInt(navigator.appVersion);
// check for Netscape
if (bName == "Netscape") {
browser = bName+' Navigator '+bVersion;
}
else {
// check for MSIE
if (bName == "Microsoft Internet Explorer") {
if (bVersion >= 4) {
browser = bName+' '+bVersion;
// check for IE5/6
	if (navigator.appVersion.indexOf("MSIE 5")!=-1) {
		browser = bName+' 5';
	}
	else if (navigator.appVersion.indexOf("MSIE 6")!=-1) {
		browser = bName+' 6';
	}
}
else {
browser = bName+' 3';
} // End of 'else' for browser = IEv3
} // End of 'if' for browser-name = MS IE
} // End of 'else' to check for MSIE
} // End of function browserchecker()
function getLongdate() {
var day="";
var month="";
var ampm="";
var ampmhour="";
var myweekday="";
var year="";
mydate = new Date();
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
weekday= myweekday;
myyear= mydate.getFullYear();
year = myyear;
myhours = mydate.getHours();
ampmhour  =  (myhours > 12) ? myhours - 12 : myhours;
ampm =  (myhours >= 12) ? ' pm' : ' am';
mytime = mydate.getMinutes();
myminutes =  ((mytime < 10) ? ':0' : ':') + mytime;
if(myday == 0)
day = " Sunday, ";
else if(myday == 1)
day = " Monday, ";
else if(myday == 2)
day = " Tuesday, ";
else if(myday == 3)
day = " Wednesday, ";
else if(myday == 4)
day = " Thurday, ";
else if(myday == 5)
day = " Friday, ";
else if(myday == 6)
day = " Saturday, ";
if(mymonth == 0) {
month = "January ";}
else if(mymonth ==1)
month = "February ";
else if(mymonth ==2)
month = "March ";
else if(mymonth ==3)
month = "April ";
else if(mymonth ==4)
month = "May ";
else if(mymonth ==5)
month = "June ";
else if(mymonth ==6)
month = "July ";
else if(mymonth ==7)
month = "August ";
else if(mymonth ==8)
month = "September "
else if(mymonth ==9)
month = "October ";
else if(mymonth ==10)
month = "November ";
else if(mymonth ==11)
month = "December ";
thelongdate=ampmhour+""+myminutes+ampm+" on"+day+month+myweekday+", "+year;
} // End of function getLongdate()
// Beginning of OS code
function isWin95() {
if (navigator.appVersion.indexOf("95") !=-1)
return true;
else return false;
}
function isWin31() {
if (navigator.appVersion.indexOf("16") !=-1)
return true;
else return false;
}
function isMac() {
if ((navigator.appVersion.indexOf("PPC") !=-1 || navigator.userAgent.indexOf("PPC") !=-1) && (navigator.appVersion.indexOf("OS X") ==-1 && navigator.userAgent.indexOf("OS X") ==-1))
return true;
else return false;
}
function isOSX() {
if ((navigator.appVersion.indexOf("PPC") !=-1 || navigator.userAgent.indexOf("PPC") !=-1) && (navigator.appVersion.indexOf("OS X") !=-1 || navigator.userAgent.indexOf("OS X") !=-1))
return true;
else return false;
}
function is68k() {
if (navigator.appVersion.indexOf("68k") !=-1)
return true;
else return false;
}
function isSun() {
if (navigator.appVersion.indexOf("SunOS") !=-1)
return true;
else return false;
}
function isLinux() {
if (navigator.appVersion.indexOf("Linux") !=-1)
return true;
else return false;
}
function isHP() {
if (navigator.appVersion.indexOf("HP") !=-1)
return true;
else return false;
}
function isXP() {
if ((navigator.appVersion.indexOf("NT") !=-1) && (navigator.appVersion.indexOf("5.1") !=-1))
return true;
else return false;
}
function is2000() {
if ((navigator.appVersion.indexOf("NT") !=-1) && (navigator.appVersion.indexOf("5.0") !=-1))
return true;
else return false;
}
function isNT() {
if (navigator.appVersion.indexOf("NT") !=-1)
return true;
else return false;
}
function getOS() {
if (isWin95()) {
theOS="Windows 95"
}
else if (isWin31()) {
theOS="Windows 3.1"
}
else if (isMac()) {
theOS="Mac PPC"
}
else if (isOSX()) {
	theOS="Mac OS X"
	if (navigator.appVersion.indexOf("Safari") !=-1 || navigator.userAgent.indexOf("Safari") !=-1) {
		browser = "Safari";
	}
	else if (navigator.appVersion.indexOf("Firefox") !=-1 || navigator.userAgent.indexOf("Firefox") !=-1) {
		browser = "Firefox";
	}
}
else if (is68k()) {
theOS="MacOS 68k"
}
else if (isSun()) {
theOS="SunOS"
}
else if (isLinux()) {
theOS="Linux"
}
else if (isHP()) {
theOS="HP-UX"
}
else if (isXP()) {
theOS="Windows XP"
}
else if (is2000()) {
theOS="Windows 2000"
}
else if (isNT()) {
theOS="Windows NT"
}
else { theOS="(Unknown)"; }
} // End of function getOS()
// End of OS code
function getRefer() {
theref="(No referring page)";
if (document.referrer!=null || document.referrer!="" || document.referrer!=" ") {
theref=document.referrer;
if (theref=="") { theref = "(No referring page)"; }
} // End of if statement
else {
theref="(No referring page)";
} // End of else statement
} // End of function getRefer()
browserchecker();
getLongdate();
getOS();
getRefer();
var mybrowser = "You're viewing this page with " + browser;
var mydate = "\nat " + thelongdate;
var myOS = "\nunder the operating system " + theOS;
var myref = "\nand you came here from " + theref;
function getInfo(action) {
	if(action[1] == false) { mydate = ""; }
	if(action[2] == false) { myOS = ""; }
	if(action[3] == false) { myref = ""; }
	if (action[4] && action[5]) {
		if (window.confirm(mybrowser + mydate + myOS + myref + "." + "\n\nWould you like to email this information to the webmaster?")) {
			window.location="mailto:" + action[4] + "?subject=" + action[5] + "&body=" + "Browser = " + browser + " [" + navigator.userAgent + "]" + "; Operating System = " + theOS + "; Referring Page = " + theref;
		}
	}
	else {
		alert(mybrowser + mydate + myOS + myref + ".");
	}
}
// CookieMaster.action v1.3.4 - June, 2003
// © Copyright 2001 by Walter Blady
// All rights reserved
var CMTimeout = 0, CMCookieObject, CMJumpURL, CMPairsDelim, CMFieldDelim, CMAction;
function WBCookieMaster(action) {
	if (CMVersion()) {
		var appendDelim = action[19];
		CMPairsDelim = action[21];
		CMFieldDelim = action[22];
		CMAction = action;
		var cookieCrumbs = "", formPairs = action[20];
		if (action[1] == 0 && action[2] != "") {
			cookieCrumbs = CMGatherValues(action, formPairs);
			CMSetCookie(action, cookieCrumbs);
			CMCookieAction(action, cookieCrumbs);
		}
		else if (action[1] == 1 && action[2] != "") {
			cookieCrumbs = CMGetCookie(action[2], 1);
			cookieCrumbs += cookieCrumbs != "" ? appendDelim : cookieCrumbs;
			cookieCrumbs += CMGatherValues(action, formPairs);
			CMSetCookie(action, cookieCrumbs);
			CMCookieAction(action, cookieCrumbs);
		}
		else if (action[1] == 2 && action[2] != "") {
			cookieCrumbs = CMGetCookie(action[2], 1);
			if (cookieCrumbs) {
				cookieCrumbs += appendDelim + CMGetCookie(action[14], 1);
			}
			CMSetCookie(action, cookieCrumbs);
			CMCookieAction(action, cookieCrumbs);
		}
		else if (action[1] == 3) {
			cookieCrumbs = CMGetCookie("all", 0);
			if (cookieCrumbs) {
				cookieCrumbs = CMSearchCookie(action, cookieCrumbs);
				if (cookieCrumbs) {
					cookieCrumbs = CMDelimitCookie(action, cookieCrumbs);
					CMCookieAction(action, cookieCrumbs);
				}
			}
		}
		else if (action[1] == 4 && action[2] != "") {
			cookieCrumbs = CMGetCookie(action[2], 0);
			if (cookieCrumbs) {
				cookieCrumbs = CMSearchCookie(action, cookieCrumbs);
				if (cookieCrumbs) {
					cookieCrumbs = CMDelimitCookie(action, cookieCrumbs);
					CMCookieAction(action, cookieCrumbs);
				}
			}
		}
		else if (action[1] == 5 && action[2] != "") {
			cookieCrumbs = CMGetCookie(action[2], 0);
			if (cookieCrumbs) {
				cookieCrumbs = CMSearchCookie(action, cookieCrumbs);
				if (cookieCrumbs) {
					cookieCrumbs = CMDelimitCookie(action, cookieCrumbs);
				}
			}
			else {
				cookieCrumbs = CMGatherValues(action, formPairs);
				CMSetCookie(action, cookieCrumbs);
			}
			CMCookieAction(action, cookieCrumbs);
		}
		else if (action[1] == 6 && action[2] != "" && document.cookie != "") {
			CMCookieObject = new CMCookie(document, action[2], "0", action[4], action[5], action[6]);
			CMCookieObject.removeCookie();
		}
		else if (action[1] == 7 && action[2] != "" && action[7] != "" && document.cookie != "") {
			CMCookieObject = new CMCookie(document, action[2], action[3], action[4], action[5], action[6]);
			CMCookieObject.loadCookie(false);
			CMCookieObject.removeProperty(action[7]);
			CMCookieAction(action, cookieCrumbs);
		}
		else if (action[1] == 8 && action[2] != "" && document.cookie != "") {
			cookieCrumbs = CMGetCookie(action[2], 0, true);
			CMCookieAction(action, cookieCrumbs);
		}
	}
	return;
}
function CMSetCookie(action, cookieCrumbs){
	cookieCrumbs = cookieCrumbs.replace(/\;/, escape(";"));
	cookieCrumbs = cookieCrumbs.replace(/\,/, escape(","));
	cookieCrumbs = cookieCrumbs.replace(/\ /, escape(" "));
	CMCookieObject = new CMCookie(document, action[2], action[3], action[4], action[5], action[6]);
	CMCookieObject.storeCookie(cookieCrumbs);
	return;
}
function CMGetCookie(cookieTarget, stripName, view) {
	var cookieCrumbs = unescape(document.cookie);
	if (cookieCrumbs && cookieTarget != "all") {
		var cookieArray = cookieCrumbs.split("; ");
		for (var i = 0; i < cookieArray.length; i++) {
			if (cookieArray[i].indexOf(cookieTarget) != -1) {
				CMCookieObject = new CMCookie(document, cookieTarget);
				CMCookieObject.loadCookie(view);
				cookieCrumbs = cookieArray[i];
				if (stripName) {
					cookieCrumbs = cookieArray[i].substr(cookieArray[i].indexOf("=")+1, (cookieArray[i].length - cookieArray[i].indexOf("=")+1)); 
				}
				break;
			}
		}
	}
	return cookieCrumbs;
}
function CMSearchCookie(action, cookieCrumbs) {
	if (cookieCrumbs) {
		var bool = "";
		if (action[10] == 0) bool = " && ";
		else if (action[10] == 1) bool = " || ";
		else if (action[10] == 2) bool = " ! ";
		var cookieArray = unescape(cookieCrumbs).split("; ");
		cookieCrumbs = "";
			for (var i = 0; i < cookieArray.length; i++) {
			var s0 = true;
			var s1 = eval("cookieArray[i].indexOf(action[9]) > -1");
			var s2 = eval("cookieArray[i].indexOf(action[9]) < 0");
			var s3 = eval("action[9] == cookieArray[i].substr(0, action[9].length)");
			var s4 = eval("cookieArray[i] == action[9]");
			var s5 = true;
			var s6 = eval("cookieArray[i].indexOf(action[12]) > -1");
			var s7 = eval("cookieArray[i].indexOf(action[12]) < 0");
			var s8 = eval("action[12] == cookieArray[i].substr(0, action[12].length)");
			var s9 = eval("cookieArray[i] == action[12]");
			CMCorrectFlag = eval("s" + action[8] + bool + "s" + (action[11]+5));
			if (CMCorrectFlag) {
				cookieCrumbs += cookieCrumbs != "" ? "; " : cookieCrumbs;
				cookieCrumbs += cookieArray[i];
			}
		}
	}
	return cookieCrumbs;
}
function CMCookieAction(action, cookieCrumbs) {
	CMJumpURL = action[15];
	if (action[13] == 0) {
		if (CMAction[38]) alert(cookieCrumbs);
	}
	else if (action[13] == 1 && action[14] != "") {
		var script = action[14], cookieName = action[2];
		script = script.replace(/\(|\)/g, "");
		if (CMAction[38]) alert(cookieCrumbs);
		var doIt = eval(script + "(cookieName, cookieCrumbs)");
	}
	else if (action[13] == 2 && action[15].indexOf("Reference!") == -1) {
		if (CMAction[38]) alert(cookieCrumbs);
		CMGoURL();
	}
	else if (action[13] == 3) {
		var internal = true;
		if (CMAction[38]) alert(cookieCrumbs);
		if (cookieCrumbs) CMSendCookie(action, cookieCrumbs, internal);
	}
	else if (action[13] == 4 && action[15].indexOf("Reference!") == -1) {
		var internal = true;
		if (CMAction[38]) alert(cookieCrumbs);
		if (cookieCrumbs) CMSendCookie(action, cookieCrumbs, internal);
		CMTimeout = setTimeout("CMGoURL()", action[16] * 1000);
	}
	return;
}
function CMGatherValues(action, formPairs) {
	var value = action[7];
	if (action[23] != "") {
		var myForm = window.document[action[23]];
		for (var i = 25; i <= 36; i++) {
			if (action[i] != "") {
				var field = myForm[action[i]];
				var type = field.type;
				value += value != "" ? CMPairsDelim : "";
				if (type == "text" || type == "textarea" || type == "hidden" || type == "password") {
					value += formPairs ? field.name + CMFieldDelim + field.value : field.value;
				}
				else if (type == "checkbox" || type == "radio") {
					value += formPairs ? field.name + CMFieldDelim + field.checked : field.checked;
				}
				else if (type == "select-one") {
					var fieldVal = action[37] ? field.selectedIndex : field.options[field.selectedIndex].value;
					value += formPairs ? field.name + CMFieldDelim + fieldVal  : fieldVal;
				}
				else if (type == "select-multiple") {
					for (var j = 0; j < field.length; j++) {
						if (field[j].selected) {
							value += value.lastIndexOf(CMPairsDelim) == (value.length-1) ? "" : CMPairsDelim;
							var fieldVal = action[37] ? j : field[j].value;
							value += formPairs ? field.name+j + CMFieldDelim + fieldVal : fieldVal;
						}
					}
				}
				else if (field.length > 0) {
					for (var j = 0; j < field.length; j++) {
						var fieldVal = action[37] ? j : field[j].value;
						if (field[j].checked) {
							value += formPairs ? field[j].name + CMFieldDelim + fieldVal : fieldVal;
							break;
						}
					}
				}
			}
		}
	}
	if (action[24].length != "") {
		myForm[action[24]].value = value;
	}
	return value;
}
function CMDelimitCookie(action, cookieCrumbs) {
	var data = "", quotes = "", CMCorrectFlag = false, endLine = "";
	if (action[17] == 0) delim = "";
	else if (action[17] == 1) delim = " ";
	else if (action[17] == 2) delim = "; ";
	else if (action[17] == 3) delim = escape("\n");
	else if (action[17] == 4) delim = escape("\t");
	else if (action[17] == 5) delim = ", ";
	else if (action[17] == 6) {
		delim = ', ';
		quotes = '"';
	}
	var cookieArray = cookieCrumbs.split("; "), formPairs = action[20];
	for (var i = 0; i < cookieArray.length; i++) {
		if (action[18]) {
			data += data != "" ? delim : data;
			data += quotes + cookieArray[i] + quotes;
		}
		else {
			cookieArray[i] = cookieArray[i].substring(cookieArray[i].indexOf("=")+1, cookieArray[i].length);
			var pairsArray = cookieArray[i].split(CMPairsDelim);
			for (var j = 0; j < pairsArray.length; j++) {
				data += data != "" ? delim : data;
				pairsArray[j] = pairsArray[j].replace(CMFieldDelim, "=");
				if (formPairs) {
					data += quotes + pairsArray[j] + quotes;
				}
				else {
					data += quotes + pairsArray[j].substring(pairsArray[j].indexOf(action[22])+1, pairsArray[j].length) + quotes;
				}
			}
		}
	}
	return data;
}
function CMGoURL() {
	clearTimeout(CMTimeout);
	window.location.href = CMJumpURL;
	return;
}
function CMSendCookie(action, data, internal) {
	if (action[23].length > 0) {
		var myForm = window.document[action[23]];
		if (action[24].length != "") {
			myForm[action[24]].value = unescape(data);
		}
		if (internal) {
			document.forms[action[23]].submit();
		}
	}
	return;
}
new CMCookie();
CMCookie.prototype.storeCookie = CMstoreCookie;
CMCookie.prototype.loadCookie = CMloadCookie;
CMCookie.prototype.removeCookie = CMremoveCookie;
CMCookie.prototype.removeProperty = CMremoveProperty;
function CMCookie(document, name, hours, path, domain, secure) {
	this.$document = document;
	this.$name = name;
	if (hours) this.$expires = new Date(new Date().getTime() + hours*86400000);
	else this.$expires = null;
	if (path) this.$path = path; else this.$path = null;
	if (domain) this.$domain = domain; else this.$domain = null;
	if (secure) this.$secure = secure; else this.$secure = false;
	return;
}
function CMstoreCookie(value) {
	if (value == null) value = "";
	for (var prop in this) {
		if (prop.charAt(0) == "$" || (typeof this[prop]) == "function") {
			continue;
		}
		if (value != "") value += CMPairsDelim;
		if (prop.substr(0, 5) != "CMval") value += prop + CMFieldDelim + escape(this[prop]);
		else value += escape(this[prop]);
	}
	var cookie = this.$name + "=" + value;
	if (this.$expires) cookie += "; expires=" + this.$expires.toGMTString();
	if (this.$path) cookie += "; path=" + this.$path;
	if (this.$domain) cookie += "; domain=" + this.$domain;
	if (this.$secure) cookie += "; secure=" + secure;
	if (CMAction[38]) alert(cookie);
	this.$document.cookie = cookie;
	return;
}
function CMloadCookie(view) {
	if (view == null) view = false;
	var cookies = this.$document.cookie;
	if (cookies == "") return false;
	var start = cookies.indexOf(this.$name + "=");
	if (start == -1) return false;
	start += this.$name.length + 1;
	var end = cookies.indexOf(";", start);
	if (end == -1) end = cookies.length;
	var value = cookies.substring(start, end);
	if (value == "") return true;
	var subArray = value.split(CMPairsDelim);
	for (var i = 0; i < subArray.length; i++) {
		subArray[i] = subArray[i].split(CMFieldDelim);
	}
	var nam, val, n = 0, display = "";
	display = 'These are the properties of the Cookie Object "' + this.$name + '":\n';
	for (var i = 0; i < subArray.length; i++) {
		if (subArray[i][1] != null) nam = subArray[i][0];
		else { nam = "CMval" + n; n++; }
		val = subArray[i][1] != null ? unescape(subArray[i][1]) : unescape(subArray[i][0]);
		this[nam] = val;
		display += nam + " = " + val + "\n";
	}
	if (view) alert(display);
	return true;
}
function CMremoveCookie() {
	var cookie = this.$name + "=";
	if (this.$path) cookie += "; path=" + this.$path;
	if (this.$domain) cookie += "; domain =" + this.$domain;
	cookie += "; expires=Thu, 01-Jan-1970 00:00:01 GMT";
	if (CMAction[38]) alert(cookie);
	this.$document.cookie = cookie;
	return;
}
function CMremoveProperty(property) {
	if (property != null) {
		for (var prop in this) {
			if (prop.charAt(0) == "$" || typeof this[prop] == "function") {
				continue;
			}
			if (property == prop) {
				if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
					delete this[prop];
				}
				else {
					this[prop] = void 0;
				}
				this.storeCookie("");
			}
		}
	}
	return;
}
function CMVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 2);
}
// OUT Execute JavaScript Action
// Script copyright 1999, OUT Media Design GmbH. All rights reserved.
function OUTexecuteJS(action) {
	return eval(action[1]);
}
function CSCallFunction(action)
{
	var str = action[1];
	str += "(";
	str += action[2];
	str += ");"
	return eval(str);
}
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];
}
// OpenPopUp 1.4.1 action by Nate Baldwin, www.mindpalette.com, copyright 2002
function MPOpenPopup(action) {
var posX = 0;
var posY = 0;
if (action[4] == true) {
	posX = Math.round((screen.availWidth/2)-(action[2]/2));
	posY = Math.round((screen.availHeight/2)-(action[3]/2));
	} else {
	posX = action[12];
	posY = action[13];
	}
if (action[16] == true) {
	posX = 0;
	posY = 0;
	action[2] = screen.availWidth;
	action[3] = screen.availHeight;
	}
for (i=5; i<12; i++) {
	action[i] == true ? action[i] = "yes" : action[i] = "no";
	}
var windowOptions = "";
windowOptions += "width=" + action[2];
windowOptions += ",height=" + action[3];
windowOptions += ",resizable=" + action[11];
windowOptions += ",scrollbars=" + action[5];
windowOptions += ",menubar=" + action[6];
windowOptions += ",toolbar=" + action[9];
windowOptions += ",directories=" + action[7];
windowOptions += ",location=" + action[10];
windowOptions += ",status=" + action[8];
windowOptions += ",left=" + posX;
windowOptions += ",top=" + posY;
window.open(action[15], action[1], windowOptions);
if (action[14] != "" && action[14] != "#" && action[14] != "(EmptyReference!)" && action[14] != "(Empty Reference!)")
	window.location = action[14];
}
//
//-->
function CSGoBack1() { history.back() }
// OUT PNG library 1.0.7
// Script copyright 2004 OUT Media Design GmbH. All rights reserved.
function OUTpngBrowserCheck(){
// Code partially taken from:
// Browser Detect Lite  v2.1 <http://www.dithered.com/javascript/browser_detect/index.html>
// modified by Chris Nott (chris@NOSPAMdithered.com - remove NOSPAM)
// modified by Oliver Zahorka
	var ua=navigator.userAgent.toLowerCase(); 
	this.ua=ua;
	// browser name
	this.isGecko=(ua.indexOf('gecko')>=0);
	this.isMozilla=(this.isGecko && ua.indexOf("gecko/")+14 == ua.length);
	this.isNS=((this.isGecko)?(ua.indexOf('netscape')>=0):((ua.indexOf('mozilla')>=0) && (ua.indexOf('spoofer')<0) && (ua.indexOf('compatible')<0) && (ua.indexOf('opera')<0) && (ua.indexOf('webtv')<0) && (ua.indexOf('hotjava')<0)));
	this.isIE=((ua.indexOf("msie")>=0) && (ua.indexOf("opera")<0) && (ua.indexOf("webtv")<0)); 
	this.isOpera=(ua.indexOf("opera")>=0); 
	this.isAol=(ua.indexOf("aol")>=0); 
	// browser version
	this.vers=parseFloat(navigator.appVersion); 
	// correct version number for NS6+ 
	if (this.isNS && this.isGecko){this.vers=parseFloat(ua.substring(ua.lastIndexOf('/')+1));}
	// correct version number for IE4+ 
	else if (this.isIE && this.vers >= 4){this.vers=parseFloat(ua.substring(ua.indexOf('msie ')+5));}
	// correct version number for Opera 
	else if (this.isOpera){if (ua.indexOf('opera/')>=0){this.vers=parseFloat(ua.substring(ua.indexOf('opera/')+6));}else{this.vers=parseFloat(ua.substring(ua.indexOf('opera ')+6));}}
	// platform
	this.isWin  =(ua.indexOf('win')>=0);
	this.isMac  =(ua.indexOf('mac')>=0);
	this.isUnix =(ua.indexOf('unix')>=0 || ua.indexOf('linux')>=0 || ua.indexOf('sunos')>=0 || ua.indexOf('bsd')>=0 || ua.indexOf('x11')>=0)
}
function OUTcheckPNGSupport()
{
	var b=new OUTpngBrowserCheck();
	// support for PNG via AlphaImageLoader, if is IE5.5+ on windows; set flag to 1
	if (b.isIE && b.vers>=5.5) return 1;
	// no support for PNG; set flag to -1 for Opera < 6 on Win/Unix, Opera < 5 on Mac, Netscape < 5, AOL
	else if ((b.isIE && b.isWin) || (b.isIE && b.isMac && b.vers < 5) || (b.isOpera && (b.isWin || b.isUnix) && b.vers < 6) || (b.isOpera && b.isMac && b.vers < 5) || (b.isNS && b.vers < 5) || b.isAol) return -1;
	// support for PNG right away; set flag to 0 for all others
	else return 0;
}
var OUTpngSupport=OUTcheckPNGSupport();
function OUTisPNGsrc(s,n){s=s.toLowerCase();n="."+n.toLowerCase();return s.lastIndexOf(n)==(s.length-n.length);}
function OUTpngImgReplace(img,isrc,psrc,rsrc){
	if (OUTpngSupport>0 && psrc && psrc!="#" && isrc && isrc!="#"){
		img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+isrc+"', sizingMethod='scale')";
		img.src=psrc;
	}
	if(OUTpngSupport<0 && rsrc && rsrc!="#"){img.src=rsrc;}
	if(OUTpngSupport==0 && isrc && isrc!="#" && img.src!=isrc){img.src=isrc;}
}
function OUTpngCSILoadTrans(s) {if(typeof(CSIm)!="undefined"){for(var n in CSIm){CSIm[n][4]=new Image();CSIm[n][4].src=s;}}}
function OUTpngCSIShow(n,i) {
	if (document.images) {
		if (CSIm[n]) {
			var img=CSGetImage(n);
			if (img&&typeof(CSIm[n][i].src)!="undefined") {
				if(!OUTisPNGsrc(CSIm[n][i].src,"png")) img.src=CSIm[n][i].src;
				else OUTpngImgReplace(img,CSIm[n][i].src,CSIm[n][4].src,"#")
			}
			if(i!=0) self.status=CSIm[n][3]; else self.status=" ";
			return true;
		}
	}
	return false;
}
function OUTpngRolloverInit(a) {OUTpngCSILoadTrans(a[1]); if(typeof(CSIShow)!="undefined" && OUTpngCSIShow)CSIShow=OUTpngCSIShow;}
//
// OUT PNG Transparency for IE 1.0.6
// Script copyright 2004 OUT Media Design GmbH. All rights reserved.
function OUTpngIEBgReplace(style,s,m){
	style.backgroundImage="";
	style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s+"', sizingMethod='"+m+"')";
}
function OUTiePNGimgXparency(a) {
	/* check browser */
	if (OUTpngSupport>0){
		/* add Smart Rollover support */
		OUTpngRolloverInit(a);
		/* replace img */
		if(document.images){
			for (var i=0;i<document.images.length;i++) {
				var img=document.images[i];
				if(img&&OUTisPNGsrc(img.src,a[2]))OUTpngImgReplace(img,img.src,a[1],"#");
			}
		}
		/* replace style backgrounds */
		if (a[3] && document.all) {
			for(var i=0;i<document.all.length;i++){
			 	var e=document.all[i],s=null;
			 	if (e.background) s=e.background;
			 	else if (e.style && e.style.backgroundImage) {
			 		s=e.style.backgroundImage;
			 		s=s.substr(4,s.length-5);
			 	}
			 	if(s&&OUTisPNGsrc(s,a[2])){e.background="";OUTpngIEBgReplace(e.style,s,a[4]);}
			}
		}
		/* replace css backgrounds */
		if (a[5] && document.styleSheets) {
			for (var j=0; j<document.styleSheets.length; j++){
				for(var i=0;i<document.styleSheets[j].rules.length;i++){
				 	var e=document.styleSheets[j].rules[i],s=null;
				 	if (e.style && e.style.backgroundImage) {
				 		s=e.style.backgroundImage;
				 		s=s.substr(4,s.length-5);
				 	}
				 	if(s&&OUTisPNGsrc(s,a[2]))OUTpngIEBgReplace(e.style,s,a[6]);
				}
			}
		}
	}
}
//
//-->
var textErrFlag=false // Copyright 2004 Michael Åhgren version: 1.3 
var radioErrFlag=false
var selectErrFlag=false
var matchErrFlag=false
var errMsg=null
var color=""
var radioArray=new Array()
var selectArray=new Array()
var radioCount=0
var selectCount=0
var colorTest=false
var errColor=null
var colorEnabled=false
function CSinitCheck(action){
colorEnabled=action[10]
textErrFlag=false
radioErrFlag=false
selectErrFlag=false
errColor=action[8]
var testForm=eval("document."+action[9])
errFlag=false
action[4]!="" ? errMsg=action[4]+"\n" : errMsg='The following problems have been detected:\n'
for(var i=0; i< testForm.length;i++){
var target=testForm.elements[i]
	if (!document.layers){
	!colorTest ? target.orgcol=target.style.backgroundColor : target.style.backgroundColor= target.orgcol
	}
	if(target.type=="select-one"|| target.type=="select-multiple"){
	CSbuildSelectArray (testForm.elements[i])	
	target.size>1 ? target.unChecked=-1 : target.unChecked=-0
	}
	if(target.type=="radio") CSbuildRadioArray(target)		
	if(target.type=="text"|| target.type=="textarea"){
	target.empty=false
	}
}
colorTest=true
if(action[1]!=""){
	var emptCheck=CSsplitFieldNames(action[1])
	var times1=emptCheck.length
	CSrunCheck(1,emptCheck,times1,testForm,action[10],action[7])
}
if(action[2]!=""){
	var emailCheck=CSsplitFieldNames(action[2])
	var times2=emailCheck.length
	CSrunCheck(2,emailCheck,times2,testForm,action[10],action[5])
}
if(action[3]!=""){
	var phoneCheck=CSsplitFieldNames(action[3])
	var times3=phoneCheck.length
	CSrunCheck(3,phoneCheck,times3,testForm,action[10],action[6])
}
if(action[11]!=""){
	var radioCheck=CSsplitFieldNames(action[11])
	for( i=0;i< radioCheck.length;i++){
	CSradioTest(radioCheck[i],action[10],action[13])
}
}
if (action[12]!=""){
var selectCheck=CSsplitFieldNames(action[12])
for( i=0;i< selectCheck.length;i++){
CSselectTest(selectCheck[i],action[10],action[14])
}
selectCount=0
}
if (action[15]!=""){
CSmatchField(action)
}
if (textErrFlag || radioErrFlag || selectErrFlag || matchErrFlag){
alert(errMsg)
}else{
testForm.submit()
}
}
function CSrunCheck(type,data,times,formName,bColor,msgAction){
	for(var i=0; i< formName.length;i++){
	var target=formName.elements[i]
		if(target.type=="text"|| target.type=="textarea"||target.type=="password"){
			var target=formName.elements[i]
				for(var j=0; j< times; j++){	
					if(type==1){					
						if(target.name	==data[j]&&target.value==""){
						msgAction!="" ? errMsg+=(msgAction+' "'+target.name+'"\n') : errMsg+=('The field "'+target.name+'" is empty.\n');
						target.empty=true
						CSsetColor(target)
						textErrFlag=true
						}
					}
					if(type==2){
						var reE=/^[\w\S?]+@(\w|\w\S?\w|\w[\w+\S+]+\w)\.\w+\b/
						var reTest=reE.test(target.value)
						if (navigator.userAgent.indexOf("Opera")!=-1) reTest=true
						var reE2at=/@/
						reE2at.test(target.value)
						var test2at=RegExp.rightContext
						if(target.name==data[j] && !target.empty&& ( target.value.indexOf("@",1)==-1 || 	target.value.indexOf(".",1)==-1 || !reTest || target.value.indexOf(".")==0 || reE2at.test(test2at))){
						msgAction !="" ? errMsg+=(msgAction+' "'+target.name+'"\n') : errMsg+=('The field "'+target.name+'" contains an incorrect E-mail address.\n');
						CSsetColor(target) 
						target.empty=true
						textErrFlag=true
						}
					}
					if(type==3){
						var reP=/[!"@£¤$%#&=?\\^'*åäöÅÄÖ;:,><§µ½*\|]|[a-z]|[A-Z]/ 
						if(target.name	==data[j] &&  reP.test(target.value)&& !target.empty){
					msgAction!="" ? errMsg+=(msgAction+' "'+target.name+'"\n') :errMsg+=('The field "'+target.name+'" contains illegal charater(s).\n');
						CSsetColor(target)
						textErrFlag=true;				
					}
				}		
			}
		}
	}
}
function CSsplitFieldNames(fieldNames){
afterSplit=fieldNames.split(",")
return afterSplit
}
function CSsetColor(target){
	if (!document.layers && colorEnabled){
	target.style.backgroundColor=errColor
}	
} 
function CSbuildRadioArray(target){
radioArray[radioCount]=target
radioCount++
}
function CSradioTest(groupName,bColor,msgAction){
var testResult=false
for (i=0;i< radioCount;i++){
	if(radioArray[i].name==groupName&&radioArray[i].checked){
		testResult=true
		break
	}
}
	if(!testResult){
		msgAction!="" ? errMsg+=(msgAction+' "'+groupName+'"\n') : errMsg+=('No radio button has been selected for: "'+groupName+'".\n');						
		radioErrFlag=true
			for (i=0;i< radioArray.length;i++){
				if(radioArray[i].name==groupName)
					CSsetColor(radioArray[i])			
		}
	}
radionCount=0
}
function CSbuildSelectArray(target){
selectArray[selectCount]=target
selectCount++
}
function CSselectTest(listName,bColor,msgAction){
for (var i=0;i < selectCount;i++){
	if (selectArray[i].name==listName && selectArray[i].selectedIndex==0 && 		selectArray[i].unChecked==0)  {
		msgAction!="" ? errMsg+=(msgAction+' "'+selectArray[i].name+'"\n') : errMsg+=('No selection has been made from the list: "'+ selectArray[i].name+'"\n')	;				
		CSsetColor(selectArray[i])
		selectErrFlag=true			
		}
	} 
} 
function CSmatchField(action){
newData=CSsplitFieldNames(action[15])
var target1=eval("document."+action[9]+"."+newData[0])
var target2=eval("document."+action[9]+"."+newData[1])
	if(target1.value==target2.value){
		matchErrFlag=false
	}else{
		matchErrFlag=true;
		CSsetColor(target1);
		CSsetColor(target2);
			if (action[16]==""){
				
				errMsg+='Your entry in the field "'+newData[0]+'" doesn\'t match your entry in the field "'+newData[1]+'".'
				}else{
				errMsg+=action[16];
				
				}
		}
	
}
// Copyright 2004 Michael Åhgren
//
//-->
function CSCallAction(action)
{
	CSAction(new Array(action[1]));
}
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();
	theFormElem.style.backgroundColor = "#FFFFCC";
	}  	
	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()	
		}
		else if (action[4] != "" && theEntry.length != action[4]) {
			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()	
		}
		else if (action[4] != "" && theEntry.length != action[4]) {
			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];						 
		}	
		if ((total%10)!=0) {
		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()
}
// EOF
