
if (document.images)
{
//following are the roll overs for sub navigation at the top of the pages
//declare top sub home buttons
        home_off = new Image;
        home_on = new Image;
        
        home_off.src = "images/sub_home.gif";
        home_on.src = "images/sub_home_on.gif";
		
//declare top sub city home buttons
        cityhome_off = new Image;
        cityhome_on = new Image;
        
        cityhome_off.src = "images/sub_cityhome.gif";
        cityhome_on.src = "images/sub_cityhome_on.gif";
		
//declare top sub discover buttons
        discoversub_off = new Image;
        discoversub_on = new Image;
        
        discoversub_off.src = "images/sub_discover.gif";
        discoversub_on.src = "images/sub_discover_on.gif";

		
//declare top sub add properties buttons
        addproperties_off = new Image;
        addproperties_on = new Image;
        
        addproperties_off.src = "images/sub_addproperties.gif";
        addproperties_on.src = "images/sub_addproperties_on.gif";
		
//declare top sub help buttons
        help_off = new Image;
        help_on = new Image;
        
        help_off.src = "images/sub_help.gif";
        help_on.src = "images/sub_help_on.gif";

//declare top sub add properties buttons
        contactus_off = new Image;
        contactus_on = new Image;
        
        contactus_off.src = "images/sub_contactus.gif";
        contactus_on.src = "images/sub_contactus_on.gif";


//following are the roll overs for main navigation buttons in the middle of the page
//declare industrial main button
        industrial_off = new Image;
        industrial_on = new Image;
        
        industrial_off.src = "images/btn_industrial.gif";
        industrial_on.src = "images/btn_industrial_on.gif";
		
		
//declare land main button
        land_off = new Image;
        land_on = new Image;
        
        land_off.src = "images/btn_land.gif";
        land_on.src = "images/btn_land_on.gif";
		
		
//declare office main button
        office_off = new Image;
        office_on = new Image;
        
        office_off.src = "images/btn_office.gif";
        office_on.src = "images/btn_office_on.gif";
		
//declare retail main button
        retail_off = new Image;
        retail_on = new Image;
        
        retail_off.src = "images/btn_retail.gif";
        retail_on.src = "images/btn_retail_on.gif";
		
		
//following are the roll overs for the additional navigation buttons under the main buttons
//declare businesses sub-main button
        businesses_off = new Image;
        businesses_on = new Image;
        
        businesses_off.src = "images/btn_businesses.gif";
        businesses_on.src = "images/btn_businesses_on.gif";
		
		
//declare demographics sub-main button
        demographics_off = new Image;
        demographics_on = new Image;
        
        demographics_off.src = "images/btn_demographics.gif";
        demographics_on.src = "images/btn_demographics_on.gif";
		
		
//declare discover sub-main button
        discover_off = new Image;
        discover_on = new Image;
        
        discover_off.src = "images/btn_discover.gif";
        discover_on.src = "images/btn_discover_on.gif";
		
//following are the roll overs for global navigation button tabs at the top of the search pages
//declare properties search
        propertysearch_off = new Image;
        propertysearch_on = new Image;
        
        propertysearch_off.src = "images/nav_properties.gif";
        propertysearch_on.src = "images/nav_properties_on.gif";		
		
//declare demographics search
        demographicsearch_off = new Image;
        demographicsearch_on = new Image;
        
        demographicsearch_off.src = "images/nav_demographics.gif";
        demographicsearch_on.src = "images/nav_demographics_on.gif";	
		
//declare business search
        businesssearch_off = new Image;
        businesssearch_on = new Image;
        
        businesssearch_off.src = "images/nav_business.gif";
        businesssearch_on.src = "images/nav_business_on.gif";	
		
//images rollovers      
        function roll(imgField, newImg, theLayer)
        {
        if (document.images)
                {
                if (document.all)
                        {
                        document[imgField].src = eval(newImg + ".src")
                        } else 
                        {
                                if(theLayer=='0')
                                {
                                        theObj = eval("document." + imgField);
                                        
                                }else{
                                        theObj = eval("document." + theLayer + ".document." + imgField);
                                        
                                }
                                
                                theObj.src = eval(newImg + ".src")
                        }
                }       
        }

	}
	
	
//help window pop up window
	
function helpWindow()
{
	window.open("http://www.focusonfremont.com/search/assist/fof.html", "assist", "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,dependent=no,width=675,height=475,left=75,top=50");
}

//help Advanced pop up window

function AdvancedFeatureWindow(url, name) 
{
	window.open(url, name, 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,dependent=no,width=675,height=475,left=75,top=50')
}
