function SI_displaySelects( selectVisibility ) {
	for ( var i = 0; i < document.forms.length; i++ ) {
		for ( var j = 0; j < document.forms[i].elements.length; j++ ) {
			if ( document.forms[i].elements[j].type.indexOf( "select" ) != -1 ) {
				document.forms[i].elements[j].style.visibility = selectVisibility;
			}
		}
	}
}

function SI_showSubNav(SI_subnav){
			
			var SI_nav;
			var SI_complete;
			
			
			if(document.getElementById){
				SI_complete = "document.getElementById('" + SI_subnav + "Menu')";
				
			}
			else if(document.all){
				SI_complete = "document.all['" + SI_subnav + "Menu']";
			}
			
			SI_nav = eval(SI_complete);
				
			if (SI_nav){
				SI_nav.style.visibility = 'visible';	
			}
			
			SI_displaySelects( 'hidden' );
}

function SI_hideSubNav(SI_subnav){
		
			var SI_nav;
			var SI_complete;
			
			
			
			if(document.getElementById){
				SI_complete = "document.getElementById('" + SI_subnav + "Menu')";
			}
			else if(document.all){
				SI_complete = "document.all['" + SI_subnav + "Menu']";
			}
			
			SI_nav = eval(SI_complete);
				
			if (SI_nav){
				SI_nav.style.visibility = 'hidden';	
			}
			
			SI_displaySelects( 'visible' );
}


//======level 1=====================================================================
var SI_arMenu = new Array();

	SI_arMenu[0] = new Array(
		"chamber",
		3,		// pixels from left
		129,	// width of menu image
		"<img src='/fileadmin/template/images/chamberyellow.gif' border=\"0\" />","/",
		"Doing Business","/chamber/dobusiness", "dobusiness",
		"Membership","/chamber/membership","membership",
		"About the Chamber ","/chamber/","none",
		"FAQ","/chamber/","none",
		"Inside the Chamber","/chamber/inside/","none",
		"Chamber Resources","/chamber/resources/","none",
		"International Gwinnett","/chamber/international/","none"
		);
		
	SI_arMenu[1] = new Array(
		"member",
		160, // pixels from left
		114, // width of menu image
		"<img src='/fileadmin/template/images/memberyellow.gif' border=\"0\" />","/",
		"Calendar of Events","/","none",
		"Important Events ","/","none",
		"Involvement Opportunities","/","involveOpp",
		"I am a Member, Now What?","/","none",
		"FAQ","/","none",
		"Chamber Resources","/","none",
		"News Room","//","none",
		"Welcome New Members","/","none",
		"Special Savings for Members","/basketball/nba/injuries/","none"		
		);

	SI_arMenu[2] = new Array(
		"directory",
		302, // pixels from left
		109, // width of menu image
		"<img src='/fileadmin/template/images/directoryyellow.gif' border=\"0\" />","/"
		);
		
	SI_arMenu[3] = new Array(
		"gwinnett",
		440, // pixels from left
		107, // width of menu image
		"<img src='/fileadmin/template/images/gwinnettyellow.gif' border=\"0\" />","/",
		"Leaderboards","/2003/golf/leaderboards/","none",
		"Players","/golf/players/","none",
		"Rankings","/golf/stats/","none",
		"Schedules","/golf/stats/","none",
		"Stats","/golf/stats/","none",
		"Courses","http://golfcourse.si.cnn.com","none",
		"Alerts","/alerts/golf/","none"
		);	

	SI_arMenu[4] = new Array(
		"calendar",
		576, // pixels from left
		70, // width of menu image
		"<img src='/fileadmin/template/images/calendaryellow.gif' border=\"0\" />","/"
		);
		
	SI_arMenu[5] = new Array(
		"store",
		673, // pixels from left
		74, // width of menu image
		"<img src='/fileadmin/template/images/storeyellow.gif' border=\"0\" />","/"
		);

//=================level 2====================================================================
var L1_SI_arMenu = new Array();	
	L1_SI_arMenu[0] = new Array(
		"dobusiness",
		153, // pixels from left (left margin of the upper level + 150)
		1, //# of the item in upper level menu jointed with
		"SI_arMenu[0]", //array of the upper level menu;
		2, //level number
		"How the Chamber Stand Up for Business","/#","none",
		"BNRE Program","/#","none",
		"Involement Opportunities ","/#","involve",
		"Schedules","/golf/stats/","none",
		"NationJob","/#","none"
		);
		
	L1_SI_arMenu[1] = new Array(
		"membership",
		153, // pixels from left (left margin of the upper level + 150)
		2, //# of the item in upper level menu jointed with
		"SI_arMenu[0]", //array of the upper level menu;
		2, //level number
		"Chairman's Club","/#","none",
		"Why join the Gwinnett Chamber","/#","none",
		"Membership Inquiry","/#","none",
		"Advantages of Chamber Membership","/golf/stats/","none",
		"Membership Application","/#","none",
		"Update Your Membership Information","/#","none"
		);
		
	L1_SI_arMenu[3] = new Array(
		"involveOpp",
		310, // pixels from left (left margin of the upper level + 150)
		3, //# of the item in upper level menu jointed with
		"SI_arMenu[1]", //array of the upper level menu;
		2, //level number
		"Programs","/#","programs",
		"Committees","/#","none",
		"Sponsorship & Involvement Opportnities","/#","none"
		);
//==============level 3==============================================================================
	L1_SI_arMenu[4] = new Array(
		"programs",
		460, // pixels from left (left margin of the upper level + 150 + 150)
		1, //# of the item in upper level menu jointed with
		"L1_SI_arMenu[3]", //name of the upper level menu;
		3,//level number;
		"Network Gwinnett","/#","none",
		"Executive Roundtable","/#","none",
		"Service Corps of Retired Executives ","/#","none",
		"Volunteer Ambassador Council","/#","none",
		"Small Business Development ","/#","none",
		"Human Resource Management Association  ","/#","none",
		"Safety Professionals Organization ","/#","none",
		"Business After Hours","/#","none",
		"Annual Chamber Dinner ","/#","none",
		"Calendar of Events","/#","none",
		"New Member Luncheon","/#","none",
		"General Membership Meeting","/#","none",
		"Drugs Don't Work","/#","none",
		"Discounted Group Insurance Program","/#","none",
		"Business In Gwinnett BIG Expo & Job Fair","/#","none",
		"Gwinnett Medical Alliance","/#","none",
		"Chamber Challenge","/#","none",
		"Transportation and Environmental Forum","/#","none",
		"Gwinnett Technology Forum","/#","none"
	
		);	
	L1_SI_arMenu[2] = new Array(
		"involve",
		303, // pixels from left (left margin of the upper level + 150 + 150)
		3, //# of the item in upper level menu jointed with
		"L1_SI_arMenu[0]", //name of the upper level menu;
		3,//level number;
		"Directions and Map","/#","none",
		"Programs and Services","/#","none"
		);	
		
function SI_setUpMenus(){
	if ((document.all) || (document.getElementById)){
	var this_SI_arMenu = new Array();
	this_SI_arMenu = SI_arMenu;
	var SI_subnav = "";
			
			for (j = 0; j < this_SI_arMenu.length; j++){
				SI_subnav += "<div id=\"" + this_SI_arMenu[j][0] + "Menu\" onmouseover=\"SI_showSubNav('" + this_SI_arMenu[j][0] + "');\" onmouseout=\"SI_hideSubNav('" + this_SI_arMenu[j][0] + "');\" style=\"margin-left: "+this_SI_arMenu[j][1]+"px; z-index: 999; position: absolute; width: 150; top: 91px; visibility: hidden;\">";
					SI_subnav += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"150\">";
					SI_subnav += "<tr>";
					SI_subnav += "<td height=\"24\" width=\""+this_SI_arMenu[j][2]+"\"><a href=\""+this_SI_arMenu[j][4]+"\">"+this_SI_arMenu[j][3]+"</a></td>";
					
					SI_subnav += "</tr>";
					for (i=5; i < this_SI_arMenu[j].length-1; i=i+3){
						SI_subnav += "<tr>";	
						if(this_SI_arMenu[j][i+2]=="none"){
							SI_subnav += "<td   class=\"yellow-cell\" onClick=\"document.location.href='" + this_SI_arMenu[j][i+1] + "'\" onmouseover=\"this.className='yellow-cell-over';\" onmouseout=\"this.className='yellow-cell';\" >" + this_SI_arMenu[j][i] + "</td>";	
						}
						else{
							
							SI_subnav += "<td id=\""+this_SI_arMenu[j][0]+i+"\"  class=\"yellow-cell-withsub\" onClick=\"document.location.href='" + this_SI_arMenu[j][i+1] + "'\" onmouseover=\"SI_showSubNav('"+this_SI_arMenu[j][i+2]+"'); this.className='yellow-cell-withsub-over';\" onmouseout=\"SI_hideSubNav('"+this_SI_arMenu[j][i+2]+"'); this.className='yellow-cell-withsub';\" >" + this_SI_arMenu[j][i] + "</td>";	
						}
						SI_subnav += "</tr>";
					}
					SI_subnav += "<tr>";
					SI_subnav += "<td  bgcolor=\"#ffffff\" height=\"1\"><img src=\"images/spacer_1x1.gif\" width=\"1\" height=\"1\" border=\"0\" /></td>";
					SI_subnav += "</tr>";
					SI_subnav += "</table>";
				SI_subnav += "</div>";
			}
			
	document.write(SI_subnav);

	}
}

function L1_SI_setUpMenus(){
	if ((document.all) || (document.getElementById)){
	var this_SI_arMenu = new Array();
	this_SI_arMenu = L1_SI_arMenu;
	var SI_subnav = "";
			for (j = 0; j < this_SI_arMenu.length; j++){
				kkkk='';
				if(this_SI_arMenu[j][4] == 3){
					kkkk=eval(eval(this_SI_arMenu[j][3])[3])[0];
				}
				SI_subnav += "<div id=\"" + this_SI_arMenu[j][0] + "Menu\" onmouseover=\"SI_showSubNav('" + this_SI_arMenu[j][0] + "'); SI_showSubNav('" + eval(this_SI_arMenu[j][3])[0] + "'); if("+this_SI_arMenu[j][4]+"==3){ SI_showSubNav('"+kkkk+"');} if("+this_SI_arMenu[j][4]+"==2){bgOfTop('"+eval(this_SI_arMenu[j][3])[0]+(this_SI_arMenu[j][2]*3+2)+"','yellow-cell-withsub-over');} else{bgOfTop('"+kkkk+(eval(this_SI_arMenu[j][3])[2]*3+2)+"','yellow-cell-withsub-over'); bgOfTop('"+eval(this_SI_arMenu[j][3])[0]+(this_SI_arMenu[j][2]*3+2)+"','ssecondlevel-cell-withsub-over');} \" onmouseout=\"SI_hideSubNav('" + this_SI_arMenu[j][0] + "');SI_hideSubNav('" + eval(this_SI_arMenu[j][3])[0] + "'); if("+this_SI_arMenu[j][4]+"==3){ SI_hideSubNav('"+kkkk+"');} if("+this_SI_arMenu[j][4]+"==2){bgOfTop('"+eval(this_SI_arMenu[j][3])[0]+(this_SI_arMenu[j][2]*3+2)+"','yellow-cell-withsub');} else{bgOfTop('"+kkkk+(eval(this_SI_arMenu[j][3])[2]*3+2)+"','yellow-cell-withsub'); bgOfTop('"+eval(this_SI_arMenu[j][3])[0]+(this_SI_arMenu[j][2]*3+2)+"','yellow-cell-withsub-over');}\" style=\"margin-left: "+this_SI_arMenu[j][1]+"px; z-index: 999; position: absolute; width: 150; top: 115px; visibility: hidden;\">";				
					SI_subnav += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"150\">";
					for(k=1; k<this_SI_arMenu[j][2]; k++){	
						SI_subnav += "<tr>";
						SI_subnav += "<td class=\"empty-cell\" style=\"visibility:hidden\">"+eval(this_SI_arMenu[j][3])[k*3+2]+"</td>";
						SI_subnav += "</tr>";
					}
					for (i=5; i < this_SI_arMenu[j].length-1; i=i+3){
						SI_subnav += "<tr>";		
						if(this_SI_arMenu[j][i+2]=="none"){
							
							SI_subnav += "<td  class=\""+iif(this_SI_arMenu[j][4]==2, 'yellow-cell-over','ssecondlevel-over')+"\" onClick=\"document.location.href='" + this_SI_arMenu[j][i+1] + "'\" onmouseover=\"this.className=iif("+this_SI_arMenu[j][4]+"==2, 'ssecondlevel-over','yellow-cell-over');\" onmouseout=\"this.className=iif("+this_SI_arMenu[j][4]+"==2, 'yellow-cell-over','ssecondlevel-over');\" >" + this_SI_arMenu[j][i] + "</td>";	
						}
						else{
							SI_subnav += "<td   id=\""+this_SI_arMenu[j][0]+i+"\" class=\"yellow-cell-withsub-over\" onClick=\"document.location.href='" + this_SI_arMenu[j][i+1] + "'\" onmouseover=\" SI_showSubNav('"+this_SI_arMenu[j][i+2]+"'); this.className='ssecondlevel-cell-withsub-over';\" onmouseout=\"SI_hideSubNav('"+this_SI_arMenu[j][i+2]+"'); this.className='yellow-cell-withsub-over'; \" >" + this_SI_arMenu[j][i] + "</td>";	
						}
						SI_subnav += "</tr>";
					}
					SI_subnav += "<tr>";
					SI_subnav += "<td  bgcolor=\"#ffffff\" height=\"1\"><img src=\"images/spacer_1x1.gif\" width=\"1\" height=\"1\" border=\"0\" /></td>";
					SI_subnav += "</tr>";
					SI_subnav += "</table>";
				SI_subnav += "</div>";
			}
			
	document.write(SI_subnav);

	}
}

function iif(condition,result1,result2){
	if(condition){return (result1);}
	else{ return (result2);}
}

function bgOfTop(id,cclass){
	if(document.getElementById){
		SI_complete = "document.getElementById('" + id+"')";
		//alert('ghj');
	}
	else if(document.all){
		SI_complete = "document.all['" + id + "']";
	}
	SI_nav = eval(SI_complete);
	SI_nav.className = cclass;
	//alert(SI_nav.className);
}


