// JavaScript Document
//MENU AAN
function MoOnMenu(id,img){
		document.getElementById(id).src=_PROJECT_URL+"img/nav/"+img+"_o.jpg";
}

//MENU UIT
function MoOutMenu(id,img){
		document.getElementById(id).src=_PROJECT_URL+"img/nav/"+img+".jpg";
}

function header(id,marginpx,state){
	document.getElementById(id).style.margin=marginpx
	GetAJAX('setheadersession.xml.asp','',Array('SHOWHEADER'),Array(state));
}


function displayItem(id,status) {
	document.getElementById(id).style.display=status
}

function MouseO(id,img){
		document.getElementById(id).src=_PROJECT_URL+"img/"+img+".gif";
}

function MouseOAfb(id,img){
		if(id.length>0 && img.length>0){
			for(i=0;i<id.length;i++){
//				alert(id[i])
				document.getElementById(id[i]).src=_PROJECT_URL+"img/"+img[i]+".jpg";
			}
		}
}


//function MouseOAfb(id,img){
//		document.getElementById(id).src=_PROJECT_URL+"img/"+img+".jpg";
//}

function MenuMouseOver(id){
		document.getElementById(id+'row').style.backgroundColor = "#FFFFFF"
		document.getElementById(id+'arrow').src=_PROJECT_URL+"img/icon_arrow_a.gif";
}
function MenuMouseOut(id){
		document.getElementById(id+'row').style.backgroundColor = "#f1f1f1"
		document.getElementById(id+'arrow').src=_PROJECT_URL+"img/icon_arrow.gif";
}

// deze functie word gebruikt voor het blok op de homepage (particuliere en zakelijke diensten)
function MenuMouseOverDiensten(id){
		document.getElementById(id+'row').style.backgroundColor = "#FFFFFF"
		document.getElementById(id+'row2').style.backgroundColor = "#FFFFFF"		
		document.getElementById(id+'arrow').src=_PROJECT_URL+"img/icon_arrow_a.gif";
}

function MenuMouseOutDiensten(id){
		document.getElementById(id+'row').style.backgroundColor = "#f1f1f1"
		document.getElementById(id+'row2').style.backgroundColor = "#f1f1f1"
		document.getElementById(id+'arrow').src=_PROJECT_URL+"img/icon_arrow.gif";
}

function bw(obj,on) {
	var ext = obj.style.backgroundImage.slice(-4).replace(')','')
	if(on){
		obj.style.backgroundImage = obj.style.backgroundImage.replace('__bw.','.')
	}else{
		if(obj.style.backgroundImage.indexOf('__bw.')==-1){
			
			obj.style.backgroundImage = obj.style.backgroundImage.replace('.'+ext,'__bw.'+ext)
		}
	}
}