			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
			}
			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 actArray = fct[array[i]];
					if(actArray == null) return false; 
					var tempArray = new Array;
					for(var j=1;j<actArray.length;j++) {
						if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
							if(actArray[j][0] == "VAR") {
								tempArray[j] = CSStateArray[actArray[j][1]];
							}
							else {
								if(actArray[j][0] == "ACT") {
									tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
								}
							else
								tempArray[j] = actArray[j];
							}
						}
						else
							tempArray[j] = actArray[j];
					}			
					result = actArray[0](tempArray);
				}
				return result;
			}
			CSAct = new Object;
			CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
			function IsIE() { return CSAg.indexOf("MSIE") > 0;}
			function CSIEStyl(s) { return document.all.tags("div")[s].style; }
			function CSNSStyl(s) { return CSFindElement(s,0); }
			function CSFindElement(n,ly) { if (CSBVers < 4) return document[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;
			}
			// CSSetStyleVis and CSGetStyleVis are updated for mozilla
			function CSSetStyleVis(s,v) { 
				if (isDomIE) CSIEStyl(s).visibility = (v == 0) ? "hidden" : "visible";
				if (isDomNN) CSNSStyl(s).visibility = (v == 0) ? 'hide' : 'show';
				if (isDom) document.getElementById(s).style.visibility = (v == 0) ? "hidden" : "visible";}
			
			function CSGetStyleVis(s) {

				if (isDomIE) return (CSIEStyl(s).visibility == "hidden") ? 0 : 1;
				if (isDomNN) return (CSNSStyl(s).visibility == 'hide') ? 0 : 1;
				if (isDom) return (document.getElementById(s).style.visibility == "hidden") ? 0 : 1;}

			function showhide(target,haction) {
				action=new Array(3);
				action[1]=target;
				action[2]=haction;
				//alert(action[1]+" // "+action[2]);
				if (action[1] == '') return;
				var type=action[2];
				if(type==0) CSSetStyleVis(action[1],0);
				else if(type==1) CSSetStyleVis(action[1],1);
				else if(type==2) { 
					if (CSGetStyleVis(action[1]) == 0) CSSetStyleVis(action[1],1);
					else CSSetStyleVis(action[1],0);
				}
			}

			function GetStyleVisX(s) {
				if (isDomIE) return CSIEStyl(s).top;
				if (isDomNN) return CSNSStyl(s).top;
				if (isDom) return document.getElementById(s).style.top;
			}
		
			// This part is for mozilla
			// ----------------------------------------------------------------------
			        var isDom = document.getElementById;
			        var isDomIE = document.all;
			        var isDomNN = document.layers;
			// ----------------------------------------------------------------------
			var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
			                parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
			var isMinIE4 = (document.all) ? 1 : 0;
			var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.")) >= 0 ? 1 : 0;

// Page Variables
fullmenuvis=0;
aktiv=0;


function getXPos(){
	var w=978;
	var h=582;
	if(isDomNN){
		var viswidth=window.innerWidth;
		if(viswidth==undefined)	var viswidth=document.body.offsetWidth;
		var finalpos=(viswidth-w)/2;
		if(finalpos<=0) finalpos=0;
		return(finalpos);
	}
	if(isDomIE){
		var viswidth=document.body.offsetWidth-20;
		var finalpos=(viswidth-w)/2;
		if(finalpos<=0) finalpos=0;
		return(finalpos);
	}
	if(isDom){
		var viswidth=window.innerWidth;
		if(viswidth==undefined) var viswidth=document.body.offsetWidth;
		var finalpos=(viswidth-w)/2;
		if(finalpos<=0) finalpos=0;
		return(finalpos);
	}	
}


function SetHeight(dname, newheight)
{
	if(isDomNN)
	{
		CSNSStyl(dname).height = newheight;
		return;
	}
	if(isDomIE)
	{
		CSIEStyl(dname).height = newheight;
		return;
	}
	if(isDom)
	{
		document.getElementById(dname).style.height=newheight;
		return;
	}	
}

function SetWidth(dname, newwidth)
{
	alert('####')
	if(isDomNN)
	{
		CSNSStyl(dname).width = newwidth;
		return;
	}
	if(isDomIE)
	{
		CSIEStyl(dname).width = newwidth;
		return;
	}
	if(isDom)
	{
		document.getElementById(dname).style.width=newwidth;
		return;
	}	
}

function pageprint()
{
	
	if(isDomIE) przval="30%";
	else if(isDom) przval="35%";
	
	document.getElementById("wrapper").style.left=przval;
	window.print();
	document.getElementById("wrapper").style.left="50%";
}

function openGallery(urlpath,w,h)
{
	var gal=window.open(urlpath,'gallery','toolbar=no,menubar=no,resize=no,width='+w+',height='+h);
	gal.moveTo(0,0);
}