function SwitchMenu(id){
	var obj='divSub'+id
	//var unImg='pfeil_haupt_weiss.gif'
	//var exImg='pfeil_haupt_weissdown.gif' 
	//var arr= document.getElementById("box_mainnav").getElementsByTagName("img");
	//for(var i=0;i<arr.length;i++)
	//{
	//document.getElementsByTagName("img")[i].setAttribute("src", unImg);
	//}
	//document.getElementsByTagName("img")[parseInt(id)-1].setAttribute("src", exImg);
	
	var el = document.getElementById(obj);
	var ar = document.getElementById("box_mainnav").getElementsByTagName("span");
	
	if(el.style.display != "block")
	{
	for (var i=0; i<ar.length; i++)
	{
	if (ar[i].className=="submenu")
		ar[i].style.display = "none"; 
		}
		el.style.display = "block";
	}else{
		el.style.display = "none";
		//document.getElementsByTagName("img")[parseInt(id)-1].setAttribute("src", unImg);
	}

}

/*
Author Dennis Riedel <riedel@opus5.info>

I am placing this function here to not create ANOTHER js file which has to be included
seperately. This is not the right place for my code, but I it is short and does not justify yet ANOTHER
js include in the head.

This code is for the "Viral Marketing Volver a Flandes Flash Banner. It calls this function when the user
clicks on the close button within the Flash to remove the banner from the DOM.

This uses the prototype library which is already included. Function should be reusable.

 
function removeElementFromDOM(elementID)
{
  //we have to use the old "Element syntax" here, included prototype version is 1.4
  //$() function not yet available
  if( jQuery("#" + elementID + " object")){
	  jQuery("#" + elementID + " object").hide();
  }else{
 	 Element.remove(elementID);
  }
}
 */
/*
Adding call to google analytics pageTracker to track clicks on the flash banner
Inspired by Roger Johansson
http://www.456bereastreet.com/archive/200605/using_javascript_instead_of_target_to_open_new_windows/


function trackAndOpenInNewWindow(trackURL, targetURL) {
  
  pageTracker._trackPageview(trackURL);
  
  var newWindow = window.open(targetURL, '_blank');
  newWindow.focus();
}

function trackAndOpen(trackURL, targetURL, targetWindow) {
  
  pageTracker._trackPageview(trackURL);
  
  var newWindow = window.open(targetURL, targetWindow);
  newWindow.focus();
}

function getPageCoords(element) {
	var top = 0;

	while(element) {
		var offset = element.offset();
		top += offset.top;
		element = element.offsetParent();
	};

	return top;
}
*/