// NAVIGATION SECTION >>>

  var currentOpenMenuId='';

  function openMenu(menuId, time) {
	/*document.getElementById(menuId).previousSibling.previousSibling.id='activeMainmenu';*/
    if (currentOpenMenuId != menuId) {
      if (currentOpenMenuId != '') {
        closeMenu(currentOpenMenuId,time);
      }
      Effect.BlindDown(menuId, {duration:time});
      currentOpenMenuId = menuId;
    }
  }
  
  function closeMenu(menuId, time) {
    Effect.BlindUp(menuId, {duration:time});
  }
  
  function setMenu(section) {
  	var elem = document.getElementById('publicMenu').childNodes;
  	for (var i=0; i<elem.length; i++) {
  	  if(elem[i].className == 'submenu') {
  		var menuId = elem[i].getAttribute('id');
  		var submenu = elem[i].getElementsByTagName("a");
  		for(var j=0; j<submenu.length; j++) {
  		  var href = submenu[j].getAttribute('href');
  		  if (href.match(section)) {
  			//openMenu(menuId, 0);
  			document.getElementById(menuId).style.display = "block";
  			currentOpenMenuId = menuId;
  			return;
  		  }
  		}
  	  }
    }
  }
// <<< NAVIGATION SECTION
  
  
/*  
   <form id="searchbox_003217950933569821542:to1cm-mjwko" action="http://www.google.com/cse">
    <input type="hidden" name="cx" value="003217950933569821542:to1cm-mjwko" />
    <input type="hidden" name="cof" value="FORID:0" />
    <input name="q" type="text" size="40" />
    <input type="submit" name="sa" value="Search" />
  </form>
  <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_003217950933569821542%3Ato1cm-mjwko"></script>
*/


/*
  
google.load("search", "1");

function OnLoad() {
	// Create a search control
	var searchControl = new google.search.SearchControl();
	
	// Add in a full set of searchers
	var localSearch = new google.search.LocalSearch();
	searchControl.addSearcher(localSearch);
	searchControl.addSearcher(new google.search.WebSearch());
	searchControl.addSearcher(new google.search.VideoSearch());
	searchControl.addSearcher(new google.search.BlogSearch());
   
	// site restricted web search with custom label
	// and class suffix
	var options = new GsearcherOptions();
	options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
	
	// Custom Search Engine
	var cseId='003217950933569821542:to1cm-mjwko';
	var siteSearch = new GwebSearch();
	//siteSearch.setSiteRestriction("tvu-volleyball.de");
	siteSearch.setSiteRestriction(cseId);
	siteSearch.setUserDefinedLabel("tvu-volleyball");
	siteSearch.setUserDefinedClassSuffix("search");
	siteSearch.setLinkTarget(GSearch.LINK_TARGET_SELF);
	searchControl.addSearcher(siteSearch, options);
	//searchControl.addSearcher(siteSearch);

	// site restricted web search using a custom search engine
	siteSearch = new GwebSearch();
	siteSearch.setUserDefinedLabel("Product Reviews");
	siteSearch.setSiteRestriction("000455696194071821846:reviews");
	searchControl.addSearcher(siteSearch);

	// web search, open
	options = new GsearcherOptions();
	options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
	searchControl.addSearcher(new GwebSearch(), options);

	// Set the Local Search center point
	localSearch.setCenterPoint("New York, NY");
	// Tell the searcher to draw itself and tell it where to attach
	searchControl.draw(document.getElementById("searchcontrol"));

	// Execute an inital search
	// searchControl.execute("Google");

 }
 google.setOnLoadCallback(OnLoad);
 */