// JavaScript Document

//creat array to hold subnavs
arySubNavs = new Array("About","ForSale","Services","Resources","Contact");

function swapSubNavs(showSubNav){
	for (var i=0;i<arySubNavs.length;i++) {
		obj=document.getElementById('snav'+arySubNavs[i]);
		//alert(obj);
		if (obj.style) obj=obj.style;  
		obj.visibility="hidden";
	
		
	}
	obj=document.getElementById(showSubNav);
	//alert(obj);
	if (obj.style) obj=obj.style;
	obj.visibility="visible";
	return false;
}

function showListingDetail(listingID){
	obj=document.getElementById(listingID);
	if (obj.style) obj=obj.style;
	obj.display=(obj.display=="inline")? "none":"inline";
}


function markCurrNav(subnav){
	obj=document.getElementById(subnav);
	if (obj.style) obj=obj.style;
	obj.color="#530000";
	obj.fontWeight="bold";
	//obj.innerText=": "+obj.innerText+" :";
}

function checkIEPNG() { 
	userAgent=navigator.userAgent;
	if (userAgent.indexOf('MSIE') != -1) {
		//alert('IE');
		return true;
		
	}
	else return false;	
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)<5) ) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
