function PreloadNav(LPATH){

    nav_on = new Array();
  	nav_off = new Array();

    PATH = LPATH+ "shared/img/nav/navi_";

  	for(i = 1; i <= 7; i++){
    	nav_on[i] = new Image();
    	nav_on[i].src = PATH+ i +"_on.gif";
    	nav_off[i] = new Image();
    	nav_off[i].src = PATH+ i +"_off.gif";
  	}

}


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


function NavOnOff(IMG,TYP){

    if(TYP == 'on'){
        document.images['nav_'+ IMG].src = nav_on[IMG].src;
    }else if(TYP == 'off'){
       	document.images['nav_'+ IMG].src = nav_off[IMG].src;
    }
}


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


function ActNorm(ID,TYPE){

    if(TYPE == 'on'){
        if(ID == 'senden'){
    		document.getElementById(ID).className = 'input_def input_1b_act';
        }else if(ID == 'text'){
	    	document.getElementById(ID).className = 'input_def input_2_act';
        }else{
	    	document.getElementById(ID).className = 'input_def input_1_act';
        }
    }else{
        if(ID == 'senden'){
    		document.getElementById(ID).className = 'input_def input_1b';
        }else if(ID == 'text'){
    		document.getElementById(ID).className = 'input_def input_2';
        }else{
	    	document.getElementById(ID).className = 'input_def input_1';
        }
    }
}


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


function openPopup(url){

    var strGeom = 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,left=100,top=100';
    var strUrl = '../shared/php/popup_image.inc.php?lang=de&file='+ url;
   	/* var strUrl = 'http://www.hikelcom.de/kunden/linden-cafe/website/shared/php/popup_image.inc.php?lang=de&file='+ url; */
    window.open(strUrl, "popupWindow", strGeom);

}


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


function PicBorderOnOff(OBJ, TYP){

    if(TYP == 'on'){
        OBJ.className = 'pic_border_2';
    }else if(TYP == 'off'){
		OBJ.className = 'pic_border_1';
    }
}