// Campo e Praia 2006
//----------------------------------------------------------------------------



function zurueck()
{
	history.back();
}


//funktionen browser check mac, win, and other systems
//
//working for ie5 and up, ns4 and up, safari


var browser = "?";
function browserCheck(else_url)
	{
		if (document.all && document.getElementById) browser = "ie5"; // ie6 und opera5
		else  
			if (document.all) browser = "ie4";
			else 
				if (document.getElementById) browser = "ns6";
				else
					if (document.layers)
						browser = "ns4";
					else
						location.href = else_url;
		//alert("check: " + browser);
		if (browser == "ie5" ) 
			{
				return true;
			}
		else return false;
	}
	

var mac = "?";
function macCheck()
	{
		if ((navigator.appVersion.indexOf("Win") != -1)) mac="nein";
		else mac="ja";
	}
	


	
	browserCheck();
	macCheck();
	
// var pfad used for different levels, this var is written in the top of the page documents, and shows the depth to the techic file
// css data for 	
	var a = pfad;
	if (mac =="ja")
		{
			if (browser=="ie5")
				{
				document.write("<LINK REL=\"STYLESHEET\" HREF=\"",a,"tech/css/cep_mac_ie5.css\" TYPE=\"text/css\">"); 	// css items for mac Browser IE5
				}			
			else if (browser=="ns4")
				{
		 		document.write("<LINK REL=\"STYLESHEET\" HREF=\"",a,"tech/css/cep_mac_ns4.css\" TYPE=\"text/css\">");	// css items for mac Browser NS4	
				}
			else
				{
				document.write("<LINK REL=\"STYLESHEET\" HREF=\"",a,"tech/css/cep_mac_all.css\" TYPE=\"text/css\">");	// css items for other mac browser (safari)
				}
		}
	else
		{
			if (browser=="ie5")
				{
				document.write("<LINK REL=\"STYLESHEET\" HREF=\"",a,"tech/css/cep_win_ie5.css\" TYPE=\"text/css\">");	// css items for windows Browser IE5
				}
			else if (browser=="ns4")
				{ 
				document.write("<LINK REL=\"STYLESHEET\" HREF=\"",a,"tech/css/cep_win_ns4.css\" TYPE=\"text/css\">");	// css items for windows Browser NS4
				}
			else
				{
				document.write("<LINK REL=\"STYLESHEET\" HREF=\"",a,"tech/css/cep_win_all.css\" TYPE=\"text/css\">");	// css items for windows another Browsers	
				}
		}
			
			

//----------------------------------------------------------------------------
//funktion popUp



function pickos(url) 
{
	popupWin = window.open(url, 'bigquer',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=150px,left=150px,width=800,height=600");
}

function pickoshoch(url) 
{
	popupWin = window.open(url, 'bighoch',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=150px,left=150px,width=600,height=800");
}
		
//----------------------------------------------------------------------------
//funktionen navi bilder austausch

function bildein(bild,pfad){
               if(document.all)
			   document[bild].src = pfad;
			   else if(document.getElementById)
			   document.images[bild].src = pfad;
			   else if(document.layers)
			   document[bild].src = pfad;
			   }
function bildaus(bild,pfad){
               if(document.all)
			   document[bild].src = pfad;
			   else if(document.getElementById)
			   document.images[bild].src = pfad;
			   else if(document.layers)
			   document[bild].src = pfad;
			   } 
//----------------------------------------------------------------------------
