function PreloadNav(LPATH){

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

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

  	for(i = 1; i <= 10; 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";
  	}
  	
  	nav_on[11] = new Image();
    nav_on[11].src = LPATH+ "shared/img/design/video_on.jpg";
    nav_off[11] = new Image();
    nav_off[11].src = LPATH+ "shared/img/design/video_off.jpg";
    
    for(i = 12; i <= 14; 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_2_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_2';
        }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 resize() {

  	if(document.images[0]){
  		window.resizeTo(document.images[0].width+5, document.images[0].height + 130);
        window.moveTo((screen.width / 2) - (document.images[0].width / 2), (screen.height / 2) - 150 - (document.images[0].height / 2));
  		self.focus();
  	}
}


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


function resize2() {

  	if(document.images[0]){
  		window.resizeTo(document.images[0].width+5, document.images[0].height + 190);
        window.moveTo((screen.width / 2) - (document.images[0].width / 2), (screen.height / 2) - 150 - (document.images[0].height / 2));
  		self.focus();
  	}
}


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


function resize3() {

  	if(document.images[0]){
  		window.resizeTo(505, document.images[0].height + 280);
        window.moveTo((screen.width / 2) - (document.images[0].width / 2), (screen.height / 2) - 150 - (document.images[0].height / 2));
  		self.focus();
  	}
}
