<!-- hide script
//	all contents on this site							--
//	are copyright (c) 1998-2007 by				--
//	http://www.art-emission.com					 	--
//	of Switzerland, all rights reserved		--

	// default false
	var onlyMACtest       = false;
	// test true
	// onlyMACtest       = true;
	
	browserOk=false;
	osName="w";
	bName="e";
	bVersion=1;

	if (navigator.appVersion.indexOf("Mac") > 0) osName = "m";
	//	for test
	if (onlyMACtest == true){	osName = "m"; }

	var brname = navigator.userAgent.toLowerCase();
	if ( (brname.indexOf("mozilla")>-1) && (brname.indexOf("msie")>-1) )
	{ bName = "e";}
	else if ( (brname.indexOf("mozilla")>-1) && (brname.indexOf("firefox")>-1) )
	{ bName = "f";}
	else if ( (brname.indexOf("mozilla")>-1) && (brname.indexOf("gecko")>-1) )
	{ bName = "m";}
	else if ( (brname.indexOf("mozilla")>-1) && (brname.indexOf("msie")==-1) && (brname.indexOf("opera")==-1) )
	{ bName = "n";}
	else if ( (brname.indexOf("mozilla")>-1) && (brname.indexOf("opera")>-1) )
	{ bName = "m";}
	else
	{ bName = "e";}

	if (parseInt(navigator.appVersion) >= 4) { bVersion=4;} 
	if (parseInt(navigator.appVersion) >= 5) { bVersion=5;}
	if (parseInt(navigator.appVersion) >= 6) { bVersion=6;}

	if (bVersion>=4) browserOk=true;
	
	var maxScreenX = 640; 
	if (screen.width){ maxScreenX=screen.width;};
	if (maxScreenX<=640){ maxScreenX=640;};
	var maxScreenY = 480;
	if (screen.height){ maxScreenY=screen.height;};
	if (maxScreenY<=480){ maxScreenY=480;};
	
	// Werte innerScreenX/Y werden nur fuer NS4 verwendet
	var innerScreenX = 1024;
	if (window.innerWidth){ innerScreenX=window.innerWidth;};
	if (innerScreenX<=100){ innerScreenX=100;};
	var innerScreenY = 768;
	if (window.innerHeight){ innerScreenY=window.innerHeight;};
	if (innerScreenY<=100){ innerScreenY=100;};
	
	if (browserOk){	if (self.parent.frames.length!= 0) {self.parent.location=document.location;}}

	if (loadCSSok==true)
	{
		if ((bName == "f") || (bName == "m"))
		{	
			document.write("<link href='../css/designFire.css' rel='STYLESHEET' type='text/css'>"); 
		}
		else if ( (bName == "n") && (bVersion<=4) )
		{	
		// Datei ist leer
		//	document.write("<link href='../css/designNets.css' rel='STYLESHEET' type='text/css'>"); 
		}
	}	
	
	
	//	for release
	// window.onerror=null;
	
	// je nach Sprache ../
	var gh="../images/global/";
	var ih="../images/";
	
	var loadpictok=false;
	
	var actualwin1=null;
	var win1open=false;
	
	var actualwin2=null;
	var win2open=false;
	
	if (browserOk)
	{	
		var g1=new Image(30,4)
		g1.src=ih+"end_page_rot.gif";

		var g1s=new Image(30,4)
		g1s.src=ih+"end_page_gr.gif";
		
		var g2=new Image(30,4)
		g2.src=ih+"top_page_rot.gif";

		var g2s=new Image(30,4)
		g2s.src=ih+"top_page_gr.gif";
	}
	
	
	function endpageover(index)
	{	if (browserOk)
		{ document.images['endpage'+index].src=ih+'end_page_gr.gif';}}

	function endpageout(index)
	{	if (browserOk)
		{	document.images['endpage'+index].src=ih+'end_page_rot.gif';}}

	function toppageover(index)
	{	if (browserOk)
		{ document.images['toppage'+index].src=ih+'top_page_gr.gif';}}

	function toppageout(index)
	{	if (browserOk)
		{	document.images['toppage'+index].src=ih+'top_page_rot.gif';}}
	
	function emaillinkname(name, domain, subject)
	{	if (browserOk)
		{	var web1="mailto:"+name;
			var web2="@"
			var web3=domain;
			var web4=subject;
			var web=web1+web2+web3+web4;
			location.href=web;
			if (browserOk && (bName == "n"))
			{	location.reload();} }}	
	
	// new windows		

		
	function clswinlocal()
	{	if (browserOk)	
		{	var oldwin=window.opener;
			if (oldwin!=null)
			{	window.close();}}}
		
	// Position von Fenster
	function getXcenter(sizeX)
	{	var newPosX = 0;
		if (browserOk)	
		{	if (sizeX<=maxScreenX)
			{	newPosX = (maxScreenX-sizeX)/2;}}
		return newPosX;}

	// Position von Fenster
	function getYcenter(sizeY)
	{	var newPosY = 0;
		if (browserOk)	
		{	if (bName == "i")
			{	if ((sizeY+105)<=maxScreenY)
				{	newPosY = (maxScreenY-(sizeY+105))/2;}}
			else	
			{	if ((sizeY+70)<=maxScreenY)
				{	newPosY = (maxScreenY-(sizeY+70))/2;}}}
		return newPosY;}

	// Position von Fenster
	function getMaxYsize(sizeY,maxYsize)
	{	var newMaxY = sizeY;
		if (browserOk)	
		{	if ((sizeY+80)>=maxScreenY)
			{	newMaxY = (maxScreenY-80);}
			else
			{	newMaxY = sizeY;}}
		if (newMaxY>=maxYsize)
		{	newMaxY = maxYsize;}
		return newMaxY;}
			
	
	function loadLargeImage(url)
	{	if (browserOk)	
		{	var merkmalewin2='toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=780,height='+getMaxYsize(530,1200)+',left='+getXcenter(780)+',top='+getYcenter(getMaxYsize(530,1200));
			var dateiname=url;
			actualwin2=window.open('','docpdf2',merkmalewin2);
			win2open=true;
			if (actualwin2!=null)
			{	actualwin2.focus();
				actualwin2.location.href=dateiname;
				return false;}
			else
			{	return true;}}
		else
		{	return true;}}
	
	
	function loadDocPDFinWindow(url)
	{	if (browserOk)	
		{	var merkmalewin2='toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=780,height='+getMaxYsize(530,1200)+',left='+getXcenter(780)+',top='+getYcenter(getMaxYsize(530,1200));
			var dateiname=url;
			actualwin2=window.open('','docpdf2',merkmalewin2);
			win2open=true;
			if (actualwin2!=null)
			{	actualwin2.focus();
				actualwin2.location.href=dateiname;
				return false;}
			else
			{	return true;}}
		else
		{	return true;}}


	function loadOpenInWindow(url)
	{	if (browserOk)	
		{	var merkmalewin2='toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=880,height='+getMaxYsize(530,1200)+',left='+getXcenter(880)+',top='+getYcenter(getMaxYsize(530,1200));
			var dateiname=url;
			actualwin2=window.open('','docpdf2',merkmalewin2);
			win2open=true;
			if (actualwin2!=null)
			{	actualwin2.focus();
				actualwin2.location.href=dateiname;
				return false;}
			else
			{	return true;}}
		else
		{	return true;}}
	
	
	function largeImage(images,windex,hindex,scrollb)
	{	if (browserOk)	
		{	var windextmp = windex;
		  var hindextmp = hindex;
			if (scrollb==1)
			{
				var merkmalewin1='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+(windextmp+16)+',height='+getMaxYsize(hindextmp,600)+',left='+getXcenter(windextmp+16)+',top='+getYcenter(getMaxYsize(hindextmp,600));
			}
			else
			{
				var merkmalewin1='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+windextmp+',height='+hindextmp+',left='+getXcenter(windextmp)+',top='+getYcenter(hindextmp);
			}	
			var dateiname="../largeImages.htm?," + images + "," + windex + "," + hindex;
			actualwin1=window.open('','window1',merkmalewin1);
			win1open=true;
			if (actualwin1 && (actualwin1!=null))
			{	actualwin1.focus();
				actualwin1.location.href=dateiname;} }}
	
	function largeGame(game,windex,hindex)
	{	if (browserOk)	
		{	var windextmp = windex;
		  var hindextmp = hindex;
//			var merkmalewin1='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+windextmp+',height='+hindextmp+',left='+getXcenter(windextmp)+',top='+getYcenter(hindextmp);
			var merkmalewin1='fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width='+windextmp+',height='+hindextmp+',left='+getXcenter(windextmp)+',top='+getYcenter(hindextmp);
			var dateiname="../largeGame1.htm"
			actualwin1=window.open('','windowg1',merkmalewin1);
			win1open=true;
			if (actualwin1 && (actualwin1!=null))
			{	actualwin1.focus();
				actualwin1.location.href=dateiname;} }}
	
	function clswinall(index)
	{	if (browserOk)	
		{	if (index==1)
			{	if (win1open && (actualwin1!=null) && !(actualwin1.closed))
				{	actualwin1.close();
					actualwin1=null;}
				win1open=false;}
			else
			{	if (win2open && (actualwin2!=null) && !(actualwin2.closed))
				{	actualwin2.close();
					actualwin2=null;}
				win2open=false;}	}}

						
	function unloadPictures()
	{	if (browserOk)	
		{	clswinall(2);
			clswinall(1);
	}}
		
		

	function getRandomImg(maxCount)
	{
		if ( (bName == "n") && (bVersion<=4))
		{
			return 0;
		}
		else
		{
			return Math.floor(Math.random()*maxCount)+1;
		}	
	}	

	function buttonFarbeOver(button)
	{
		if (browserOk && button.style)
		{
			button.style.backgroundColor="D59BB8";
		}	
	}

	function buttonFarbeOut(button)
	{
		if (browserOk && button.style)
		{
			button.style.backgroundColor="ecd2df";
		}	
	}
			
// stop hiding -->	
		
	
		

