if (document.images)
  {
   abouton = new Image();
   abouton.src = "images/about_over.gif" ;  
   aboutoff = new Image();
   aboutoff.src = "images/about.gif";
   
   demoon = new Image();
   demoon.src = "images/demo_over.gif" ;  
   demooff = new Image();
   demooff.src = "images/demo.gif";
   
   portfolioon = new Image();
   portfolioon.src = "images/portfolio_over.gif" ;  
   portfoliooff = new Image();
   portfoliooff.src = "images/portfolio.gif";
   
   prodservon = new Image();
   prodservon.src = "images/prodserv_over.gif" ;  
   prodservoff = new Image();
   prodservoff.src = "images/prodserv.gif";
   
   newson = new Image();
   newson.src = "images/news_over.gif" ;  
   newsoff = new Image();
   newsoff.src = "images/news.gif";
   
   pricingon = new Image();
   pricingon.src = "images/pricing_over.gif" ;  
   pricingoff = new Image();
   pricingoff.src = "images/pricing.gif";
   
   contacton = new Image();
   contacton.src = "images/contact_over.gif" ;  
   contactoff = new Image();
   contactoff.src = "images/contact.gif";  
   
   homeon = new Image();
   homeon.src = "images/home_over.gif" ;  
   homeoff = new Image();
   homeoff.src = "images/home.gif";  
  }
  
  
  // image on function
   function imgOn (imgName)
   {
     if (document.images)
     {
       document [imgName].src = eval (imgName + "on.src");
     }
   }
   
       if (document.images)
      {
        dot = new Image();
        dot.src = "images/sp/arrow2.gif";
        spacer = new Image();
        spacer.src = "images/sp/spacer.gif"
      }
      
      
      
      function dotOn (imgName,theDiv) //dot on
      {
       if (document.images)
       { 
         document[imgName].src = dot.src;
       }
      }
      
      
      function dotOff(imgName,theDiv) // dot off
      {
       if (document.images)
       { 
         document[imgName].src = spacer.src ;
       }
      }

      
       //Arrow for Go
       //              
      if (document.images)
      {
        arrow = new Image();
        arrow.src = "/mco/login/images02/go1_on.gif";
        arrowoff = new Image();
        arrowoff.src = "/mco/login/images02/go1.gif"
      }
      
      function arrowOn (imgName) //arrow on
      {
       if (document.images)
       {
         document[imgName].src = arrow.src;
       }
      }
      
      function arrowOff(imgName) // arrow off
      {
       if (document.images)
       {
         document[imgName].src = arrowoff.src ;
       }
      }
      
      
      
   // image off function
   function imgOff(imgName)
   {
     if (document.images)
     {
       document [imgName].src = eval (imgName + "off.src");
     }
   }
   
   
 //function to popup a window.  Either pass it just the url, and take the default size, or 
     //pass it the url, width, height, windowname, and scrolling/non scrolling (default is non)
     function popWindow(url, width, height, windowName, scrollb) {
      // default width and height for window
      if (!width) { width  = 439; }
      if (!height) { height = 325; }
      if (!scrollb) {scrollb = "no"}
      // positioning of pop-up window
      { leftpos=0
        if (screen) {
        leftpos = screen.width-(width+230)}
     
      //alert("myX=" + myX + "\nmyY=" + myY);
      
      // default window name if not passed to function
      if (!windowName) { windowName = "bxPopup"; }
      var wref = window.open (url, windowName,"toolbar=no,width=" + width + ",height=" + height + ",directories=no,status=no,scrollbars=" +scrollb + ",resizable=yes,menubar=no,top=50,left="+leftpos);
      wref.focus();
    }
    } 
