function hideH() {
		document.getElementById('home_header').style.display = "none";
		document.getElementById('visit_header').style.display = "none";
		document.getElementById('biz_header').style.display = "none";
	}
	
function showH(sec) {
		hideH();
		if (sec != '') {
			document.getElementById(sec).style.display = "";
		} 
	}
		
function MemMsg(memID) {
	SX = Math.round((screen.availWidth - 500) / 2);
	SY = Math.round((screen.availHeight - 500) / 2);
	var win=window.open('/business/membership_contact_msg.asp?memID='+memID+'','mywindow','width=500,height=500,toolbar=no,scrollbars=yes,resizable=yes,menubar=no,location=no,status=no,screenX='+SX+',left='+SX+',screenY='+SY+',top='+SY);
	if(win.focus) win.focus();
}

function Fo(w,h,ver,path) {
		document.write("<object type=\"application/x-shockwave-flash\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+ver+",0,0,0\" width=\""+w+"\" height=\""+h+"\">");
		document.write("<param name=movie value=\"" + path + "\" />"); 
   		document.write("<param name=menu value=false />"); 
  		document.write("<param name=quality value=best />"); 
		document.write("<param name=bgcolor value=#D2E9D5 />"); 
		document.write("<PARAM NAME=wmode VALUE=transparent />");
		document.write("<param name=scale value=exactfit />");
		document.write("<param name=salign value=LT />");
  		document.write("<embed src=\"" + path + "\" menu=false quality=best wmode=transparent bgcolor=#D2E9D5 scale=exactfit salign=LT pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\">"); 
   		document.write("</embed></object>"); 
		}
			
// Preload images
var iPath = "/vimages/";

function preLoad()
{
  if(document.images)
  {
    var argLen = arguments.length;
    for(var i = 0; i < argLen; i++)
    {
      var arg = arguments[i];
      self[arg] = new Image();
      self[arg].src = iPath + arg;
    }
  }
}

function onLoad()
{
  preLoad('nav_business_on.gif', 'nav_business_off.gif', 'nav_chamber_off.gif','nav_chamber_on.gif','nav_visitors_off.gif','nav_visitors_on.gif','business_banner.jpg','chamber_banner.jpg','contenthome.jpg','visitors_banner.jpg');
}

onLoad();			