/* -- Adobe GoLive JavaScript Library */

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
}

//* (c) 1998-2000 Terry Chay <mailto:tychay@zipasia.com> <http://www.zipasia.com/>

function TCOpenWindow(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");	
// support both Netscape and IE 4 window positions
	if (action[12]) {
		wf = wf + ",screenX=" + action[12] +",left=" + action[12];
	}
	if (action[13]) {
		wf = wf + ",screenY=" + action[13] +",top=" + action[13];
	}
	wf = wf + action[14];  //any other additional parameters?
	var w = window.open(action[1],action[2],wf);
	
//
// Patch Netscape2 (Mac/X11), Internet Explorer 3 bugs
// ignores first argument of window.open() (Netscape2(Mac/X11),IE3)
// doesn't set opener proerty (Netscape2,IE3.0)
// uses an object detection model for maximum compatibility
//
	if (w!=null) {
		if (w.location==null) w.location = action[1];
		if (w.opener==null)  w.opener=self;
	}
}


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);}
// JM Center Layer - Version 1.2 
// GoLive Action by Jesper G.O. Møller2006 - http://www.jart.dk/jgom/index.html
//
function JMCenterLayer(action) {
centerDiv = action[1];
JMCenterLayerSet(centerDiv);
}

function JMCenterLayerSet() {
windowHeight = 0;
windowWidth = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
		windowWidth = window.innerWidth;
		}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
			windowWidth = document.documentElement.clientWidth;
			}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
				windowWidth = document.body.clientWidth;
			}
		}
	}
	if (windowHeight > 0 || windowWidth > 0) {
		var layerElement = document.getElementById(centerDiv);
		var layerWidth =layerElement.offsetWidth;
		var layerHeight =layerElement.offsetHeight;
		layerElement.style.position = "relative";
			if (windowWidth - layerWidth > 0) {
				layerElement.style.left = ((windowWidth / 2) - (layerWidth / 2)) + 'px';
				}
			else {
				layerElement.style.left = 0 + 'px';
				}
			if (windowHeight - layerHeight > 0) {
				layerElement.style.top = ((windowHeight / 2) - (layerHeight / 2)) + 'px';
				}
			else {
				layerElement.style.top = 0 + 'px';
				}
	}
}

window.onresize = function() {
var uamac = navigator.userAgent.toLowerCase();
	if(uamac.indexOf('msie 5.1')>-1 && uamac.indexOf('mac')>-1){
		window.location.reload( false );
		}
	else {
		JMCenterLayerSet();
		}
}
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);
}