<!--

menuMarginLeft = 16;

function TooltipText(oObj)
{ //MW20051003: meegegeven object (this) heeft title-attribute, met als waarde
  // de id van het element dat de te tonen tekst bevat.
  oTTdiv = window.document.getElementById(oObj.title);
  strTekst = oTTdiv.innerHTML;
	return strTekst;
}

function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new checkBrowser();

var hideAll=true

function openNewWindow(URL,targetName,sizeX,sizeY) {
	window.open(URL,'rob_' + targetName,'toolbar=no,copyhistory=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=' + sizeX + ',height=' + sizeY + ',screenY=20,screenX=20,left=20,top=20');
}
/*
function openprintWindow(URL,targetName,sizeX,sizeY) {
	window.open(URL,'rob_' + targetName,'toolbar=no,copyhistory=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=' + sizeX + ',height=' + sizeY + ',screenY=20,screenX=20,left=20,top=20');
}
*/
/*
function makeMenuBar(obj,nest,vis,num,row){
    nest=(!nest) ? '':'document.'+nest+'.'
   	this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;
	this.hideIt=b_hideIt;
	this.showIt=b_showIt;			
	if((bw.dom || bw.ie4) && vis) this.css.visibility='hidden'
	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;
*/

/* divRow0Item0

	this.divRow=bw.dom? document.getElementById("divRow"+row):bw.ie4?document.all["divRow"+row]:bw.ns4?eval(nest+"document.layers." + "divRow"+row):0;
	this.divRowTop=bw.dom? document.getElementById("divRowTop"+row):bw.ie4?document.all["divRowTop"+row]:bw.ns4?eval(nest+"document.layers." + "divRowTop"+row):0;
	this.divRowItem=bw.dom? document.getElementById("divRow"+row+"Item"+num):bw.ie4?document.all["divRow"+row+"Item"+num]:bw.ns4?eval(nest+"document.layers." + "divRow"+row+"Item"+num):0;
	this.divRowSubItem=bw.dom? document.getElementById("divRow"+row+"SubItem"+num):bw.ie4?document.all["divRow"+row+"SubItem"+num]:bw.ns4?eval(nest+"document.layers." + "divRow"+row+"SubItem"+num):0;


	divRowItemOffsetLeft = this.divRowItem.offsetLeft;
	if (divRowItemOffsetLeft < previousOffsetLeft) {
		rowspan=1;
		previousOffsetLeft = -1;
	}
	else {
		previousOffsetLeft = divRowItemOffsetLeft;
	}
	divRowItemOffsetTop = this.divRowItem.offsetTop;
	divRowOffsetWidth = this.divRow.offsetWidth;
	lineHeight = this.divRowItem.offsetHeight;
	
	divRowHistoryHeight = 0;
	for (rownr=0;rownr<row;rownr++) {
		this.divRowTopPrevious=bw.dom? document.getElementById("divRowTop"+rownr):bw.ie4?document.all["divRowTop"+rownr]:bw.ns4?eval(nest+"document.layers." + "divRowTop"+rownr):0;
		divRowHistoryHeight += this.divRowTopPrevious.offsetHeight;
	}
	
	rowspanSub = 0;
	if (rowspan == 0) {
		rowspanSub = 1;
	}
	
	divRowSubItemOffsetWidth = this.divRowSubItem.offsetWidth;

	this.css.top = divRowItemOffsetTop + ((rowspan + rowspanSub) * lineHeight) + divRowHistoryHeight + 100;
	this.css.left = divRowItemOffsetLeft + divRowOffsetWidth + menuMarginLeft;
	if (divRowSubItemOffsetWidth > this.divRowSubItem.offsetWidth) {
		reShiftLeft = (divRowSubItemOffsetWidth - this.divRowSubItem.offsetWidth);
		this.css.left = parseInt(this.css.left) - reShiftLeft;
	} 
	*/
}

function b_showIt(){
	this.css.visibility="visible";
}
function b_hideIt(){
	this.css.visibility="hidden";
}

function checkScrolled(){
	if(!oMenu.go)oMenu.css.top=eval(scrolled)+fromTop
	if(bw.ns4) setTimeout('checkScrolled()',30)
}

/*function menuBarInit(){
	for (j=0;j<rows;j++) {
		rowspan = 0;
		previousOffsetLeft = -1;
		eval("oSub" + j + "=new Array()");
		eval("oTop" + j + "=new Array()");
		eval("numberOfMenus = row" + j); 
		for(i=0;i<numberOfMenus;i++){
			eval("oSub" + j + "[i]=new makeMenuBar('divRow' + j + 'SubItem' + i,'',1,i,j)");
			eval("oSub" + j + "[i].evnt.onmouseout=evOut;");
		}
	}
}*/


function evOut(){
	if(bw.ie4 || bw.dom)this.style.visibility='hidden'
	else if(bw.ns4) this.visibility='hidden'
}

function ieShow(row,num){
	if(bw.ie4 || bw.dom){
		eval("oSub" + row + "[num].showIt()");
//		window.event.cancelBubble=true
	}
}
function extract(row,num){
	/*for (j=0;j<rows;j++) {
		eval("oSubRowlength = oSub" + j + ".length");
		for(i=0;i<oSubRowlength;i++){
			 eval("oSub" + j + "[i].hideIt()");
		}
	}
	eval("oSub" + row + "[num].showIt()");*/
}

function openCloneWindow(href) {
	var iWindowWidth = -1;
	var iWindowHeight = -1;
	var sSizeSpecifications = '';
	var now = new Date();
	var sWindow = 'windowName' + now.getHours() + now.getMinutes() + now.getSeconds() + now.getMilliseconds();

	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		iWindowWidth = window.innerWidth;
		iWindowHeight = window.innerHeight;
		if (iWindowWidth > screen.availWidth) {
			iWindowWidth = screen.availWidth;
		}
		if (iWindowHeight > screen.availHeight) {
			iWindowHeight = screen.availHeight;
		}
	} else if( document.documentElement &&
		( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		iWindowWidth = document.documentElement.clientWidth;
		iWindowHeight = document.documentElement.clientHeight;
		if (iWindowWidth > screen.availWidth) {
			iWindowWidth = screen.availWidth;
		}
		if (iWindowHeight > screen.availHeight) {
			iWindowHeight = screen.availHeight;
		}
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		iWindowWidth = document.body.clientWidth + 28;
		iWindowHeight = document.body.clientHeight + 134;
		if (iWindowWidth > screen.availWidth) {
			iWindowWidth = screen.availWidth;
		}
		if (iWindowHeight > screen.availHeight) {
			iWindowHeight = screen.availHeight;
		}
	}
	
	if (iWindowWidth > -1 && iWindowHeight > -1) {
		sSizeSpecifications = ',width=' + iWindowWidth + ',height=' + iWindowHeight;
	}

	window.open(href,sWindow,'resizable=yes,scrollbars=auto,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,copyhistory=yes' + sSizeSpecifications);
}

function openPortraitWindow(href) {
	var now = new Date();
	var sWindow = 'windowName' + now.getHours() + now.getMinutes() + now.getSeconds() + now.getMilliseconds();
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		iWindowHeight = screen.availHeight;
		iWindowWidth = parseInt(screen.availHeight / 1.4);
		if (iWindowWidth > screen.availWidth) {
			iWindowWidth = screen.availWidth;
		}
	} else if( document.documentElement &&
		( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		iWindowHeight = screen.availHeight;
		iWindowWidth = parseInt(screen.availHeight / 1.4);
		if (iWindowWidth > screen.availWidth) {
			iWindowWidth = screen.availWidth;
		}
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		iWindowHeight = screen.availHeight;
		iWindowWidth = parseInt(screen.availHeight / 1.4);
		if (iWindowWidth > screen.availWidth) {
			iWindowWidth = screen.availWidth;
		}
	}


	sSizeSpecifications = ',width=' + iWindowWidth + ',height=' + iWindowHeight+',top=0,screenY=0';
	window.open(href,sWindow,'resizable=yes,scrollbars=auto,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,copyhistory=yes' + sSizeSpecifications);
}

function openPopupWindow(href,iWindowWidth,iWindowHeight) {
	var now = new Date();
	var sWindow = 'windowName' + now.getHours() + now.getMinutes() + now.getSeconds() + now.getMilliseconds();

	sSizeSpecifications = ',width=' + iWindowWidth + ',height=' + iWindowHeight;
	window.open(href,sWindow,'resizable=yes,scrollbars=auto,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no' + sSizeSpecifications);
}

//-->

