// -- Adobe GoLive JavaScript Library
// -- Global Functions
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;
CSIm=new Object();
function CSIShow(n,i) {
	if (document.images) {
		if (CSIm[n]) {
			var img=CSGetImage(n);
			if (img&&typeof(CSIm[n][i].src)!="undefined") {img.src=CSIm[n][i].src;}
			if(i!=0) self.status=CSIm[n][3]; else self.status=" ";
			return true;
		}
	}
	return 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 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
}
function CSButtonReturn () { return !CSClickReturn(); }
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
CSIsW3CDOM = ((document.getElementById) && !(IsIE()&&CSBVers<6)) ? true : false;
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { if (CSIsW3CDOM) return document.getElementById(s).style; else return CSFindElement(s,0);  }
CSIImg=false;
function CSInitImgID() {if (!CSIImg && document.images) { for (var i=0; i<document.images.length; i++) { if (!document.images[i].id) document.images[i].id=document.images[i].name; } CSIImg = true;}}
function CSFindElement(n,ly) { if (CSBVers<4) return document[n];
	if (CSIsW3CDOM) {CSInitImgID();return(document.getElementById(n));}
	var curDoc = ly?ly.document:document; var elem = curDoc[n];
	if (!elem) {for (var i=0;i<curDoc.layers.length;i++) {elem=CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
	return elem;
}
function CSGetImage(n) {if(document.images) {return ((!IsIE()&&CSBVers<5)?CSFindElement(n,0):document.images[n]);} else {return null;}}
CSDInit=false;
function CSIDOM() { if (CSDInit)return; CSDInit=true; if(document.getElementsByTagName) {var n = document.getElementsByTagName('DIV'); for (var i=0;i<n.length;i++) {CSICSS2Prop(n[i].id);}}}
function CSICSS2Prop(id) { var n = document.getElementsByTagName('STYLE');for (var i=0;i<n.length;i++) { var cn = n[i].childNodes; for (var j=0;j<cn.length;j++) { CSSetCSS2Props(CSFetchStyle(cn[j].data, id),id); }}}
function CSFetchStyle(sc, id) {
	var s=sc; while(s.indexOf("#")!=-1) { s=s.substring(s.indexOf("#")+1,sc.length); if (s.substring(0,s.indexOf("{")).toUpperCase().indexOf(id.toUpperCase())!=-1) return(s.substring(s.indexOf("{")+1,s.indexOf("}")));}
	return "";
}
function CSGetStyleAttrValue (si, id) {
	var s=si.toUpperCase();
	var myID=id.toUpperCase()+":";
	var id1=s.indexOf(myID);
	if (id1==-1) return "";
	s=s.substring(id1+myID.length+1,si.length);
	var id2=s.indexOf(";");
	return ((id2==-1)?s:s.substring(0,id2));
}
function CSSetCSS2Props(si, id) {
	var el=document.getElementById(id);
	if (el==null) return;
	var style=document.getElementById(id).style;
	if (style) {
		if (style.left=="") style.left=CSGetStyleAttrValue(si,"left");
		if (style.top=="") style.top=CSGetStyleAttrValue(si,"top");
		if (style.width=="") style.width=CSGetStyleAttrValue(si,"width");
		if (style.height=="") style.height=CSGetStyleAttrValue(si,"height");
		if (style.visibility=="") style.visibility=CSGetStyleAttrValue(si,"visibility");
		if (style.zIndex=="") style.zIndex=CSGetStyleAttrValue(si,"z-index");
	}
}
// -- Action Functions
// ShownTell.action v1.7.3 - September, 2002
// © 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 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 SnTvis = (SnTW3C || SnTisIE4) ? "visible" : "show";
var SnThid = (SnTW3C || SnTisIE4) ? "hidden" : "hide";
function WBShownTell(action) {
	if (SnTVersion()) {
		SnTaction = action;
		clearTimeout(SnTmouseTrapTimer);
		if (action[2].length > 0) {
			SnTboxObj = SnTgetObject(action[2]);
			if (action[1] == 2) {
				SnTboxObj.onmouseover = SnTMouseTrapTimerQuit;
				SnTboxObj.onmouseout = SnTMouseTrap;
				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]];
				return;
			}
			else {
				SnTboxObj.onmouseover = SnTMouseTrapTimerQuit;
				SnTboxObj.onmouseout = SnTMouseTrap;
				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;
				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 SnTVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4);
}
// EOF
