/*************************************
* Company: Web 'n Play Producties    *
* Author: Mark Westenberg            *
* Date: 2010-08-23                   *
* ************************************/

// simple function to do an action on the display property of an HTML elemenent
// simply give the element name and the action you want to perform on the display property
function hoverAction(element,action) {
	document.getElementById(''+element+'').style.display=''+action+'';
}

// will do the menu dropdown
function menudrop (menuid) {
	//this loop will make sure all the submenu items are visible
	for(i=1;i<=5;i++) {
		if (i==menuid)
		{
			hoverAction('submenu'+i+'','block');
			//document.getElementById('m'+menuid+'').style.color='#696969';
			//document.getElementById('m'+menuid+'').style.text-shadow = '#FFFFFF';
		} 
		else 
		{
			hoverAction('submenu'+i+'','none');
			//document.getElementById('m'+i+'').style.color='#FFFFFF';
			//document.getElementById('m'+i+'').style.text-shadow = '#000';
		}
	
	}
	//this will enable/disable the complete div containing the submenu items
	//(menuid>0)? (hoverAction('menudrop','block')):(hoverAction('menudrop','none'));
	if (menuid>0) 
	{
		//hoverAction('submText'+menuid+'1','block');
		hoverAction('submenuPic'+menuid+'1','block');
		hoverAction('menudrop','block');
		
	} else {
		hoverAction('menudrop','none');
	}
}

// function to enable the submenu text and pictures
function submenudrop(submenuid,subid,maxid) {
	//hoverAction('submText'+submenuid+'1','none');
	hoverAction('submenuPic'+submenuid+'1','none');

	
	for(i=1;i<=maxid;i++) {
		if (i==subid) {
			//this will enable the text and pictures
			hoverAction('submText'+submenuid+i+'','block');
			//hoverAction('submenuPic'+submenuid+i+'','block');
		} else {
			//this will disable the text and pictures
			hoverAction('submText'+submenuid+i+'','none');
			//hoverAction('submenuPic'+submenuid+i+'','none');
		}
	}
}

function hidediv() { 
	if (document.getElementById) { // DOM3 = IE5, NS6 
		document.getElementById('hideShow').style.visibility = 'hidden'; 
	} else { 
		if (document.layers) { // Netscape 4 
			document.hideShow.visibility = 'hidden'; 
		} else { // IE 4 
			document.all.hideShow.style.visibility = 'hidden'; 
		} 
	} 
} 

function showdiv() { 
	if (document.getElementById) { // DOM3 = IE5, NS6 
		document.getElementById('hideShow').style.visibility = 'visible'; 
	} else { 
		if (document.layers) { // Netscape 4 
			document.hideShow.visibility = 'visible'; 
		} else { // IE 4 
			document.all.hideShow.style.visibility = 'visible'; 
		} 
	} 
} 
