function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}

function openw(url, naam){
     w = width = 600;
     h = height = 475;
     x = Math.round((screen.availWidth-w)/2); //center the top edge
     y = Math.round((screen.availHeight-h)/2); //center the left edge
     popupWin = window.open(url, 'fonds', "width="+w+",height="+h+",scrollbars=1,history=no,toolbar=no,resizable=0,statusbar=no,top="+y+",left="+x+",screeenY="+y+",screenX="+x);
     popupWin.focus();
}
//-->

function activateleftmenu(id){

	var curtd = document.getElementById("td_" + id);
	var cura = document.getElementById("a_" + id);

	if(curtd){
	  curtd.className='p_leftmenuactive';
	  cura.className='p_leftmenuactive';
	}

}
function activatemainmenu(id){

	var curmen = document.getElementById("men_" + id);

	if(curmen){
	  curmen.className='h_menuactive';
	}

}

function change(Id) {
       thisTr = document.getElementById('woning_' + Id);
	
	if (thisTr) {
			thisTr.style.borderColor="cc0033";
			thisTr.style.borderStyle="solid";
        }
}
function dechange(Id) {
       thisTr = document.getElementById('woning_' + Id);
	
	if (thisTr) {
			thisTr.style.borderColor="#ffffff";


        }
}
function openwin(url, naam){
newwindow = window.open(url,naam,"width=540,height=370,toolbar=0,resizable=0,location=0,scrollbars=1");
}		

function hover(img){
	if(sitemenuid != img.id){
		img.src='/images/'+img.name+'_f2.jpg';
	}
}

function hover_out(img){
	if(sitemenuid != img.id){
		img.src='/images/'+img.name+'.jpg';
	}
}

function activatemenu(menuitem){
	var menuImg = document.getElementById(menuitem);
	if(menuImg){
		menuImg.src='/images/'+menuImg.name+'_f3.jpg';
		sitemenuid = menuitem;
	}
}
