var gotNS = (navigator.appName == 'Netscape') ? true : false;
var ns=document.layers;
var ie=document.all;
var ns6=document.getElementById&&!document.all;
var flag=0;


function popWin( url, name, width, height, scroller ) { 

var outStr = 'height=' + height + ',width=' + width; 

	if (scroller == true) {
		 outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=1,resizable=no';
	 } else {
		 outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=no,resizable=no';
	 } 

window.open(url, name, outStr);

}


function popnav(pid){


var outStr = 'height=500,width=800'; 

	outStr = outStr + ',menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=1,resizable=no';

if (pid==2){
	var url = 'http://www.wsualumnicommunity.com/joinform.html';
}	

if (pid==16){
	var url = 'http://www.wsualumnicommunity.com/';
}

if (pid==100){
	var url = 'http://www.wsualumnicommunity.com/';
}

if (pid==19){
	var url = 'http://www.wsualumnicommunity.com/calendar.html';
}

if (pid==12){
	var url = 'http://www.wsualumnicommunity.com/';
}

	//window.open(url, 'Online_Community');
	location.href=url;

}


function showselect(id){

	SDDM_deactivate(id);

var my_div = document.getElementById('selectmenu');

	if (my_div){

	if(ie||ns6){
	document.getElementById("selectmenu").style.visibility = "visible";
	}

	if(ns){
	document.layers['selectmenu'].visibility = "show";
	}

	}

}


function hideselect(id){

	SDDM_activate(id);


var my_div = document.getElementById('selectmenu');

	if (my_div){

	if(ie||ns6){
	document.getElementById("selectmenu").style.visibility = "hidden";
	}

	if(ns){
	document.layers['selectmenu'].visibility = "hide";
	}

	}

}


function showselect2(id){

var my_div = document.getElementById('selectmenu');

	if (my_div){

	if(ie||ns6){
	document.getElementById("selectmenu").style.visibility = "visible";
	}

	if(ns){
	document.layers['selectmenu'].visibility = "show";
	}

	}

}


function hideselect2(id){


var my_div = document.getElementById('selectmenu');

	if (my_div){

	if(ie||ns6){
	document.getElementById("selectmenu").style.visibility = "hidden";
	}

	if(ns){
	document.layers['selectmenu'].visibility = "hide";
	}

	}

}