function PreloadNav(LPATH){

    nav_on_de = new Array();
  	nav_off_de = new Array();
    nav_on_en = new Array();
  	nav_off_en = new Array();

    PATH = LPATH+ "shared/img/nav/nav_";

  	for(i = 1; i <= 4; i++){
    	nav_on_de[i] = new Image();
    	nav_on_de[i].src = PATH+ i +"_on_de.gif";
    	nav_off_de[i] = new Image();
    	nav_off_de[i].src = PATH+ i +"_off_de.gif";
        nav_on_en[i] = new Image();
    	nav_on_en[i].src = PATH+ i +"_on_en.gif";
    	nav_off_en[i] = new Image();
    	nav_off_en[i].src = PATH+ i +"_off_en.gif";
  	}
}


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


function NavOnOff(IMG,TYP,LANG){

    if(TYP == 'on'){
    	if(LANG == 'de'){
        	document.images['nav_'+ IMG].src = nav_on_de[IMG].src;
        }else{
			document.images['nav_'+ IMG].src = nav_on_en[IMG].src;
        }
  	}else if(TYP == 'off'){
    	if(LANG == 'de'){
        	document.images['nav_'+ IMG].src = nav_off_de[IMG].src;
        }else{
        	document.images['nav_'+ IMG].src = nav_off_en[IMG].src;
        }
  	}
}


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


function ActNorm(ID,TYPE){

    if(TYPE == 'on'){
    	if(ID == 'text'){
	    	document.getElementById(ID).className = 'input_def input_2_act';
        }else if(ID == 'senden'){
	    	document.getElementById(ID).className = 'input_def input_1_act_b';
        }else{
	    	document.getElementById(ID).className = 'input_def input_1_act';
        }
    }else{
        if(ID == 'text'){
	    	document.getElementById(ID).className = 'input_def input_2';
        }else{
	    	document.getElementById(ID).className = 'input_def input_1';
        }
    }
}


//////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////


function ShowBig(PIC, X, Y, ID){

    var W = X + 40;
    var H = screen.height - 180;
    var TEMPHEIGHT = Y + 60;

    if(H > TEMPHEIGHT){
		H = TEMPHEIGHT;
    }

    var LEFT = (screen.width / 2) - (W / 2);
    var TOP = (screen.height / 2) - (H / 2);

    var CODE = '<?xml version="1.0" encoding="iso-8859-1"?>'+
    		   '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'+
               '<html xmlns="http://www.w3.org/1999/xhtml">'+
               '<head><title>Detailansicht '+ ID +'</title>'+
               '<meta http-equiv="cache-control" content="no-cache" />'+
               '<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />'+
               '<link rel="stylesheet" type="text/css" href="../../shared/css/styles.css" />'+
               '<body class="bg_5" style="padding: 5px; padding-top: 10px;"><div align="center"><table border="0"><tr><td class="td_pic">'+
               '<img onclick="javascript:self.close()" src="'+ PIC +'" width="'+ X +'" height="'+ Y +'" border="0" alt="'+ ID +'" />'+
               '</td></tr><td class="td_text" style="text-align: right;">'+
               '&copy; 2004 KMR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table></div></body></html>';

   var GEOM = 'width='+ W +',height='+ H +',left='+LEFT+',top='+TOP+',location=no,menubar=yes,resizeable=no,scrollbars=no,status=no,toolbar=no';
   BIGPIC = window.open('',"BigPicWindow",GEOM);
   BIGPIC.document.open();
   BIGPIC.document.write(CODE);
   BIGPIC.document.close();
}