function PreloadNavStart(){

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

    PATH = "shared/img/nav_start/nav_start_";

  	for(i = 1; i <= 4; 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 PreloadNav(LPATH){

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

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

  	for(i = 1; i <= 5; 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 == 'text'){
	    	document.getElementById(ID).className = 'input_def input_2_act';
        }else if(ID == 'senden'){
	    	document.getElementById(ID).className = 'input_def input_3_act';
        }else{
	    	document.getElementById(ID).className = 'input_def input_1_act';
        }
    }else{
        if(ID == 'text'){
	    	document.getElementById(ID).className = 'input_def input_2';
        }else if(ID == 'senden'){
	    	document.getElementById(ID).className = 'input_def input_3';
        }else{
	    	document.getElementById(ID).className = 'input_def input_1';
        }
    }
}


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


function popupWindow(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';
    window.open(url,"popupWindow",strGeom);
}


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


function BlurPulldown(INPUT){

  document.forms[0].elements[INPUT].focus();
  document.forms[0].elements[INPUT].blur();
}
