<!-- hide script
//	all contents on this site							--
//	are copyright (c) 1998-2007 by				--
//	http://www.art-emission.com					 	--
//	of Switzerland, all rights reserved		--

// Original Javascript von header.php

var selected;
var submitter = null;

function submitFunction() {
    submitter = 1;
}

function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}  

function selectRowEffect(object, buttonSelect) {
  if (!selected) {
    if (document.getElementById) {
      selected = document.getElementById('defaultSelected');
    } else {
      selected = document.all['defaultSelected'];
    }
  }

  if (selected) selected.className = 'moduleRow';
  object.className = 'moduleRowSelected';
  selected = object;

	// one button is not an array
  if (document.getElementById('payment'[0])) {
    document.getElementById('payment'[buttonSelect]).checked=true;
  } else {
    //document.getElementById('payment'[selected]).checked=true;
  }
}

function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}

function popupImageWindow(url) {
  window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
// Original Javascript von header.php



	// 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"))
		{	
			// Datei ist leer
		}
		else if ( (bName == "n") && (bVersion<=4) )
		{	
		// Datei ist leer
		}
	}	
	
	//	for release
	// window.onerror=null;
	
	// je nach Sprache ../
	var gh="../images/global/en/";
	var ih="../images/";
	
	var loadpictok=false;
	
	var actualwin1=null;
	var win1open=false;
	
	var actualwin2=null;
	var win2open=false;

	var actualwin3=null;
	var win3open=false;
	
	if (browserOk)
	{	}


	function emaillinkweb()
	{	if (browserOk)
		{	
			var web1="mailto:"+'artshop2007';
			var web2="@"
			var web3='art-emission.net';
			var web4='';
			var web=web1+web2+web3+web4;
			location.href=web;
			if (browserOk && (bName == "n"))
			{	location.reload();} }}	
	
	
	
	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 loadDocPDFinWindow(url)
	{	if (browserOk)	
		{	var merkmalewin2='toolbar=no,location=no,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('','docpdf2net',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 merkmalewin1='toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=990,height='+getMaxYsize(530,1200)+',left='+getXcenter(990)+',top='+getYcenter(getMaxYsize(530,1200));
			var dateiname=url;
			actualwin1=window.open('','docwin1net',merkmalewin1);
			win1open=true;
			if (actualwin1!=null)
			{	actualwin1.focus();
				actualwin1.location.href=dateiname;}
	}}
	

	function loadOpenInWindowAtelier()
	{	if (browserOk)	
		{	var merkmalewin2='toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=1012,height='+getMaxYsize(530,1200)+',left='+getXcenter(1012)+',top='+getYcenter(getMaxYsize(530,1200));
			var dateiname='http://www.art-emission.net/shop_content.php/coID/7/content/Kontakt/';
			actualwin2=window.open('','docwin2net',merkmalewin2);
			win2open=true;
			if (actualwin2!=null)
			{	actualwin2.focus();
				actualwin2.location.href=dateiname;}
	}}


	function loadOpenInWindowAGB()
	{	if (browserOk)	
		{	var merkmalewin2='toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=1012,height='+getMaxYsize(530,1200)+',left='+getXcenter(1012)+',top='+getYcenter(getMaxYsize(530,1200));
			var dateiname='http://www.art-emission.net/shop_content.php/coID/3/product/AGB/';
			actualwin2=window.open('','docwin2agbnet',merkmalewin2);
			win2open=true;
			if (actualwin2!=null)
			{	actualwin2.focus();
				actualwin2.location.href=dateiname;}
	}}
	

	function loadLinkInWindow(url)
	{	if (browserOk)	
		{	var merkmalewin2='toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=1020,height='+getMaxYsize(595,1200)+',left='+getXcenter(1020)+',top='+getYcenter(getMaxYsize(595,1200));
			var dateiname=url;
			actualwin2=window.open('','docwin2linknet',merkmalewin2);
			win2open=true;
			if (actualwin2!=null)
			{	actualwin2.focus();
				actualwin2.location.href=dateiname;}
	}}			
	
	
	function largeImage(images,windex,hindex,scroll)
	{	if (browserOk)	
		{	var windextmp = windex;
			if (windextmp<(maxScreenX - 200))
			{ windextmp = maxScreenX - 200; }

		  var hindextmp = hindex;
			if (hindextmp<(maxScreenY - 200))
			{ hindextmp = maxScreenY - 200; }
			if ((scroll) && (scroll==true)){
				var merkmalewin1='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+windextmp+',height='+hindextmp+',left='+getXcenter(windextmp)+',top='+getYcenter(hindextmp);
			}
			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="http://www.art-emission.net/largeImages.html?," + images + "," + windex + "," + hindex;
			actualwin1=window.open('','windowImg1net',merkmalewin1);
			win1open=true;
			if (actualwin1 && (actualwin1!=null))
			{	actualwin1.location.href=dateiname;
				actualwin1.focus();} }}	
	
	function clswinall(index)
	{	if (browserOk)	
		{	if (index==1)
			{	if (win1open && (actualwin1!=null) && !(actualwin1.closed))
				{	actualwin1.close();
					actualwin1=null;}
				win1open=false;}
			else if (index==2)
			{	if (win2open && (actualwin2!=null) && !(actualwin2.closed))
				{	actualwin2.close();
					actualwin2=null;}
				win2open=false;}	
			else
			{	if (win3open && (actualwin3!=null) && !(actualwin3.closed))
				{	actualwin3.close();
					actualwin3=null;}
				win3open=false;}	}}

						
	function unloadPictures()
	{	if (browserOk)	
		{	clswinall(3);
			clswinall(2);
			clswinall(1);
	}}
		
		
		
		
// Text/Bilder ein- ausschalten
function moreText(moreLabel,textLabel,lessLabel)
{
	if (document.getElementById)
	{
		var style2 = document.getElementById(moreLabel).style;
		style2.display = "none";
		var style2 = document.getElementById(textLabel).style;
		style2.display = "block";
		var style2 = document.getElementById(lessLabel).style;
		style2.display = "block";
	}
	else if (document.all)
	{
		var style2 = document.all[moreLabel].style;
		style2.display = "none";
		var style2 = document.all[textLabel].style;
		style2.display = "block";
		var style2 = document.all[lessLabel].style;
		style2.display = "block";
	}
}		

function lessText(moreLabel,textLabel,lessLabel)
{
	if (document.getElementById)
	{
		var style2 = document.getElementById(moreLabel).style;
		style2.display = "block";
		var style2 = document.getElementById(textLabel).style;
		style2.display = "none";
		var style2 = document.getElementById(lessLabel).style;
		style2.display = "none";
	}
	else if (document.all)
	{
		var style2 = document.all[moreLabel].style;
		style2.display = "block";
		var style2 = document.all[textLabel].style;
		style2.display = "none";
		var style2 = document.all[lessLabel].style;
		style2.display = "none";
	}
}				
			
// stop hiding -->	
		
	
		

