
var s7_NS = (document.layers) ? 1 : 0;
var s7_IE = (document.all && document.getElementById) ? 1 : 0;
var s7_N6 = (!document.all && document.getElementById) ? 1 : 0;
//var s7_IE = (navigator.appName == "Microsoft Internet Explorer") ? 1 : 0;
//var s7_NS = (navigator.appName == "Netscape") ? 1 : 0;
var s7_hideMenu = null;

function s7_Hide(div) {
	if(s7_IE)eval('document.all.subnav_'+div+'.style.visibility="hidden"');
	if(s7_NS)eval('document.subnav_'+div+'.visibility="hidden"');
	if(s7_N6) {
		switch (div){
		case "1": 
			s7_elm = document.getElementById('subnav_1');
			break;
		case "2": 
			s7_elm = document.getElementById('subnav_2');
			break;
		case "3": 
			s7_elm = document.getElementById('subnav_3');
			break;
		case "4": 
			s7_elm = document.getElementById('subnav_4');
			break;			
		}
		s7_elm.style.visibility = "hidden";
	}
}

function s7_Show(div){
	if(s7_IE)eval('document.all.subnav_'+div+'.style.visibility="visible"');
	if(s7_NS)eval('document.subnav_'+div+'.visibility="visible"');
	if(s7_N6) {
		switch (div){
		case "1": 
			s7_elm = document.getElementById('subnav_1');
			break;
		case "2": 
			s7_elm = document.getElementById('subnav_2');
			break;
		case "3": 
			s7_elm = document.getElementById('subnav_3');
			break;
		case "4": 
			s7_elm = document.getElementById('subnav_4');
			break;		
		}
		s7_elm.style.visibility = "visible";
	}
}

function s7_hideAll(){
	s7_Hide('1');
	s7_Hide('2');
	s7_Hide('3');
	s7_Hide('4');
}

function ShowSubNav1(){
	s7_Show('1');
	s7_Hide('2');
	s7_Hide('3');
	s7_Hide('4');
}

function ShowSubNav2(){
	s7_Hide('1');
	s7_Show('2');
	s7_Hide('3');
	s7_Hide('4');
}

function ShowSubNav3(){
	s7_Hide('1');
	s7_Hide('2');
	s7_Show('3');
	s7_Hide('4');
}
function ShowSubNav4(){
	s7_Hide('1');
	s7_Hide('2');
	s7_Hide('3');
	s7_Show('4');
}

//***********************************************************************
//Chat redirect script***************************************************
function gochat() {
	openWin('http://plnk.peoplelink.com/echat/XXXXXXX/',680,565,'bigchatwindow','no')
}
//***********************************************************************

//Poll function*****************************************************
function vote(address,pollName){
var qID = 0
var radioGrp = document.forms[pollName].q1;
	for (var i = 0; i < radioGrp.length; i++){
		if (radioGrp[i].checked) {qID = radioGrp[i].value}}
		if (qID == 0)
		alert('Please select an answer before voting.')
		else{
		var whandle = window.open( address + qID, "pollWin", "width=510,height=310,menubar=0,location=0,scrollbars=0", "0" );
		whandle.focus();
	}
}
