// mail function (to avoid robots searching the website for e-mail addresss)
// -------------------------------------------------------------------------
function noSpam(user, domain) {
        document.write("<a href='mailto:" + user + "@" + domain + "'>" + user + "@" + domain + "</a>");
}

function switchContent(id) {
	document.getElementById("content").innerHTML = document.getElementById(id).innerHTML;
}


var imagebars = new Array();
imagebars['produktuebersicht'] = '<div id="image_index"><img src="images/bild_kor_1.jpg" width="197" alt="" border="0" vspace="0" hspace="0" onFocus="blur();" style="background-color:#B7BFC4;padding-right:4px;"></div><div id="image_index"><img src="images/bild_kor_4.jpg" alt="" border="0" vspace="0" hspace="0" onFocus="blur();"></div>';
imagebars['pandomo_home'] = '<div id="image_index"><img src="images/bild_pan_1.jpg" width="197" alt="" border="0" vspace="0" hspace="0" onFocus="blur();" style="background-color:#B7BFC4;padding-right:4px;"></div><div id="image_index"><img src="images/bild_pan_2.jpg" alt="" border="0" vspace="0" hspace="0" onFocus="blur();"></div>';

function switchImageBar(link,id) {
	if(lastlink != 0)
		lastlink.className = "content_navi";
		
	link.className = "content_navi_active";
	lastlink = link;
	
	document.getElementById("imagebar").innerHTML = imagebars[id];
}

function startVideo(flvFile,width,height) {
           document.getElementById("content").innerHTML = '<br/><br/><br/>Sie ben&ouml;tigen den Flash Player.<br/>Klicken Sie <a href="http://www.adobe.com/go/getflashplayer" target="_new">hier</a>, um das Plugin herunter zu laden.<br/><br/><a href="http://www.adobe.com/go/getflashplayer" target="_new"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>';
           
           var s1 = new SWFObject("../video/flvplayer.swf","single",width,height,"7");
	        s1.addParam("allowfullscreen","true");
	        s1.addVariable("file",flvFile);
	        //s1.addVariable("image","flash/logo.jpg");
	        s1.addVariable("width",width);
	        s1.addVariable("height",height);
	        s1.write("content");
       }