/* -- Adobe GoLive JavaScript Library */

CSInit = new Array;
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);
}
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");
	}
}

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 CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}

// MailURL.action v1.7.1 - March, 2004
// © Copyright 2000 by Walter Blady
// All rights reserved
var MUisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var MUmyWindow = null, MUAction;
function WBMailURL(action) {
	if (MUVersion()) {
		MUAction = action;
		var MUisIE = window.navigator.userAgent.indexOf("MSIE") != -1;
		var MUW3C = document.getElementById ? true : false;
		var url = action[9].indexOf("Reference!") == -1 && action[9] != "#" ? action[9] : unescape(window.location);
		var s = url.indexOf("?");
		url = !(s > -1) ? url : url.substr(0, s) + escape(url.substr(s, url.length));
		url = action[8] + url;
		if (action[1] == 0) {
			var content = "mailto:Recipient@emailAddress?subject=" + action[18] + "&body=" + url;
			window.location = content;
			if (action[17].indexOf("Reference!") == -1 && action[17] != "#") {
				var t = setTimeout("MURedirect()", 3000);
			}
			return true;
		}
		var w = action[6], h = action[7];
		MUParams = "width=" + w + ",height=" + h + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,favorites=no,resizable=yes";
		var screenWidth = screen.width;
		var screenHeight = screen.height;
		if (action[3] == 0) {
			var left = Math.round((screenWidth - (w+20))/2);
			var top = Math.round((screenHeight - (h+55))/2);
		}
		else if (action[3] == 1) {
			var left = 10;
			var top = 10;
		}
		else if (action[3] == 2) {
			var left = 10;
			var top = (screenHeight - (h+55));
		}
		else if (action[3] == 3) {
			var left = (screenWidth - (w+20));
			var top = 3;
		}
		else if (action[3] == 4) {
			var left = (screenWidth - (w+20));
			var top = (screenHeight - (h+55));
		}
		else if (action[3] == 5) {
			var left = action[4];
			var top = action[5];
		}
		MUParams += (MUisIE || MUW3C) ? ",top=" + top + ",left=" + left : ",screenY=" + top + ",screenX=" + left;
		var MUMess = '<html><head><meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">\n';
		MUMess += '<title>E-mail a URL</title>\n';
		MUMess += '<style media="screen" type="text\/css"><!-- body, form { font-size: 12px; font-family: Verdana, Geneva, Helvetica, Arial } --><\/style>\n';
		MUMess += '<script language="Javascript"> function MUCloseWindow() { self.window.close(); return; }\n';
		MUMess += 'function MURedirect() { opener.location.href = "' + MUAction[17] + '"; MUCloseWindow(); return;}\n';
		MUMess += 'function MUSendForm() { var url ="' + url + '", myForm = window.document.emailForm;\n';
		MUMess += 'if (myForm.email.value == "") myForm.email.value = "Recipient@emailAddress";\n';
		MUMess += 'var s = myForm.subject.value == "" ? "?Subject= " : "?Subject=" + myForm.subject.value;\n';
		MUMess += 'var c = myForm.cc.value == "" ? "" : "?cc=" + myForm.cc.value;\n';
		MUMess += 'var content = "mailto:" + myForm.email.value + s + c + "&body=" + ';
		MUMess += 'myForm.body.value;\n';
		MUMess += 'window.location = content;\n';
		if (action[17].indexOf("Reference!") == -1 && action[17] != "#") {
			MUMess += 'var t = setTimeout("MURedirect()", 3000);\n';
		}
		MUMess +=  'return true; } </' + 'script>\n';
		MUMess += '</head><body bgcolor="#ffffff">\n';
		MUMess += '<div align="center"><p><b>' + action[10] + '</b></p>\n';
		MUMess += '<form name="emailForm" action="" method="post" enctype="text/plain">\n';
		MUMess += action[11] + '<br><input type="text" name="email" size="40"><br>\n';
		MUMess += action[12] + '<br><input type="text" name="cc" size="40"><br>\n';
		MUMess += action[13] + '<br><input type="text" name="subject" value="' + action[18] + '" size="50"><br>\n';
		MUMess += action[14] + '<br><textarea name="body" cols="49" rows="6">' + url + '</textarea>\n';
		if (action[1] == 1) {
			MUMess += '<p><input type="button" name="mailURL" value="' + action[15] + '" onclick="Javascript:void(MUSendForm())">\n';
		}
		MUMess += '<input type="button" name="closeWindow" value="' + action[16] + '" onclick="Javascript:void(MUCloseWindow())">\n';
		MUMess += '</form>\n';
		MUMess += '</div><script type="text/javascript">
 
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22415444-1']);
  _gaq.push(['_trackPageview']);
 
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
 
</script></body></html>\n';
		MUmyWindow = window.open("", "MUmyWind", MUParams);
		MUmyWindow.moveTo(left, top);
		MUmyWindow.document.write(MUMess);
		MUmyWindow.document.close();
		MUmyWindow.focus();
		return;
	}
}
function MURedirect() {
	window.location.href = MUAction[17];
	return;
}
function MUVersion() {
	return true;
}
//
//-->

// StyleDirect.action v2.0.1 - March, 2007
// © Copyright 1999 by Walter Blady
// All rights reserved
var SDisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) <= 4;
function WBStyleDirect(action) {
	if (SDVersion()) {
		if (action[1] == 0) {
			if (SDisNav4 && navigator.appName.indexOf("OmniWeb") == -1) window.onresize = SDControl;
			var compat = false;
			var uAgent = window.navigator.userAgent;
			var bappName = window.navigator.appName;
			var appVers = window.navigator.appVersion;
			var line = "";
			var cookieSheet = SDGetCookie("SDCookie");
			if (cookieSheet != "") {
				cookieSheet = cookieSheet.substr(cookieSheet.indexOf("=") + 1, cookieSheet.length);
			}
			if ((bappName.indexOf("Netscape") > -1) && !(bappName.indexOf("WebTV") > -1)) {
				if (navigator.platform.indexOf("Mac") != -1) {
					for (var i = 3; i < 6; i++) {
						if (action[i].indexOf("Reference!") == -1 && action[i] != "#" && action[i] != cookieSheet) {
							line += '<link rel="stylesheet" href="' + action[i] + '" media="screen">\n';
						}
					}
					if (action[2].indexOf("Reference!") == -1 && action[2] != "#" && action[2] != cookieSheet) {
						line += '<link rel="stylesheet" href="' + action[2] + '" media="screen">\n';
					}
					SDdefaultStyleSheet = action[2];
					compat = true;
				}
				else if (navigator.platform.indexOf("Win") != -1) {
					for (var i = 7; i < 10; i++) {
						if (action[i].indexOf("Reference!") == -1 && action[i] != "#" && action[i] != cookieSheet) {
							line += '<link rel="alternate stylesheet" href="' + action[i] + '" media="screen">\n';
						}
					}
					if (action[6].indexOf("Reference!") == -1 && action[6] != "#" && action[6] != cookieSheet) {
						line += '<link rel="stylesheet" href="' + action[6] + '" media="screen">\n';
					}
					SDdefaultStyleSheet = action[6];
					compat = true;
				}
			}
			else if ((bappName.indexOf("Explorer") > -1 || bappName.indexOf("Opera") > -1) && !bappName.indexOf("WebTV") > -1) {
				if (navigator.platform.indexOf("Mac") != -1) {
					for (var i = 11; i < 14; i++) {
						if (action[i].indexOf("Reference!") == -1 && action[i] != "#" && action[i] != cookieSheet) {
							line += '<link rel="stylesheet" type="text/css" href="' + action[i] + '" media="screen">\n';
						}
					}
					if (action[10].indexOf("Reference!") == -1 && action[10] != "#" && action[10] != cookieSheet) {
						line += '<link rel="stylesheet" type="text/css" href="' + action[10] + '" media="screen">\n';
					}
					SDdefaultStyleSheet = action[10];
					compat = true;
				}
				else if (navigator.platform.indexOf("Win") != -1) {
					for (var i = 15; i < 18; i++) {
						if (action[i].indexOf("Reference!") == -1 && action[i] != "#") {
							line += '<link rel="stylesheet" href="' + action[i] + '" media="screen">\n';
						}
					}
					if (action[14].indexOf("Reference!") == -1 && action[14] != "#") {
						line += '<link rel="stylesheet" href="' + action[14] + '" media="screen">\n';
					}
					SDdefaultStyleSheet = action[14];
					compat = true;
				}
			}
			else if (bappName.indexOf("WebTV") != -1) {
				for (var i = 19; i < 22; i++) {
					if (action[i].indexOf("Reference!") == -1 && action[i] != "#" && action[i] != cookieSheet) {
						line += '<link rel="stylesheet" href="' + action[i] + '" media="screen">\n';
					}
				}
				if (action[18].indexOf("Reference!") == -1 && action[18] != "#" && action[18] != cookieSheet) { 
					line += '<link rel="stylesheet" href="' + action[18] + '" media="screen">';
				}
				SDdefaultStyleSheet = action[18];
				compat = true;
			}
			if (cookieSheet != null) {
				line += '<link rel="stylesheet" type="text/css" href="' + cookieSheet + '" media="screen">';
			}
			document.writeln(line);
			var t = setTimeout("SDSetStyle()", 300);
		}
		else if (action[1] == 1) {
			var styleSheet = "";
			if (action[22] == 1) {
				styleSheet = SDdefaultStyleSheet;
			}
			else if (action[22] == 2 && action[23].indexOf("Reference!") == -1 && action[23] != "#") {
				styleSheet = action[23];
			}
			SDNewCSS(styleSheet);
		}
		return;
	}
}
function SDSetStyle() {
	var cookieCrumbs = SDGetCookie("SDCookie");
	if (cookieCrumbs != "") {
		cookieCrumbs = cookieCrumbs.substr(cookieCrumbs.indexOf("=") + 1, cookieCrumbs.length);
		SDNewCSS(cookieCrumbs);
	}
	return;
}
function SDNewCSS(name) {
	var CSS;
	for (var i = 0; (CSS = document.getElementsByTagName("link")[i]); i++) {
		if (CSS.getAttribute("rel").indexOf("stylesheet") != -1 && CSS.getAttribute("href").indexOf(name) != -1) {
			CSS.disabled = false;
		}
		else {
			CSS.disabled = true;
		}
	}
	if (SDGetCookie("SDCookie").indexOf(name) == -1) {
		SDCookieObject = new SDCookie(document, "SDCookie", 365, "/", "", 0);
		SDCookieObject.storeCookie(name);
	}
	return;
}
new SDCookie();
SDCookie.prototype.storeCookie = SDStoreCookie;
function SDCookie(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 SDStoreCookie(value) {
	if (value == null) value = "";
	for (var prop in this) {
		if (prop.charAt(0) == "$" || (typeof this[prop]) == "function") {
			continue;
		}
		if (value != "") value += "&";
		value += prop + ":" + 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;
	this.$document.cookie = cookie;
	return;
}
function SDGetCookie(cookieTarget) {
	var cookieCrumbs = unescape(document.cookie);
	var cookieArray = cookieCrumbs.split("; ");
	cookieCrumbs = "";
	for (var i = 0; i < cookieArray.length; i++) {
		if (cookieArray[i].indexOf(cookieTarget) != -1) {
			cookieCrumbs = cookieArray[i];
			break;
		}
	}
	return cookieCrumbs;
}
function SDControl() {
	window.location.reload();
	return;
}
function SDVersion() {
	return true;
}
//
//-->



