// used to write flash object code to circumvent IE flash activating problem
function writecode (htmlcode) {
      document.write(htmlcode);
}
// defines the style to use according to OS type
	stil = ((navigator.platform.indexOf('Win') > -1) ? "http://www.autoo.ch/autoo1.css" : "http://www.autoo.ch/macautoo1.css");
	document.write('<link rel="stylesheet" href="' + stil + '">');	

var camWin;
function openCamWin(url)
{
	//self.location.reload();
	if(camWin)
	{
		if(!camWin.closed) camWin.close();
	}
	   camWin = open(url, 'camWin', 'toolbar =no, scrollbar=yes ,resizable= no, width=850, height=442, left=10, top=10');
	   camWin.focus();
}

function openPulsWin(url) {

			newWindow = window.open(url,'extResults','width=400, height=225, toolbar=no, location=no, resizable=no, ,left=340  ,top=470');
			newWindow.focus();

}

function changePic(pic)
{
	changeAds();
	document.display.src = pic;
}

// loads the content of uri into the window
function switchToURL(uri)  
{
	changeAds();
	self.location.href = uri;
}


//sets the frame to go to in the Flash head of the page
function whatFrame(frameNumber) {
	window.document.subHead.GotoFrame(frameNumber);
}
/*
//sets the frame to go to in the Flash head of the page (french vers.)
function fr_whatFrame(frameNumber) {
	window.document.fr_subHead.GotoFrame(frameNumber);
}
*/

function relocatePage()

{
	top.location.href= "http://www.kulturmeile.ch";
}

function timedReloc()
{
	setTimeout("relocatePage()", 500);
}