/* -- 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;
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 CSFixFct() {
	var d = document; var w = window;
	if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {
		d.location = d.location; }
}
function CSNSFix(action) { 
	var d = document; var w = window;
	if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
		if (typeof d.cs == 'undefined') { 
			d.cs = new Object;
			d.cs.csFix = new Object; 
		} else if (CSIsFrame (w) == true) CSFixFct();
		d.cs.csFix.w = w.innerWidth;
		d.cs.csFix.h = w.innerHeight; 
		window.onresize = CSFixFct;
	  }
}
function CSIsFrame (window) {
	var rootWindow = window.parent;
	if (rootWindow == 'undefined') return false;
	for (i = 0; i < rootWindow.frames.length; i++)
		if (window == rootWindow.frames[i]) return true;
	return false;
}

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);
}

// WBCopyrightGuard.action v1.3 - May, 2004
// © Copyright 2003 by Walter Blady
// All rights reserved
var CGsetLoadDelay = 0, CGleft, CGtop, CGaction, CGimg, CGiw, CGih, CGprevImg = "";
var CGslideTimer = 0, CGslideIndex = 0, CGurl, CGtimer = 0, CGtotalSlides = 0;
var CGpause = false, CGadvance = true, CGslideCounted = false, CGloop, CGholdLoop, CGendOfLoop = false, CGdirection;
function WBCopyrightGuard(action) {
	if (CGVersion() && CGSinitFlag) { 
		CGaction = action;
		CGloop = false;
		if (CGimgp == null || CGimgw == null) {
			alert("Please wait. Images are still loading.");
		}
		if (action[1] < 6) {
			CGboxm.pro = action[4];
			CGboxm.mar = action[5];
			CGboxm.cap = action[6];
			CGboxm.pos = action[7];
			CGboxm.off = action[8];
			if (action[1] > 0 && !CGslideCounted) {
				for (var i = 1; eval("CGImages_" + i + "()").toLowerCase() != "end"; i++) { }
				CGtotalSlides = i-1;
				CGslideCounted = true;
			}
		}
		if (action[1] == 0 && action[3].indexOf("Reference!") == -1 && action[3] != "#") {
			var img = CGFindFrame(action[3]);
			CGimgm.src = img;
			CGShowHide(CGboxm, CGhid);
			CGShowHide(CGboxp, CGhid);
			CGShowHide(CGboxw, CGhid);
			if (CGboxc != null) CGShowHide(CGboxc, CGhid);
			if (CGboxm.pos > 0 && CGboxm.cap.length > 0 && !CGisNav4) {
				var caption = eval("CGCaption_" + CGboxm.cap + "()");
				if (caption) CGboxc.innerHTML = caption;
			}
			CGsetLoadDelay = setInterval('CGFinishUp();', CGSdelay);
		}
		else {
			if (action[1] == 1 || action[1] == 2) {
				clearInterval(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGpause = false;
				CGtimer = action[2]*1000;
				if (action[1] == 1) {
					CGslideIndex = 0;
				}
				CGadvance = true;
				CGloop = CGaction[9];
				CGholdLoop = CGloop;
				CGendOfLoop = false;
				CGDoSlides();
				if (!CGendOfLoop) CGslideTimer = setInterval("CGDoSlides()", CGtimer);
			}
			else if (action[1] == 3) {
				clearInterval(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGpause = false;
				CGtimer = action[2]*1000;
				CGadvance = false;
				CGloop = CGaction[9];
				CGholdLoop = CGloop;
				CGendOfLoop = false;
				CGDoSlides();
				if (!CGendOfLoop) CGslideTimer = setInterval("CGDoSlides()", CGtimer);
			}
			else if (action[1] == 4) {
				clearInterval(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGadvance = true;
				CGloop = true;
				CGDoSlides();
			}
			else if (action[1] == 5) {
				clearInterval(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGadvance = false;
				CGloop = true;
				CGDoSlides();
			}
			else if (action[1] == 6 && CGboxm.pro != null) {
				if (!CGpause) {
					CGdirection = CGadvance;
					clearInterval(CGslideTimer);
				}
				else {
					CGadvance = CGdirection;
					CGloop = CGholdLoop;
					CGDoSlides();
					if (!CGendOfLoop) CGslideTimer = setInterval("CGDoSlides()", CGtimer);
				}
				CGpause = CGpause ? 0 : 1;
			}
			else if (action[1] == 7 && CGboxm.pro != null) {
				clearInterval(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGpause = false;
			}
		}
	}
	return;
}
function CGDoSlides() {
	CGslideIndex += CGadvance ? 1 : -1;
	if (CGslideIndex > CGtotalSlides) {
		CGslideIndex = CGloop ? 1 : CGslideIndex + -1;
		if (!CGloop) {
			clearInterval(CGslideTimer);
			clearInterval(CGsetLoadDelay);
			CGendOfLoop = true;
			return;
		}
	}
	if (CGslideIndex < 1) {
		CGslideIndex = CGloop ? CGtotalSlides : CGslideIndex + 1;
		if (!CGloop) {
			clearInterval(CGslideTimer);
			clearInterval(CGsetLoadDelay);
			CGendOfLoop = true;
			return;
		}
	}
	var img = eval("CGImages_" + CGslideIndex + "()");
	img = CGFindFrame(img);
	CGimgm.src = img;
	CGShowHide(CGboxm, CGhid);
	CGShowHide(CGboxp, CGhid);
	CGShowHide(CGboxw, CGhid);
	if (CGboxc != null) CGShowHide(CGboxc, CGhid);
	if (CGboxm.pos > 0 && !CGisNav4) {
		var caption = eval("CGCaption_" + CGcap + "()");
		if (caption) CGboxc.innerHTML = caption;
	}
	CGsetLoadDelay = setInterval('CGFinishUp();', CGSdelay);
	return;
}
function CGFinishUp() {
	clearInterval(CGsetLoadDelay);
	CGprevImg = CGimgm;
	CGSetBoxSize(CGboxm, CGimgm.width, CGimgm.height);
	CGShowHide(CGboxm, CGvis);
	if (CGboxp != null && CGboxm.pro) {
		/* indien copyright */
		CGSetBoxSize(CGboxp, CGimgm.width, CGimgm.height);
		CGimgp.width = CGimgm.width;
		CGimgp.height = CGimgm.height;
		CGShowHide(CGboxp, CGvis);
	}
	if (CGboxw != null && CGboxm.mar) {
		/* indien watermerk */
		CGSetBoxSize(CGboxw, CGimgw.width, CGimgw.height)
		var w = CGisW3C || CGisIE4 ? CGboxw.style.width.toString() : CGboxw.width.toString();
		var h = CGisW3C || CGisIE4 ? CGboxw.style.height.toString() : CGboxw.height.toString();
		if (w.indexOf("px") > -1) {
			w = w.replace(/px/, "");
			h = h.replace(/px/, "");
		}
		var left = (CGimgm.width - w) / 2;          /* var top = (CGimgm.height - h) / 2; */
		var top = (CGimgm.height - h) ;
		CGScrollTo(CGboxw, left, top);
		CGShowHide(CGboxw, CGvis);
	}
	if (!CGisNav4 && CGboxc != null && CGboxm.pos > 0) {
		var offset = CGboxm.off;
		if (CGboxm.pos == 1) {
			var left = 0;
			var top = 0 - CGboxcHeight - offset;
		}
		if (CGboxm.pos == 2) {
			var left = 0;
			var top = CGimgm.height + offset;
		}
		if (CGboxm.pos == 3) {
			var left = 5;
			var top = offset;
		}
		if (CGboxm.pos == 4) {
			var left = 5;
			var top = CGimgm.height - CGboxcHeight - offset;
		}
		if (CGboxm.pos == 5) {
			var left = (CGimgm.width - CGboxcWidth) / 2;
			var top = (CGimgm.height - CGboxcHeight) / 2;
		}		
		CGScrollTo(CGboxc, left, top);
		CGShowHide(CGboxc, CGvis);
	}		
	return;
}
function CGFindFrame(s) {
	var p = s.substr(0, s.lastIndexOf("/")+1);
	var n = s.substr(s.lastIndexOf("/")+1, 99);
	var na = n.substr(0, n.indexOf("."));
	var ex = n.substr(n.indexOf("."), 10);
	return  p + na + CGSframe + ex;
}
function CGSetBoxSize(obj, w, h) {
	if (CGisW3C || CGisIE4) {
		obj.style.width = w;
		obj.style.height = h;
	}
	else {
		obj.width = w;
		obj.height = h;
	}
	return;
}
function CGScrollTo(obj, x, y) {
	if (CGisW3C) {
		obj.style.left = x + "px";
		obj.style.top = y + "px";
	}
	else if (CGisIE4) {
		obj.style.pixelLeft = x;
		obj.style.pixelTop = y;
	}
	else {
		obj.moveTo(x, y);
	}
	return;
}
function CGShowHide(object, state) {
	if (CGisW3C || CGisIE4) {
		object.style.visibility = state;
	}
	else if (CGisNav4) {
		object.visibility = state;
	}
	return;
}
function CGVersion() {
	return true;
}
//
//-->

// WBCopyrightGuardSetup.action v1.2 - May, 2004
// © Copyright 2003 by Walter Blady
// All rights reserved
var CGisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var CGisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var CGisIE = window.navigator.userAgent.indexOf("MSIE") > 0;
var CGisOpera = window.navigator.userAgent.indexOf("Opera") > 0;
var CGisSafari = window.navigator.userAgent.indexOf("Safari") > 0;
var CGisW3C = document.getElementById ? true : false;
var CGisNav = navigator.appName.indexOf("Netscape") >= 0;
var CGisWin = navigator.platform.indexOf("Win") > -1;
var CGSinitFlag = false;
var CGimgm = null, CGimgp = null, CGimgw = null, CGboxm = null, CGboxp = null, CGboxw = null, CGboxc = null;
var CGboxmLeft = 0, CGboxmTop = 0, CGboxcWidth = 0, CGboxcHeight = 0, CGSframe = "", CGSaction, CGSdelay;
var CGvis = (CGisW3C || CGisIE4) ? "visible" : "show";
var CGhid = (CGisW3C || CGisIE4) ? "hidden" : "hide";
function WBCopyrightGuardSetup(action) {
	if (CGSVersion()) { 
		CGSaction =  action;	
		CGSsetDelay = setInterval('if (CGSGetImageObj(CGSaction[13], CGSaction[1]) != null) { CGSFinishUp() }', 200);
	}
	CGSdelay = action[14];
	CGSinitFlag = true;
	return;
}
function CGSFinishUp() {
	clearInterval(CGSsetDelay);
	if (CGSaction[1].length > 0) CGimgm = CGSGetImageObj(CGSaction[13], CGSaction[1]);
	if (CGSaction[2].length > 0) {
		CGboxm = CGSGetBoxObj(CGSaction[13], CGSaction[2]);
		CGboxmLeft = CGSaction[3];
		CGboxmTop = CGSaction[4];
	}
	if (CGSaction[5].length > 0) CGimgp = CGSGetImageObj(CGSaction[13], CGSaction[5]);
	if (CGSaction[6].length > 0) CGboxp = CGSGetBoxObj(CGSaction[13], CGSaction[6]);
	if (CGSaction[7].length > 0) CGimgw = CGSGetImageObj(CGSaction[13], CGSaction[7]);
	if (CGSaction[8].length > 0) CGboxw = CGSGetBoxObj(CGSaction[13], CGSaction[8]);
	if (CGSaction[9].length > 0) CGboxc = CGSGetBoxObj(CGSaction[13], CGSaction[9]);
	if (CGboxc != null) {
		CGboxcWidth = CGSaction[10];
		CGboxcHeight = CGSaction[11];
	}
	CGSframe = CGSaction[12];
return;
}
function CGSGetImageObj(frameName, imgObjName) {
	var path = frameName.length > 0 ? frameName + "." : "";
	if (CGisW3C || CGisIE) {
		var baseImage = eval(path + "document.images." + imgObjName);
	}
	else {
		baseImage = parseInt(navigator.appVersion.charAt(0)) > 3 ? CGSFindImgElement(imgObjName, 0, path) : eval(path + "document.images[imgObjName]");
	}
	return baseImage;
}
function CGSFindImgElement(baseImage, thisLayer, path) {
	if (path.length != "") {
		var thisDocument = thisLayer ? thisLayer.document : eval(path + "document");
	}
	else {
		var thisDocument = thisLayer ? thisLayer.document : document;
	}
	var imageObj = thisDocument[baseImage];
	if (imageObj) {
		return imageObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			imageObj = CGSFindImgElement(baseImage, thisDocument.layers[i], path);
			if (imageObj) {
				break;
			}
		}
	}
	return imageObj;
}
function CGSGetBoxObj(frameName, imgName) {
	var path = frameName.length > 0 ? frameName + "." : "";
	if (CGisW3C) {
		var layerObj = eval(path + 'document.getElementById("' + imgName + '")');
	}
	else if (CGisIE4) {
		var layerObj = eval(path + "document.all." + imgName);
	}
	else {
		var layerObj = CGFindLayerObject(path, imgName, 0);
	}
	return layerObj;
}
function CGFindLayerObject(path, layer, thisLayer) {
	if (thisLayer) {
		var thisDocument = eval(path + "thisLayer.document");
	}
	else {
		var thisDocument = eval(path + "document");
	}
	var layerObj = thisDocument[layer];
	if (layerObj) {
		return layerObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			layerObj = CGFindLayerObject("", layer, thisDocument.layers[i]);
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function CGSVersion() {
	return true;
}
//
//-->

function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}


