
function displayEvents() {
    location = "events.jsp?cityid=" + document.forms[0].cityid.value;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function premiumON() {
    document.logo_shop.src="http://www.warsteiner-usa.com/images/logo_shop_on.gif";
    e=document.getElementById( "shopxx"); 
    e.style.color="#ae1c1d";
}
function premiumOFF()
{
    document.logo_shop.src="http://www.warsteiner-usa.com/images/logo_shop.gif";
    e=document.getElementById( "shopxx"); 
    e.style.color="#252525";
}


/* following code adapted from example on internetconnection.net */

var ids=new Array('sub_nav_warsteiner','sub_nav_shop','sub_nav_news');
var WARSTEINER = 0;
var SHOP = 1;
var NEWS = 2;

function divON(id){	
	hidealldivs();
	showdiv(id);
}
function divOFF(){	
	hidealldivs();
}

function hidealldivs(){
	//loop through the array and hide each element by id
	for (var i=0; i < ids.length; i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
