<!--
// JavaScript Document
// menuControl
//
//
// 01. Set the menu in the basic position, all buttons OFF
//
function resetMenu() {
	// set the amount of menu items
	var totalMenuItems=6;
	// loop through the menu, set the buttons OFF and hide all CONTENT
	var i=1;
	for (i=1; i<=totalMenuItems; i=i+1) {
		//alert(i);
		document.getElementById(i + "_c").style.display = 'none';
		document.getElementById("content_top").style.display = 'none';
		document.getElementById(i + "_tc").style.display = 'none';
		document.getElementById(i + "_btn").innerHTML = '<img src="images/btn' + i + '_OFF.gif" border="0">';
	}
}
//
//
// 02. set the MENU and display/hide the CONTENT
//
//
function changeDisplayState (id) {
	//alert('changing the display state');
	//alert(id);
	btn=document.getElementById(id + "_btn");
	c=document.getElementById(id + "_c");
	topC=document.getElementById("content_top");
	tc=document.getElementById(id + "_tc");
	flashC=document.getElementById("content_flash");
	// set the clicked one ON
	if (c.style.display == 'none' || c.style.display == "") {
		// set the basic MENU and PAGE layout
		resetMenu();
		// swicth the button ON and show the CONTENT
		btn.innerHTML = '<img src="images/btn' + id + '_ON.gif" border="0">';
		c.style.display = 'block';
		// check if the TOP CONTENT should be altered
		if (id == '3'){ 
			topC.style.display = 'block';
			tc.style.display = 'block';
			flashC.style.display = 'none';	
		//} else if (id == '4') {
		//	topC.style.display = 'block';
		//	tc.style.display = 'block';
		//	flashC.style.display = 'none';
		} else { 
			// reset the FLASH animation
			topC.style.display = 'none';
			flashC.style.display = 'block';	
		}
	} else {
		// set the basic MENU position and hide the CONTENT
		resetMenu();
		flashC.style.display = 'block';	
	}
}

// -->