// Preload Images

function preloadImages()
{
  menu0=new Image();
  menu0.src="images/gallery_arrow_left_on.jpg";  
  menu1=new Image();
  menu1.src="images/gallery_arrow_right_on.jpg";
  menu2=new Image();
  menu2.src="images/gallery_refresh_on.jpg";
  menu3=new Image();
  menu3.src="images/mail_on.gif";

}

// mouseOver
    
    function jpgOver(button_name)
    {
       window.document.images[button_name].src = "images/"+button_name+"_on.jpg";
    }
    
    function gifOver(button_name)
    {
       window.document.images[button_name].src = "images/"+button_name+"_on.gif";
    }

// mouseOut

    function jpgOut(button_name)
    {
         window.document.images[button_name].src = "images/"+button_name+".jpg";
    } 
    
    function gifOut(button_name)
    {
         window.document.images[button_name].src = "images/"+button_name+".gif";
    }


//popUpFunctions

  var newwindow; 

//popUp steph
function makePopUpSteph(url)
{   
   newwindow=window.open(url,'popUpSteph','width=600,height=400,scrollbars=yes,left=0,top=0');
       
   if(window.focus)
   {
      newwindow.focus()
   }   
}

//popUp contact
function makePopUpContact(url)
{   
   newwindow=window.open(url,'popUpContact','width=600,height=400,scrollbars=yes,left=0,top=0');
       
   if(window.focus)
   {
      newwindow.focus()
   }   
}
   
//popUp links
function makePopUpLinks(url)
{
   newwindow=window.open(url,'popUpLinks','width=600,height=400,scrollbars=yes,left=0,top=0');
       
   if(window.focus)
   {
      newwindow.focus()
   }   
}
   
//popUp pic
function makePopUpPic(url)
{
   newwindow=window.open(url,'popUpPic','width=800,height=500,scrollbars=yes,left=0,top=0');
       
   if(window.focus)
   {
      newwindow.focus()
   }
}

//popUp news
function makePopUpNews(url)
{
   newwindow=window.open(url,'popUpNews','width=600,height=400,scrollbars=yes,left=0,top=0');
       
   if(window.focus)
   {
      newwindow.focus()
   }
}

//popUp archive
function makePopUpArchive(url)
{
   newwindow=window.open(url,'popUpArchive','width=600,height=400,scrollbars=yes,left=0,top=0');
       
   if(window.focus)
   {
      newwindow.focus()
   }
}