/**********************************************************************************   
* Fix mouseclick (onfocus)                                                        *
***********************************************************************************/
window.onload = function() {
	if(document.layers) return;
	if(document.getElementById) links = document.getElementsByTagName("a");
	if(document.all) links = document.all.tags("a");
		for(a = 0; a < links.length; a++) links[a].onfocus = new Function('this.blur()');
}
/**********************************************************************************   
* Redirect Netscape 4.x                                                        *
***********************************************************************************/
function goodbyeNs4() {
	if (document.layers) location.href = 'indexns.htm'; 
 }
 window.onload=goodbyeNs4;
/**********************************************************************************   
* mouseover/out text statusbar                                                        *
***********************************************************************************/
function mMove() {
    window.status = ' ';
    return true;
}
/***********************************************************
 * Hide specific e-mailaddress                             *
 ***********************************************************/
var eName="polle";			// name recipient
var eUrl="pollebolle.nl";	// url website
var eAt="@";				// at sign
function writeEmail() {
	document.write ('<a href="mailto:' + eName + eAt + eUrl + '" onmouseover="return mMove();" class="lnkAddress">' + eName + eAt + eUrl + '</a>');
}
function writeContact() {
	document.write ('<a href="mailto:' + eName + eAt + eUrl + '" onmouseover="return mMove();" class="lnkContent">' + eName + eAt + eUrl + '</a>');
}
/**********************************************************************************   
* random top visual                                                               *
***********************************************************************************/
//store the pics in arrays
pics = new Array(5);
pics[0] = "ibv01.gif";
pics[1] = "ibv02.gif";
pics[2] = "ibv03.gif";
pics[3] = "ibv04.gif";
pics[4] = "ibv05.gif";
//calculate a random index
index = Math.floor(Math.random() * pics.length);
/**********************************************************************************   
* show hide submenu                                                               *
***********************************************************************************/
//show submenu
function smShow(smNr){
	obj=document.getElementById?document.getElementById('subMenu' + smNr).style:document.all?document.all['subMenu' + smNr].style:0;
	obj.visibility='visible'
	objActive=document.getElementById?document.getElementById('subMenuActive').style:document.all?document.all['subMenuActive'].style:0;
	objActive.visibility='hidden'
}
//hide submenu
function smHide(smNr){
	obj=document.getElementById?document.getElementById('subMenu' + smNr).style:document.all?document.all['subMenu' + smNr].style:0;
	obj.visibility='hidden'
	objActive=document.getElementById?document.getElementById('subMenuActive').style:document.all?document.all['subMenuActive'].style:0;
	objActive.visibility='visible'
}
