// -- Adobe GoLive JavaScript Library
// -- Global Functions
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
// ShownTell.action v1.8 - June, 2003
// © Copyright 1999 by Walter Blady
// All rights reserved
//Millisecond delay time for auto close (1000 = 1 second)
var SnTtrapDelay = 500;
var SnTisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var SnTisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var SnTisIE = navigator.appVersion.indexOf("MSIE") >= 0;
var SnTW3C = document.getElementById ? true : false;
var SnTisNN6 = navigator.userAgent.indexOf("Netscape6") >= 0;
var SnTboxObj, SnTprevBoxObj;
var W3CinitFlag = false;
var SnTmenuArray = new Array(), SnTprevMenu = new Array(), SnTmenu, SnTprevScene, SnTmouseTrapTimer = 0, SnTaction;
var SnTweightArray = new Array("normal", "bold", "bolder", "lighter");
var SnTstyleArray = new Array("normal", "italic");
var SnTdecorArray = new Array("none", "underline", "overline", "line-through");
var SnTalignArray = new Array("left", "right", "center", "justify");
var SnTorgColor, SnTorgText, SnTorgWeight;
var SnTobjArray = new Array();
var SnTsuffix = SnTW3C ? "px" : "";
var SnTclientWidth, SnTclientHeight, SnTtopOffset, SnTleftOffset, SnTsuffix, SnTcenterWidth, SnTcenterHeight;
if (SnTW3C) var SnTtop = "top", SnTleft = "left", SnTwidth = "width", SnTheight = "height";
if (SnTisIE4) var SnTtop = "pixelTop", SnTleft = "pixelLeft", SnTwidth = "pixelWidth", SnTheight = "pixelHeight";
var SnTvis = (SnTW3C || SnTisIE4) ? "visible" : "show";
var SnThid = (SnTW3C || SnTisIE4) ? "hidden" : "hide";
function WBShownTell(action) {
	if (SnTVersion()) {
		if (action[23] > 0) SnTtrapDelay = action[23];
		SnTaction = action;
		clearTimeout(SnTmouseTrapTimer);
		if (action[2].length > 0) {
			SnTboxObj = SnTgetObject(action[2]);
			if (action[1] == 2) {
				SnTboxObj.onmouseover = SnTMouseTrapTimerQuit;
				SnTboxObj.onmouseout = SnTMouseTrap;
				if (action[20] == 0) return;
			}
			else if (action[1] == 1) {
				SnTboxObj.onmouseover = SnTTurnOn;
				SnTboxObj.onmouseout = SnTTurnOff;
				SnTboxObj.SnTorgBoxColor = (SnTW3C || SnTisIE4) ? SnTboxObj.style.backgroundColor : SnTboxObj.bgColor;
				if (SnTboxObj.SnTorgBoxColor == "") SnTboxObj.SnTorgBoxColor = "transparent";
				SnTboxObj.SnTorgColor = (SnTW3C || SnTisIE4) ? SnTboxObj.style.color : SnTboxObj.color;
				if (SnTboxObj.SnTorgColor == "") SnTboxObj.SnTorgColor = "black";
				SnTboxObj.SnTorgWeight = (SnTW3C || SnTisIE4) ? SnTboxObj.style.fontWeight : SnTboxObj.fontWeight;
				if (SnTboxObj.SnTorgWeight == "") SnTboxObj.SnTorgWeight = "normal";
				SnTboxObj.SnTorgStyle = (SnTW3C || SnTisIE4) ? SnTboxObj.style.fontStyle : SnTboxObj.fontStyle;
				if (SnTboxObj.SnTorgStyle == "") SnTboxObj.SnTorgStyle = "normal";
				SnTboxObj.SnTorgDecor = (SnTW3C || SnTisIE4) ? SnTboxObj.style.textDecoration : SnTboxObj.textDecoration;
				if (SnTboxObj.SnTorgDecor == "") SnTboxObj.SnTorgDecor = "none";
				SnTboxObj.SnTorgAlign = (SnTW3C || SnTisIE4) ? SnTboxObj.style.textAlign : SnTboxObj.textAlign;
				if (SnTboxObj.SnTorgAlign == "") SnTboxObj.SnTorgAlign = "left";
				SnTboxObj.SnTnewBoxColor = action[14];
				SnTboxObj.SnTnewColor = action[15];
				SnTboxObj.SnTnewWeight = SnTweightArray[action[16]];
				SnTboxObj.SnTnewStyle = SnTstyleArray[action[17]];
				SnTboxObj.SnTnewDecor = SnTdecorArray[action[18]];
				SnTboxObj.SnTnewAlign = SnTalignArray[action[19]];
				if (action[20] == 0) return;
			}
			else if (action[1] == 0 || action[1] == 3) {
				if (!W3CinitFlag && SnTW3C) {
					var d = document.getElementsByTagName("div");
					var s = document.getElementsByTagName("style");
					for (var i = 0; i < s.length; i++) {
						var html = (s[i].innerHTML);
						var start = html.indexOf("!--") + 3;
						var end = html.lastIndexOf("}") + 1 - start;
						html = html.indexOf("!--") > -1 ? html.substr(start, end) : html;
						html = html.replace(/^\s*/, "");
						html = html.replace(/:\s*#/g, ": ~");
						html = html.replace(/[\n\r]/g, "");
						var styleArray = html.split(/\s*\}\s*/);
						for (var j = 0; j < styleArray.length; j++) {
							if (styleArray[j] != "" && styleArray[j].toLowerCase().indexOf("position:") > -1) {
								styleArray[j] = styleArray[j].replace(/\**#/, "");
								styleArray[j] = styleArray[j].replace(/~/g, "#");
								var styleName = styleArray[j].substr(0, styleArray[j].indexOf("{"));
								styleName = styleName.replace(/\s*/g, "");
								styleArray[j] = styleArray[j].toLowerCase();
								var t = eval("d." + styleName + ".style");
								var divName = eval("d." + styleName + ".id");
								var styleString = styleArray[j].replace(/^.*\{\s*/, "");
								styleString = styleString.replace(/\s*\}.*$|\s*\}.*\n.*$|\s*\}.*\r.*$/, "");
								var divArray = styleString.split(/\;\s*/g);
								for (var k = 0; k < divArray.length; k++) {
									var propertyName = divArray[k].substr(0, divArray[k].indexOf(":"));
									var dash = propertyName.indexOf("-");
									if (dash > -1) {
										var propertyName = propertyName.substr(0, dash) + propertyName.substr(dash + 1, 1).toUpperCase() + propertyName.substr(dash + 2, propertyName.length);
									}
									var propertyValue = divArray[k].substr(divArray[k].indexOf(":"), divArray[k].length);
									propertyValue = propertyValue.replace(/:*(-->)*}*\n*/g, "");
									propertyValue = propertyValue.replace(/^\s*|\s*$/, "");
									if (SnTisNN6 && propertyValue.indexOf("(") > -1) {
										propertyValue = propertyValue.replace(/auto|pt|pi|px|em|ex|mm|cm|in|%/g, "$& ");
										propertyValue = propertyValue.replace(/ \)/g, ")");
									}
									t.name = divName;
									t[propertyName] = propertyValue;
								}
							}
						}
					}
					W3CinitFlag = true;
				}
				if (action[20] != 0) {
					var clientWidth = SnTisIE ? eval(document.body.clientWidth) : eval(window.innerWidth);
					var clientHeight = SnTisIE ? eval(document.body.clientHeight) : eval(window.innerHeight);
					window.onresize = SnTControl;
					if (SnTisIE) {
						document.body.onscroll = SnTControl;
					}
					else {
						window.onclick = SnTControl;
					}
					SnTboxObj = eval(SnTboxObj.style);
					var width = SnTW3C ? parseInt(SnTboxObj[SnTwidth].replace(/\D/g, "")) : SnTboxObj[SnTwidth];
					var height = SnTW3C ? parseInt(SnTboxObj[SnTheight].replace(/\D/g, "")) : SnTboxObj[SnTheight];
					SnTboxObj.SnTorigTop = SnTW3C ? parseInt(SnTboxObj[SnTtop].replace(/\D/g, "")) : SnTboxObj[SnTtop];
					SnTboxObj.SnTorigLeft = SnTW3C ? parseInt(SnTboxObj[SnTleft].replace(/\D/g, "")) : SnTboxObj[SnTleft];
					SnTboxObj.SnTorigRelaTop = Math.round(SnTboxObj.SnTorigTop*100/clientWidth);
					SnTboxObj.SnTorigRelaLeft = Math.round(SnTboxObj.SnTorigLeft*100/clientHeight);
					SnTboxObj.SnTorigStreWidth = Math.round(width*100/clientWidth);
					SnTboxObj.SnTorigStreHeight = Math.round(height*100/clientHeight);
					SnTboxObj.SnTstretchWidth = action[21];
					SnTboxObj.SnTstretchHeight = action[22];
					SnTboxObj.SnTcenter = action[20] == 1 ? true : false;
					SnTboxObj.SnTcenterPlus = action[20] == 2 ? true : false;
					SnTboxObj.SnTstayPut = action[20] == 3 ? true : false;
					if (SnTboxObj.SnTcenter || SnTboxObj.SnTcenterPlus) {
						if (action[21]) SnTboxObj[SnTleft] = (clientWidth-width)/2 + SnTsuffix;
						if (action[22]) SnTboxObj[SnTtop] = (clientHeight-height)/2 + SnTsuffix;
					}
					if (SnTboxObj.SnTstayPut && SnTW3C && !SnTisWinIE5) SnTboxObj.position = "fixed";
					SnTobjArray[SnTobjArray.length] = SnTboxObj;
					return;
				}
				SnTboxObj.onmouseover = SnTMouseTrapTimerQuit;
				SnTboxObj.onmouseout = SnTMouseTrap;
				var isOn = false, showOne, stillOn = false;
				var paramsScene = action[6];
				if (!SnTmenuArray[action[3]]) SnTmenuArray[action[3]] = new Array();
				SnTmenu = SnTmenuArray[action[3]];
				SnTboxObj.menu = action[3]-1;
				SnTboxObj.level = action[4]-1;
				SnTmenu[action[4]] = SnTboxObj;
				SnTmenu[action[4]].level = action[4];
				if (!SnTmenu[action[4]].satelite) SnTmenu[action[4]].satelite = new Array();
				if (action[7]) {
				var j = 0;
					for (var i = 8; i < 14; i++) {
						if (action[i].length > 0) {
							SnTmenu[action[4]].satelite[j] = SnTgetObject(action[i]);
							j++;
						}
					}
				}
				if (SnTprevBoxObj) {
					isOn = SnTisNav4 ? SnTprevBoxObj.visibility == SnTvis : SnTprevBoxObj.style.visibility == SnTvis;
					stillOn = action[2] != "" && action[2] == SnTprevBoxObj.id && isOn;
					if (SnTboxObj == SnTprevBoxObj && stillOn) return;
				}
				if (SnTprevBoxObj) {
					var exclude = (SnTboxObj.menu == SnTprevBoxObj.menu && SnTprevBoxObj.level < SnTboxObj.level);
					if (!exclude) {
						showOne = false;
						SnTShowHide(SnTprevMenu, SnTboxObj.level, SnThid, showOne);
						if (action[5] && action[6].length > 0) {
							CSStopFunction(SnTprevScene);
						}
					}
				}
				if (!stillOn) {
					if ((!SnTboxObj.id == action[2]) || !stillOn) {
						if (SnTW3C) {
							SnTboxObj.boxWidth = parseInt(SnTboxObj.style.width);
							SnTboxObj.boxHeight = parseInt(SnTboxObj.style.height);
						}
						else if (SnTisIE4) {
							SnTboxObj.boxWidth = SnTboxObj.style.pixelWidth;
							SnTboxObj.boxHeight = SnTboxObj.style.pixelHeight;
						}
						else {
							SnTboxObj.boxWidth = SnTboxObj.clip.width;
							SnTboxObj.boxHeight = SnTboxObj.clip.height;
						}
						showOne = true;
						SnTShowHide(SnTmenu, SnTboxObj.level, SnTvis, showOne);
						if (action[5] && action[6].length > 0) {
							CSStartSeq(paramsScene);
						}
						SnTprevBoxObj = SnTboxObj;
						for (var i = 0; i < SnTmenu.length; i++) {
							SnTprevMenu[i] = SnTmenu[i];
						}
						SnTprevScene = paramsScene;
					}
				}
			}
		}
		else {
			if (SnTprevBoxObj) {
			SnTMouseTrap()
			}
		}
	}
	return;
}
function SnTMouseTrap() {
	SnTmouseTrapTimer = setTimeout("SnTMouseTrapp()", SnTtrapDelay);
	return;
}
function SnTMouseTrapp() {
	var showOne = false;
	SnTShowHide(SnTprevMenu, 1, SnThid, showOne);
	if (SnTaction[5] && SnTaction[6].length > 0) {
		CSStopFunction(SnTprevScene);
	}
	return;
}
function SnTMouseTrapTimerQuit() {
	clearTimeout(SnTmouseTrapTimer);
	return;
}
function SnTShowHide(menu, level, state, showOne) {
	if (SnTW3C) {
		if (level == "opt")  { menu.style.visibility = state; return; }
		for (var i = level; i < menu.length; i++) {
			if (menu[i] != null) {
				menu[i].style.visibility = state;
				var innerObjs = menu[level].getElementsByTagName("div");
				for (var j = 0; j < innerObjs.length; j++) {
					innerObjs[j].style.visibility = state;
				}
				for (var j = 0; j < menu[i].satelite.length; j++) {
					menu[i].satelite[j].style.visibility = state;
				}
			}
			if (showOne) break;
		}
	}
	else if (SnTisIE4) {
		if (level == 0) { menu.style.visibility = state; return; }
		for (var i = level; i < menu.length; i++) {
			if (menu[i] != null) {
				menu[i].style.visibility = state;
				for (var j = 0; j < document.all[menu[i].id].children.length; j++) {
					menu[i].children[j].style.visibility = state;
				}
				for (var j = 0; j < menu[i].satelite.length; j++) {
					menu[i].satelite[j].style.visibility = state;
				}
			}
			if (showOne) break;
		}
	}
	else if (SnTisNav4) {
		if (level == 0) { menu.style.visibility = state; return; }
		for (var i = level; i < menu.length; i++) {
			if (menu[i] != null) {
				menu[i].visibility = state;
				for (var j = 0; j < menu[i].layers.length; j++) {
					menu[i].layers[j].visibility = state;
				}
				for (var j = 0; j < menu[i].satelite.length; j++) {
					menu[i].satelite[j].visibility = state;
				}
			}
			if (showOne) break;
		}
	}
	return;
}
function SnTgetObject(objName) {
	var params;
	if (SnTW3C) {
		params = eval('document.getElementById("' + objName + '")');
	}
	else if (SnTisIE4) {
		params = eval("document.all." + objName);
	}
	else {
		params = SnTFindLayerObject(objName, 0);
	}
	return params;
}
function SnTFindLayerObject(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 = SnTFindLayerObject(layer, thisDocument.layers[i]); 
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function SnTTurnOn() { 
	if (!SnTisNav4) {
		this.style.backgroundColor = this.SnTnewBoxColor;
		this.style.color = this.SnTnewColor;
		this.style.fontWeight = this.SnTnewWeight;
		this.style.fontStyle = this.SnTnewStyle;
		this.style.textDecoration = this.SnTnewDecor;
		this.style.textAlign = this.SnTnewAlign;
	}
	else {
		this.bgColor = this.SnTnewBoxColor;
		this.fgColor = this.SnTnewColor;
		this.fontWeight = this.SnTnewWeight;
		this.fontStyle = this.SnTnewStyle;
		this.textDecoration = this.SnTnewDecor;
		this.textAlign = this.SnTnewAlign;
	}
	return;
}
function SnTTurnOff() { 
	if (!SnTisNav4) {
		this.style.backgroundColor = this.SnTorgBoxColor;
		this.style.color = this.SnTorgColor;
		this.style.fontWeight = this.SnTorgWeight;
		this.style.fontStyle = this.SnTorgStyle;
		this.style.textDecoration = this.SnTorgDecor;
		this.style.textAlign = this.SnTorgAlign;
	}
	else {
		this.bgColor = this.SnTorgBoxColor;
		this.fgColor = this.SnTorgColor;
		this.fontWeight = this.SnTorgWeight;
		this.fontStyle = this.SnTorgStyle;
		this.textDecoration = this.SnTorgDecor;
		this.textAlign = this.SnTorgAlign;
	}
	return;
}
function SnTControl() {
	for (var i = 0; i < SnTobjArray.length; i++) {
		SnTclientWidth = SnTisIE ? eval(document.body.clientWidth) : eval(window.innerWidth);
		SnTclientHeight = SnTisIE ? eval(document.body.clientHeight) : eval(window.innerHeight);
		SnTtopOffset = SnTisIE ? document.body.scrollTop : window.pageYOffset;
		SnTleftOffset = SnTisIE ? document.body.scrollLeft : window.pageXOffset;
		if (SnTobjArray[i].SnTstayPut) { SnTStayPut(i); }
		if (SnTobjArray[i].SnTcenter) { SnTCenter(i); }
		if (SnTobjArray[i].SnTcenterPlus) { SnTCenter(i); }
		if (SnTobjArray[i].SnTstretch){ SnTStretch(i); }
	}
	return;
}
function SnTStayPut(i) {
	if (SnTisWinIE5 || !SnTW3C) { 
		SnTobjArray[i][SnTtop] = SnTtopOffset + SnTobjArray[i].SnTorigTop + SnTsuffix;
		SnTobjArray[i][SnTleft] = SnTleftOffset + SnTobjArray[i].SnTorigLeft + SnTsuffix;
	}
	return;
}
function SnTCenter(i) {
	var width = SnTW3C ? parseInt(SnTobjArray[i][SnTwidth].replace(/\D/g, "")) : SnTobjArray[i][SnTwidth];
	var height = SnTW3C ? parseInt(SnTobjArray[i][SnTheight].replace(/\D/g, "")) : SnTobjArray[i][SnTheight];
	SnTcenterWidth = SnTobjArray[i].SnTcenterPlus ? SnTleftOffset : 0;
	SnTcenterHeight = SnTobjArray[i].SnTcenterPlus ? SnTtopOffset : 0;
	if (SnTobjArray[i].SnTstretchWidth) SnTobjArray[i][SnTleft] = (Math.round(SnTclientWidth-width)/2)+SnTcenterWidth + SnTsuffix;
	if (SnTobjArray[i].SnTstretchHeight) SnTobjArray[i][SnTtop] = (Math.round(SnTclientHeight-height)/2)+SnTcenterHeight + SnTsuffix;
	return;
}
function SnTVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4);
}
function emailer(action) {
var mailStuff = "mailto:"+action[1]+"?Subject="+action[2]+"&body="+action[3];
window.location = mailStuff;
}
// EOF
