<!--//

// browser sniffer to correct font for Netscape
if ( (navigator.appName.indexOf("Netscape") != -1) )
{
  document.write('<style type=\"text/css\">td {font-family: "times new roman", times; color: #FFFFCC; font-size: 16px; text-decoration: none;}\n');
  document.write('.signature  {position: absolute; top: 740px; left: 50px; z-index: 3;}\n'); 
  document.write('.signature2 {position: absolute; top: 825px; left: 120px; z-index: 10;}<\/style>\n');
}
  
//preload backgrounds when entering index.html
function preLdBgHm() 
{
  if (document.images) 
  {
    rustSwirl = new Image(); 	
    rustSwirl.src = "images/rustSwirl.gif";	   
    colorwash2 = new Image(); 	
    colorwash2.src = "images/colorwash2.gif";	
    forestGreen2 = new Image(); 	
    forestGreen2.src = "images/forestGreen2.gif";	   
    darkSwirl = new Image(); 	
    darkSwirl.src = "images/darkSwirl.jpg";		    
  }

} // end function preLdBgHm

//preload backgrounds when entering other pages
function preLoadBg() 
{
  if (document.images) 
  {
    rustSwirl = new Image(); 	
    rustSwirl.src = "../images/rustSwirl.gif";	   
    colorwash2 = new Image(); 	
    colorwash2.src = "../images/colorwash2.gif";	
    forestGreen2 = new Image(); 	
    forestGreen2.src = "../images/forestGreen2.gif";	   
    darkSwirl = new Image(); 	
    darkSwirl.src = "../images/darkSwirl.jpg";		    
  }

} // end function preLoadBg
 
// function for pop-up windows
function openPic(image,wi,hi,w,h,title)
{
  // If Netscape add to height and width for pop-up  
  var addWt = 0;
  var addHt = 0;
  
  if (navigator.appName.indexOf("Netscape") != -1)
  {
    addWt = 15;
    addHt = 20;
  }
  
  // if Windows OS add to height and width
  if ( navigator.platform == "Win32" ) 
  {
    addWt += 20;
    addHt += 20;
  }  
   
  var windowElements = "scrollbars=no,width=" + ( wi + addWt + 8 ) + ",height=" + ( hi + addHt + 14 ) + ",resizable=yes,titlebar=no,toolbar=no,scrollbars=yes,screenX=100,screenY=20,left=100,top=20"; 
  var new_window = window.open('', 'picWindow', windowElements);
  new_window.document.write('<html><head><title>TRONEY OILS<\/title><link rel=\"StyleSheet\" href=\"..\/css\/style.css\" type=\"text\/css\">');
  if ( (navigator.appName.indexOf("Netscape") != -1) )
  {
  new_window.document.write('<style type=\"text/css\">td {font-family: "times new roman", times; color: #FFFFCC; font-size: 16px; text-decoration: none;}\n');
  new_window.document.write('<\/style>\n');
  }  
  new_window.document.write('<\/head><body onblur=\"window.close();\" background=\"../images/darkSwirl.jpg\" bgcolor=\"#660000\" marginheight=4 marginwidth=4 topmargin=4 leftmargin=4>');
  new_window.document.write('<img src=\"' + image + '\" border=1' + '>');
  new_window.document.write('<br><table border=0 width=\"' + wi + '\" valign=\"top\"><tr><td valign=\"top\"><a href=\"#\" onClick=\"javascript:window.close();\">&nbsp;close<\/a><\/td>');
  new_window.document.write('<td class=\"title\" align=\"center\" valign=\"top\">\"' + title + '\"<\/td>');
  new_window.document.write('<td align=\"right\" class=\"small\" valign=\"top\">' + w + '\" X ' + h + '\"<\/td><\/tr><\/table><br><br>');
  new_window.document.write('<\/body><\/html>');
 
} // end function openPic
 
// function for BOOK pop-up windows 
function openBook(image,wi,hi)
{
  // If Netscape add to height and width for pop-up  
  var addWt = 0;
  var addHt = 0;
  
  if (navigator.appName.indexOf("Netscape") != -1)
  {
    addWt = 15;
    addHt = 20;
  }
  
  // if Windows OS add to height and width
  if ( navigator.platform == "Win32" ) 
  {
    addWt += 20;
    addHt += 20;
  }
  
  var windowElements = "scrollbars=no,width=" + ( wi + addWt + 8 ) + ",height=" + ( hi + addHt + 14 ) + ",resizable=yes,titlebar=no,toolbar=no,scrollbars=yes,screenX=100,screenY=50,left=100,top=50"; 
  var new_window = window.open('', 'picWindow', windowElements);
  new_window.document.write('<html><head><title>TRONEY OILS<\/title><link rel=\"StyleSheet\" href=\"..\/css\/style.css\" type=\"text\/css\">');
  if ( (navigator.appName.indexOf("Netscape") != -1) )
  {
  new_window.document.write('<style type=\"text/css\">td {font-family: "times new roman", times; color: #FFFFCC; font-size: 16px; text-decoration: none;}\n');
  new_window.document.write('<\/style>\n');
  }   
  new_window.document.write('<\/head><body bgcolor=\"#660000\"  onblur=\"window.close();\" marginheight=4 marginwidth=4 topmargin=4 leftmargin=4>');
  new_window.document.write('<img src=\"' + image + '\" border=1' + '>');
  new_window.document.write('<br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td><a href=\"#\" onClick=\"javascript:window.close();\">&nbsp;close<\/a><\/td><\/tr><\/table><br><br>');
  new_window.document.write('<\/body><\/html>');
}   

//-->