
<!-- note for image swaps -->
<!-- for Netscape 6 and IE, use the W3C standardized built in method 'getElementByID' to access elements -->
<!-- The Layers element was totally dropped for NN6 and Microsoft's proprietory 'document.all' is for IE only -->

if (document.layers) 
{
  visible = 'show';
  hidden = 'hide';
}else
  {
  visible = 'visible';
  hidden = 'hidden';
  }



function changeIt(arrow,which_item)
{

  if(document.layers)
    {
      menu_item = document.layers[which_item];
      actlink = document.layers[arrow];
    }else
     if(document.all)
      {
       menu_item = document.all(which_item).style;
       actlink = document.all(arrow).style;      
      }else
       {
         menu_item = document.getElementById(which_item).style;
         actlink = document.getElementById(arrow).style;
       }
  
  actlink.color = "#FFFFFF";
  menu_item.color = "#FFFFFF";  
  menu_item.visibility = visible;
  
}
 

function changeItBack(arrow,which_item)
{

  if(document.layers)
    {
      menu_item = document.layers[which_item];
      actlink = document.layers[arrow];
    }else
     if(document.all)
      {
       menu_item = document.all(which_item).style;
       actlink = document.all(arrow).style;      
      }else
       {
         menu_item = document.getElementById(which_item).style;
         actlink = document.getElementById(arrow).style;
       }

  actlink.color = "#EBEBEB";
  menu_item.color = "#FFFFFF";
  menu_item.visibility = hidden;
  
}



function preLoadImages(the_section)
{
  if(document.images)
  {
    var which_section = "../images/"+the_section;
    var product_images = new Array(which_section+"/cmrs.gif",which_section+"/cmrs_r.gif",which_section+"/fmcmodel.gif",which_section+"/fmcmodel_r.gif",
                                which_section+"/fmcnet.gif",which_section+"/fmcnet_r.gif",which_section+"/fmctrade.gif",which_section+"/fmctrade_r.gif",
						        which_section+"/genvest.gif",which_section+"/genvest_r.gif",which_section+"/recon.gif",which_section+"/recon_r.gif",which_section+"/sylvan.gif",
						        which_section+"/sylvan_r.gif")



						      
    for(x=0;x<product_images.length;x++)
    {
      var the_image = new Image();
      the_image.src = product_images[x];
    }
  }else
  return false;
   
 } 



function numberSwitchIt(the_pic,which)
{

  if(document.images)
  {
    if(document.layers)
    {
      document.eval(the_pic).src = "../images/"+which+"_r.gif";
    }else
     if(document.all)
     {   
       document.all(the_pic).src = "../images/"+which+"_r.gif";
     }else
      document.getElementById(the_pic).src = "../images/"+which+"_r.gif";
   }else
    return false;
    
}   



function numberSwitchItBack(the_pic,which)
{

  if(document.images)
  {
    if(document.layers)
    {
      document.eval(the_pic).src = "../images/"+which+".gif";
    }else
     if(document.all)
     {   
       document.all(the_pic).src = "../images/"+which+".gif";
     }else
      document.getElementById(the_pic).src = "../images/"+which+".gif";
   }else
    return false;
    
}




function productSwitchIt(product)
{

  if(document.images)
  {
    if(document.layers)
    {
      document.eval(product).src = "../images/products/" + product + "_r.gif";
    }else
     if(document.all)
     {
       document.all(product).src= "../images/products/" + product + "_r.gif";
     }else
      document.getElementById(product).src = "../images/products/" + product + "_r.gif";
  }else
   return false;     
   
}   



function productSwitchItBack(product)
{

  if(document.images)
  {
    if(document.layers)
    {
      document.eval(product).src = "../images/products/" + product + ".gif";
    }else
     if(document.all)
     {  
       document.all(product).src= "../images/products/" + product + ".gif";
     }else
      document.getElementById(product).src = "../images/products/" + product + ".gif";
  }else
   return false;    
 
 } 


function goThere(the_page)
{
  window.location.href = the_page;
}

                                                  <!-- For external Links -->

function openTheWindow(the_url)
{
 var external_link =  window.open(the_url,'external_links','location=yes,menubar=yes,toolbar=yes,status=1,scrollbars=yes,resizable=yes');
}


						                          <!-- For products visual tour -->

function openTheTour(which_product)
{

  var tour_url = "../products/visual_tours/" + which_product + "_tour_1.asp";
  var tour_window = window.open(tour_url,"visual_tour","location=no,scrollbar=yes,width=600,height=570");

}

						                  <!-- For all other internal 'seperate window' links -->


function openTheAddress(which_address,name,scroll,window_w,window_h)
{
  var the_address = window.open(which_address,name,'location=no,scrollbars='+scroll+',width='+window_w+'px,height='+window_h+'px');
  if(name=='address')
    {
      the_address.focus();
    }
} 


function whichLevel(the_url)
{
  
  the_callpage = window.location.href;
  if(the_callpage.indexOf('default') != -1 || the_callpage.indexOf('disclaimer') != -1)
    {
      window.location.href = the_url;
    }else
      {
        window.location.href = "../"+the_url;
      }
}

