/******************************************
* DHTML Ad Box (By Matt Gabbert at http://www.nolag.com)
* Visit http://www.dynamicdrive.com/ for full script
* This notice must stay intact for use
******************************************/


var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var calunit=ns? "" : "px"

function init() {

}

function go(movieid){
 //	window.open ('http://www.hobiz.nl/hobiz/inbelpage/?siteid=4002&movieid='+movieid+'&p='+p+'&pi='+pi);
	window.open (myframesrc+'&movieid='+movieid);
}

function reposition () {
	if (ie){
		documentWidth  =truebody().offsetWidth/2+truebody().scrollLeft-20;
		documentHeight =truebody().offsetHeight/2+truebody().scrollTop-20;
		darkenOffset=truebody().scrollTop;
	}	
	else if (ns) {
		documentWidth=window.innerWidth/2+window.pageXOffset-20;
		documentHeight=window.innerHeight/2+window.pageYOffset-20;
		darkenOffset=window.pageYOffset;
	} 
	else if (w3) {
		documentWidth=self.innerWidth/2+window.pageXOffset-20;
		documentHeight=self.innerHeight/2+window.pageYOffset-20;
		darkenOffset=window.pageYOffset;
	} 

	dialDiv.left=documentWidth-150+calunit;dialDiv.top =documentHeight-150+calunit;
	darkenDiv.top =darkenOffset+calunit;

	setTimeout("reposition()",50);
}

function voicenl(){
	if (ie||w3)
		selectcountryDiv.visibility="hidden";
	else
		selectcountryDiv.visibility ="hide";

	if (ie||w3) 
		selectbeDiv.visibility="hidden";
	else 
		selectbeDiv.visibility ="hide";

	
	if (ie||w3) 
		selectnlDiv.visibility="visible";
	else 
		selectnlDiv.visibility ="show";
}

function voicebe(){
	if (ie||w3)
		selectcountryDiv.visibility="hidden";
	else
		selectcountryDiv.visibility ="hide";

	if (ie||w3) 
		selectnlDiv.visibility="hidden";
	else 
		selectnlDiv.visibility ="hide";
	
	if (ie||w3) 
		selectbeDiv.visibility="visible";
	else 
		selectbeDiv.visibility ="show";
}

function closedial(){
if (ie||w3)
	darkenDiv.visibility="hidden";
else
	darkenDiv.visibility ="hide";

if (ie||w3)
	dialDiv.visibility="hidden";
else
	dialDiv.visibility ="hide";

if (ie||w3) 
	selectnlDiv.visibility="hidden";
else 
	selectnlDiv.visibility ="hide";

if (ie||w3) 
	selectbeDiv.visibility="hidden";
else 
	selectbeDiv.visibility ="hide";

if (ie||w3)
	selectcountryDiv.visibility="hidden";
else
	selectcountryDiv.visibility ="hide";
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var NetScape = (document.layers) ? 1 : 0;
var IExplorer = (document.all)    ? 1 : 0;
var submitted=0;

function CheckKey(e) {
   if (NetScape) {
	thekey = e.which;
	m=e.modifiers;
   } else {
	 thekey=window.event.keyCode;
	 m=window.event.shiftKey;
   }
	if(!(!m && (thekey==13 || thekey==8 || thekey==37 || thekey==39 || thekey==46 || (thekey>=48 && thekey<=57) || (thekey>=96 && thekey<=105)))) {
		if (NetScape) e.which=0;
	    else {
		window.event.keyCode=0;
		window.event.returnValue = false;
	    }
	    return false;
	} else {
		return true;
	}
}
