/*
function ToggleDiv( divToShow )
{
	var divObj;
	var tdObj;
	var objs = new Array( "prepare-home-for-sale", "home-mini-lift", "remodel", "new-homes-and-models" );
	var i;
	
	for( i = 0; i < objs.length; i++ )
	{
		divObj = document.getElementById( objs[i] + "-div" );
		tdObj = document.getElementById( objs[i] + "-td" );
		
		if( divObj != null && tdObj != null )
		{
			if( objs[i] == divToShow )
			{
				tdObj.className = "link2on";
				divObj.style.display = "block";
			}
			else
			{
				tdObj.className = "link2off";
				divObj.style.display = "none";
			}
		}
	}
}
*/

function PositionAd()
{
	var obj = document.getElementById( "ad" );
	var windowWidth = 0;
	var ad_x = 0;
	
	if( obj != null )
	{
		windowWidth = GetWindowWidth();
		ad_x = ((windowWidth * 1)/ 2) + 340;
		obj.style.left = ad_x;
	}
}

function GetWindowWidth()
{
	var windowWidth = 0;
	if( parseInt( navigator.appVersion ) > 3 ) 
	{
 		if( navigator.appName == "Netscape" ) 
		{
   			windowWidth = window.innerWidth;
		}
		else if( navigator.appName.indexOf( "Microsoft" ) != -1 ) 
		{
  			windowWidth = document.body.offsetWidth;
 		}
	}
	return windowWidth;
}
