/**
 * Tauscht das Bild beim Element mit der angegebenen ID
 * 
 * @param string id ElementID
 * @param string img Bildpfad
 */
function change_img(id,img)
{
	document.getElementById(id).src=img;
}

function change_Background(id,img)
{
	document.getElementById(id).style.backgroundImage=img;
}
function hoverInfo2(id){
	document.getElementById("text"+id).style.color="#b5b5b5";
document.getElementById("text1"+id).style.color="#b5b5b5";
}
function unhoverInfo2(id){
	document.getElementById("text"+id).style.color="#000000";
document.getElementById("text1"+id).style.color="#000000";
}
/**
 * l�d ein Video in den Player
 */
function startMovie(img,video,autostart,autoloop)
{

jwplayer("mediaplayer").setup({
			file: video,
			image:"/"+img,
			height:295,
			width:487,
			skin : "/tl_files/web/glow.zip",
			events: { onReady: function() { this.play(); } },
			modes: [ { type: "html5" }, 
						 { type: "flash", src: "player.swf" } ]
			
			
		});
	
}

/**
 * Funktionen zum laden eines Videos/Audios in den Player
 */
function thisMovie(movieName) {
    if(navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
};

function loadVideo(obj) { thisMovie("mpl").sendEvent("LOAD",obj); };


/**
 * Ändert das Hintergrundbild einer ID
 */ 
function changeBG(id,img)
{
	document.getElementById(id).style.backgroundImage="url("+img+")";	
}

/**
 * ändert beim Download den text und das bild
 */
function changeDLLink(id,modus)
{
	if(modus=="over"){
		document.getElementById("text_"+id).style.fontSize="12px";
		document.getElementById("text_"+id).style.color="#0492DC";
                  document.getElementById("img_"+id).src="tl_files/web/Button_PDF_aktiv.png";
        }
	
else{
		document.getElementById("text_"+id).style.fontSize="12px";
		document.getElementById("text_"+id).style.color="#000000";
                  document.getElementById("img_"+id).src="tl_files/web/Button_PDF_klein.png";
	}
}

function changeDLLink2(id,modus)
{
		if(modus=="over"){
		document.getElementById("text_"+id).style.fontSize="12px";
		document.getElementById("text_"+id).style.color="#0492DC";
		document.getElementById("img_"+id).src="tl_files/web/Erde_gross.png";
	}
	else{
		document.getElementById("text_"+id).style.fontSize="12px";
		document.getElementById("text_"+id).style.color="#000000";
		document.getElementById("img_"+id).src="tl_files/web/Erde_klein.png";
	}
}


/**
 * überprüft die Felder des ersten Schritts des Webshops
 */
function checkInputStep1(url)
{
	var form=document.getElementById("step1");
	var error=false;
	
	if(checkField(form.name,"cross_name"))
		error=true;
	if(checkField(form.street,"cross_street"))
		error=true;
	if(checkField(form.plz,"cross_plz"))
		error=true;
	if(checkField(form.city,"cross_city"))
		error=true;
	if(checkField(form.state,"cross_state"))
		error=true;
	if(checkField(form.firstname,"cross_firstname"))
		error=true;
	if(checkField(form.surname,"cross_surname"))
		error=true;
	if(checkField(form.functiontext,"cross_functiontext"))
		error=true;
	if(checkField(form.telefon,"cross_telefon"))
		error=true;
	if(checkField(form.fax,"cross_fax"))
		error=true;
	if(checkField(form.email,"cross_email"))
		error=true;
	if(checkField(form.uid,"cross_uid"))
		error=true;

	if(error){
		document.getElementById("mandatory_text").style.visibility="visible";
	}
	else{
		document.getElementById("step1").action=url;
		document.getElementById("step1").submit();
	}
}

function checkField(formfield,id)
{
	var error=false;
	
	if(formfield.value==""){
		error=true;
		document.getElementById(id).style.visibility="visible";
	}
	else{
		document.getElementById(id).style.visibility="hidden";
	}
	
	return error;
}

function checkInputStep2(url)
{
	var error=true;
	var form=document.getElementById("step2");
	var cb=document.getElementsByName("competence[]");
	var count=cb.length;
	
	for(var i=0;i<count;i++)
	{
		if(cb[i].checked==true)
		{
			error=false;
			break;
		}
	}
	
	if(form.office_machine_dealer.value!="")
	{
		error=false;	
	}
	if(form.other.value!="")
	{
		error=false;	
	}
	
	if(error)
	{
		document.getElementById("cross_competence").style.visibility="visible";
		document.getElementById("mandatory_text").style.visibility="visible";
	}
	else
	{
		form.action=url;
		form.submit();
	}
}

function checkInputStep3(url)
{
	document.getElementById("step3").action=url;
	document.getElementById("step3").submit();
}

function showHover(id)
{
	document.getElementById("tdtopleft"+id).style.backgroundImage="url(tl_files/web/Rahmen_weiss_04.png)";
	document.getElementById("topleft"+id).src="tl_files/web/Rahmen_weiss_01.png";
	document.getElementById("topmiddle"+id).style.backgroundImage="url(tl_files/web/Rahmen_weiss_02.png)";
	document.getElementById("tdtopright"+id).style.backgroundImage="url(tl_files/web/Rahmen_weiss_05.png)";
	document.getElementById("topright"+id).src="tl_files/web/Rahmen_weiss_03.png";
	document.getElementById("left"+id).style.backgroundImage="url(tl_files/web/Rahmen_weiss_04.png)";
	document.getElementById("right"+id).style.backgroundImage="url(tl_files/web/Rahmen_weiss_05.png)";
	document.getElementById("bottomleft"+id).src="tl_files/web/Rahmen_weiss_06.png";
	document.getElementById("bottommiddle"+id).style.backgroundImage="url(tl_files/web/Rahmen_weiss_07.png)";
	document.getElementById("bottomright"+id).src="tl_files/web/Rahmen_weiss_08.png";
	
	if(document.getElementById("btn_bleistift"+id))
	{
		document.getElementById("btn_bleistift"+id).src="tl_files/web/Button_Bleistift_aktiv.png";
	}
}


function hideHover(id)
{
	document.getElementById("tdtopleft"+id).style.backgroundImage="url(tl_files/web/spacer.gif)";
	document.getElementById("topleft"+id).src="tl_files/web/spacer.gif";
	document.getElementById("topmiddle"+id).style.backgroundImage="url(tl_files/web/spacer.gif)";
	document.getElementById("tdtopright"+id).style.backgroundImage="url(tl_files/web/spacer.gif)";
	document.getElementById("topright"+id).src="tl_files/web/spacer.gif";
	document.getElementById("left"+id).style.backgroundImage="url(tl_files/web/spacer.gif)";
	document.getElementById("right"+id).style.backgroundImage="url(tl_files/web/spacer.gif)";
	document.getElementById("bottomleft"+id).src="tl_files/web/spacer.gif";
	document.getElementById("bottommiddle"+id).style.backgroundImage="url(tl_files/web/spacer.gif)";
	document.getElementById("bottomright"+id).src="tl_files/web/spacer.gif";
	
	if(document.getElementById("btn_bleistift"+id))
	{
		document.getElementById("btn_bleistift"+id).src="tl_files/web/Button_Bleistift.png";
	}
}
function changeImg(modus,id)
{

	if(modus=="over"){
		
		document.getElementById("img"+id).src="tl_files/web/Button_PDF_aktiv.png";
	}
	else{
		document.getElementById("img"+id).src="tl_files/web/Button_PDF_klein.png";
	}		
	
	
}

function login(url,message){
	
	var error=0;
	if(document.getElementById('login').username.value=="" || document.getElementById('login').password.value=="")
	{
		document.getElementById('errorMsg').innerHTML=message;
		error=1;
	}
	
	if(document.getElementById('login').username.value=="")
	{
		document.getElementById('cross_username').style.visibility='visible';
		error=1;
	}
	else{
		document.getElementById('cross_username').style.visibility='hidden';
	}
	if(document.getElementById('login').password.value=="")
	{
		document.getElementById('cross_password').style.visibility='visible';
		error=1;
	}
	else{
		document.getElementById('cross_password').style.visibility='hidden';
	}
	if(!error)
	{
		document.getElementById('login').action=url;
		document.getElementById('login').submit();
	}
	
}
function checkPw(event){
	
	var form=document.getElementById("login");
	if(event.keyCode==13){
		form.submit();
	}
	
}

function logout(id,img){


        
	document.getElementById(id).src=img;
	document.getElementById('abmelden_text').style.color="#000000";


}

function logout1(id,img){
	document.getElementById(id).src=img;
	document.getElementById('abmelden_text').style.color="#b5b5b5";
}

function produkt_hover(id){
	
	document.getElementById("bild"+id).style.backgroundImage="url(tl_files/web/Rahmen_Produkte_aktiv.png)";
	document.getElementById("bild"+id).style.backgroundImage="url(tl_files/web/Rahmen_Produkte_aktiv.png)";

}
function produkt(id){
	
	document.getElementById("bild"+id).style.backgroundImage="url(tl_files/web/Rahmen_Produkte.png)";


}
function hersteller_hover(id){
	
	document.getElementById("hersteller"+id).style.color="#e3001a";
	document.getElementById("img"+id).style.visibility='visible';

}
function hersteller(id){
	
	document.getElementById("hersteller"+id).style.color="#000000";
	document.getElementById("img"+id).style.visibility='hidden';


}

function druck_hover(id){
	document.getElementById("druck"+id).style.backgroundImage="url(tl_files/web/Button_Drucker_aktiv.png)";

}

function druck(id){
	document.getElementById("druck"+id).style.backgroundImage="url(tl_files/web/Button_Drucker.png)";

}

function searchProdukt()
{
  	document.getElementById("produktSearch").submit();	
}

function submitProdukt(url,msg)
{
		document.getElementById("produktSearch").action=url;
		document.getElementById("produktSearch").submit();
}

function kontakt(link)
{
	var width = 320;var height = 280;window.open(link,'','width=730,height=725,scrollbars=yes,menubar=no');
}

function faqover(id)
{
	document.getElementById("headline"+id).style.color="#000000";
	document.getElementById("text"+id).style.color="#000000";
	document.getElementById("weiter"+id).style.backgroundImage="url(tl_files/web/shop_weiter_aktiv.png)";
}
function faqout(id)
{
	document.getElementById("headline"+id).style.color="#b5b5b5";
	document.getElementById("text"+id).style.color="#b5b5b5";
	document.getElementById("weiter"+id).style.backgroundImage="url(tl_files/web/shop_weiter.png)";
}

function pwLost(url){
	var error=0;
	
	if(document.getElementById('pwLost').user.value=="")
	{
		document.getElementById('cross_username').style.visibility='visible';
		error=1;
	}
	
	if(error==1){
		document.getElementById("errorMsg").style.display='';
	}
	else{
		document.getElementById("pwLost").action=url;
		document.getElementById("pwLost").submit();
	}
	
}
function pwChange(url){
	document.getElementById("pwChange").action=url;
	document.getElementById("pwChange").submit();
}

function changeBirne(id,pic){
	document.getElementById(id).src=pic;
}

function SearchProblem(msg,url){
	var form=document.getElementById("katalog")
	var enter=false;
	if(form.oem.value!="")
	{
		enter=true;
	}
	if(form.order.value!=""){
		enter=true;
	}
	if(form.produkt.value!=""){
		enter=true;
	}
	
	if(enter){
		form.action=url;
		form.submit();
	}
	else{
		document.getElementById("error").value="";
		document.getElementById("error").innerHTML=msg;
                document.getElementById("listProdukte").style.display="none";
	}
}

function SearchProblem2(msg,url){
	var form=document.getElementById("katalog")
	var enter=false;
	if(form.oem.value!="")
	{
		enter=true;
	}
	if(form.order.value!=""){
		enter=true;
	}
	if(enter){
		form.action=url;
		form.submit();
	}
	else{
		document.getElementById("error").value="";
		document.getElementById("error").innerHTML=msg;
                
	}
}
function unhoverProblem(id){
	document.getElementById("birne"+id).src="tl_files/web/Birne_weiter.png";
	document.getElementById("text"+id).src="tl_files/web/Birne_weiter.png";
	document.getElementById("text"+id).style.color="#000000";
}
function hoverProblem(id){
	document.getElementById("birne"+id).src="tl_files/web/Birne_weiter_aktiv.png";
	document.getElementById("text"+id).style.color="#b5b5b5";
}

var show=false; 
var openid="";

function showLoesung(id){
	document.getElementById("link"+id).style.textDecoration="underline";
	if(!show){
		document.getElementById("detail"+id).style.display="";
		
	}
}
function hideLoesung(id){
	document.getElementById("link"+id).style.textDecoration="none";
	if(!show){
		document.getElementById("detail"+id).style.display="none";
		
	}
}

function detailLoesung(id){
	if(openid!=""){
		closeLoesung(openid);
	}
	openid=id;
	show=true;
	document.getElementById("detail"+id).style.display="";
}

function closeLoesung(id){
	openid="";
	show=false;
	document.getElementById("detail"+id).style.display="none";
}

function checkEnter(event,url,msg,mode){
	var url=url;
	var form=document.getElementById("katalog")
	var enter=false;
	if(mode=="zwei"){
		if(form.produkt.value!=""){
			enter=true;
		}
	}
	if(form.oem.value!="")
	{
		enter=true;
	}
	if(form.order.value!=""){
		enter=true;
	}
	
	if(event.keyCode==13 && enter){
		document.getElementById("katalog").action=url;
		document.getElementById("katalog").submit();
	}
	if(event.keyCode==13 && !enter){
		
		document.getElementById("error").value="";
		document.getElementById("error").innerHTML=msg;
	}
}
function change_kontaktOver(){
	document.getElementById("kontaktSeite").src="tl_files/web/Button_Online-Kontakt_aktiv.png";
	document.getElementById("textKontaktSeite").style.color="#000000";
}
function change_kontaktOut(){
	document.getElementById("kontaktSeite").src="tl_files/web/Button_Online-Kontakt.png";
	document.getElementById("textKontaktSeite").style.color="#b5b5b5";
}

function change_kontaktHeanlderOver(){
	document.getElementById("kontaktHaendler").src="tl_files/web/Button_Online-Kontakt_aktiv.png";
	document.getElementById("textKontaktHaendler").style.color="#000000";
}
function change_kontaktHaendlerOut(){
	document.getElementById("kontaktHaendler").src="tl_files/web/Button_Online-Kontakt.png";
	document.getElementById("textKontaktHaendler").style.color="#b5b5b5";
}

function hoverInfo(id){
	document.getElementById("text"+id).style.color="#b5b5b5";
}
function unhoverInfo(id){
	document.getElementById("text"+id).style.color="#000000";
}
function checkEntryGuestbook(url)
{
	var form=document.getElementById("guestbook");
	var enter=true;
	if(form.subject.value==""){
		enter=false
		document.getElementById("subject").style.display="";
	}
	else{
		document.getElementById("subject").style.display="none";
	}
	if(form.argument.value==""){
		enter=false
		document.getElementById("argument").style.display="";
	}
	else{
		document.getElementById("argument").style.display="none";
	}
	if(form.autor.value==""){
		enter=false
		document.getElementById("autor").style.display="";
	}
	else{
		document.getElementById("autor").style.display="none";
	}
	if(form.email.value==""){
		enter=false
		document.getElementById("email").style.display="";
	}
	else{
		document.getElementById("email").style.display="none";
	}
	if(enter){
		form.action=url;
		form.submit();
	}
	else{
		document.getElementById("errorMsg").style.display="";
	}
}
var check=false;
function checkKontakt(url,msg){
	var url=url;
	var form = document.getElementById("submitKontakt");
	var enter=false;
	if(form.kontakt.value!=""){
		enter=true;
	}
	
	if(enter){
		form.action=url;
		form.submit();
	}
	else{ 
		if(check){
			document.getElementById("search").style.display="none";
		}
		document.getElementById("msg").innerHTML="";
		document.getElementById("msg").innerHTML=msg;
		document.getElementById("msg").style.display="";
		
	}
}

function showResult(){
	document.getElementById("search").style.display="";
	check=true;
}

function changeZertOv(id,mode){
	var user=false;
	user=mode;
	
	document.getElementById("image"+id).src="tl_files/web/Bild_Liste_Zertifikate_aktiv.png";
	document.getElementById("text"+id).style.color="#45b0e4";
	if(user){
		document.getElementById("download"+id).style.visibility="visible";
		document.getElementById("downloadtext"+id).style.color="#000000";
	}
}

function changeZertOut(id,mode){
	var user=false;
	user=mode;
	
	document.getElementById("image"+id).src="tl_files/web/Bild_Liste_Zertifikate.png";
	document.getElementById("text"+id).style.color="#000000";
	if(user){
		document.getElementById("download"+id).style.visibility="hidden";
		document.getElementById("downloadtext"+id).style.color="#cfcfcf";
	}

}

function showLogout(){
    
var height=document.getElementById("content").offsetHeight ;
    

        document.getElementById("questionLogout").style.height=height+"px";

	document.getElementById("questionLogout").style.display="";
}

function closeLogout(){
	document.getElementById("questionLogout").style.display="none";
}

function videoOpen(link)
{
	window.open(link,'','width=487,height=295,top=344,left=214,scrollbars=no,menubar=no');
}
var check=false;
function showBuyWindow(id){
	if(!check){
		box=document.getElementById("buyForm"+id);
		check=true;
		if(box.elements["buy"+id].value==0){
			document.getElementById("buy"+id).style.display="";
			document.getElementById("delete"+id).style.display="none";
		}
		else{
			document.getElementById("buy"+id).style.display="none";
			document.getElementById("delete"+id).style.display="";
		}
		document.getElementById("addProdukt"+id).style.display="";
	}
	else{
		box=document.getElementById("buyForm"+id);
		if(box.elements["buy"+id].value==1){
			box.elements["buy"+id].value=0;
		}
		else{
			box.elements["buy"+id].value=1;
		}
	}
}

function closeBuyWindowYes(id){
	check=false;
	box=document.getElementById("buyForm"+id);
	if(box.elements["buy"+id].value==1){
		box.elements["buy"+id].value=0;
	}
	else{
		box.elements["buy"+id].value=1;
	}
	document.getElementById("addProdukt"+id).style.display="none";
}
function changeImgProdukt(id,text1,text2,tooltip1,tooltip2){
	box=document.getElementById("buyForm"+id);
	if(box.elements["buy"+id].value==1){
		document.getElementById("buyText2"+id).innerHTML=text2;
		document.getElementById("backBuy"+id).style.backgroundImage="url(tl_files/web/Button_in_den_Korb_entf.png)";
		document.getElementById("tblT"+id).title=tooltip2;
	}
	else{
		document.getElementById("buyText2"+id).innerHTML=text1;
		document.getElementById("backBuy"+id).style.backgroundImage="url(tl_files/web/Button_in_den_Korb.png)";
		document.getElementById("tblT"+id).title=tooltip1;
	}
}
function closeBuyWindow(id){
	check=false;
	document.getElementById("buy"+id).style.display="none";
	document.getElementById("delete"+id).style.display="none";
	document.getElementById("addProdukt"+id).style.display="none";
}
function checkAnzInput(el,userid,produkt_id,shoppingCartId,preis,preisBez,preisGesamt)
{
  var val = el.value.replace(/[^\.^,\d]/g, '');
  el.value = val;
  //alert(form.gesamtPreis.value);
  xajax_updateAnz(userid,produkt_id,el.value,shoppingCartId,preis,preisBez);
}

function showDelWindow(id){
	document.getElementById("delProdukt"+id).style.display="";
}

function closeDelWindow(id){
	document.getElementById("delProdukt"+id).style.display="none";
}

function closeBestellung(){
	document.getElementById("sendBestellung").style.display="none";
}

function showSendBestellung(){
	document.getElementById("sendBestellung").style.display="";
}

function sendBestellung(url){
	var form=document.getElementById("absenden");
	form.action=url;
	form.submit();
}

function changeColor(id,color)
{
	document.getElementById(id).style.color=color;
}

function showErrorWindow(){
	document.getElementById("errorWin").style.display="";
}

function closeErrorWindow(){
	document.getElementById("errorWin").style.display="none";
}

function scrollDiv(){
	
	scroll(0,0);
}

function checkSumit(event){
	
	var form=document.getElementById("produktSearch");
	if(event.keyCode==13){
		form.submit();
	}
}

function hoverZuDownloadOver(id){
	document.getElementById("down_"+id).style.textDecoration="underline";
}

function hoverZuDownloadOut(id){
	document.getElementById("down_"+id).style.textDecoration="none";
}

function makeTextDeco(id,deco,color){
	
	document.getElementById(id).style.textDecoration=deco;
	document.getElementById(id).style.color=color;
}



function doTooltip(e, msg) {
 	//alert("hallo");
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  Tooltip.show(e, msg);
}

function doTooltip2(e, msg) {
 	//alert("hallo");
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  Tooltip.show2(e, msg);
}

function hideTip() {
  if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  Tooltip.hide();
}

function checkFormular(){
	var form=document.formularNeu;
	var error=false;
	
	if(checkField(form.name,"cross_name"))
		error=true;
	if(checkField(form.telefon,"cross_telefon"))
		error=true;
	if(checkField(form.anliegen,"cross_anliegen"))
		error=true;
	if(checkField(form.email,"cross_email"))
		error=true;
	if(!checkEmail(form.email.value))
	{
		error=true;
		document.getElementById("cross_email").style.visibility="visible";
	}
	else
	{
		document.getElementById("cross_email").style.visibility="hidden";
	}
	
	if(error){
		document.getElementById("mandatory_text").style.visibility="visible";
	}
	else{
		form.submit();
	}
}

function changeColor(id,color)
{
    document.getElementById(id).style.color=color;
}

function checkEmail(feld) {
	// werden regular expressions unterstuetzt?
	var supported = 0;
	if (window.RegExp) {
		var tempStr = "a";
		var tempReg = new RegExp(tempStr);
		if (tempReg.test(tempStr)) supported = 1;
	}
	if (!supported)
		return (feld.indexOf(".") > 2) && (feld.indexOf("@") > 0);

	var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
	var r2 =new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");
	return (!r1.test(feld) && r2.test(feld));
}

function changeAction(url,id)
{
     var form= document.getElementById(id);
     form.action=url;
     form.submit();
}

var dis="";
function showDetail(id,img)
{
     if(dis=="")
     {
          document.getElementById("left_"+id).style.backgroundImage = "url(tl_files/web/prisma_"+img+"_left.jpg)";  
          document.getElementById("middle_"+id).style.backgroundImage = "url(tl_files/web/prisma_"+img+"_middle.jpg)";  
           document.getElementById("right_"+id).style.backgroundImage = "url(tl_files/web/prisma_"+img+"_right.jpg)";  
          document.getElementById("kontakte_"+id).style.display='';
     }
}

function hideDetail(id,img)
{  
     
     if(dis=="")
     {
          document.getElementById("left_"+id).style.backgroundImage = "url(tl_files/web/prisma_left.jpg)";  
          document.getElementById("middle_"+id).style.backgroundImage = "url(tl_files/web/prisma_middle.jpg)";  
           document.getElementById("right_"+id).style.backgroundImage = "url(tl_files/web/prisma_right.jpg)";
         document.getElementById("kontakte_"+id).style.display='none';
     }
}

function setDetail(id,img)
{
    if(dis==id && dis!="")
    {
        
        dis="";
    }
    else if(dis!=id && dis!="")
    {
          
          document.getElementById("left_"+dis).style.backgroundImage = "url(tl_files/web/prisma_left.jpg)";  
          document.getElementById("middle_"+dis).style.backgroundImage = "url(tl_files/web/prisma_middle.jpg)";  
           document.getElementById("right_"+dis).style.backgroundImage = "url(tl_files/web/prisma_right.jpg)";
         document.getElementById("kontakte_"+dis).style.display='none';

           document.getElementById("left_"+id).style.backgroundImage = "url(tl_files/web/prisma_"+img+"_left.jpg)";  
          document.getElementById("middle_"+id).style.backgroundImage = "url(tl_files/web/prisma_"+img+"_middle.jpg)";  
           document.getElementById("right_"+id).style.backgroundImage = "url(tl_files/web/prisma_"+img+"_right.jpg)"; 
         document.getElementById("kontakte_"+id).style.display='';
        dis=id;

     }
    else
    {
         dis=id;
    }
    if(dis!=id && dis!="")
    {
         document.getElementById("left_"+dis).style.backgroundImage = "url(tl_files/web/prisma_left.jpg)";  
          document.getElementById("middle_"+dis).style.backgroundImage = "url(tl_files/web/prisma_middle.jpg)";  
           document.getElementById("right_"+dis).style.backgroundImage = "url(tl_files/web/prisma_right.jpg)";
        document.getElementById("kontakte_"+dis).style.display='none';
    }
    
   
    
}
