var browser = new Object();
browser.version = parseInt(navigator.appVersion);
browser.isNetscape = false;
browser.isMicrosoft = false;
if (navigator.appName.indexOf("Netscape") != -1) browser.isNetscape=true;
else if (navigator.appName.indexOf("Microsoft") != -1) browser.isMicrosoft=true;
if (browser.isMicrosoft) 
  {
  browser.vendorstring="Microsoft";
  document.write("<LINK REL=\"STYLESHEET\" HREF=\"styles/ms.css\" TYPE=\"text/css\">");
  document.write('<meta http-equiv="Page-Enter" content="revealTrans(Duration=1,Transition=0)">');
  }
else if (browser.isNetscape) 
  {
  browser.vendorstring="Netscape";
  document.write("<LINK REL=\"STYLESHEET\" HREF=\"styles/ns.css\" TYPE=\"text/css\">");
  }
else 
  {
  browser.vendorstring="Unknown";
  document.write("<LINK REL=\"STYLESHEET\" HREF=\"styles/ms.css\" TYPE=\"text/css\">");
  }

function SwitchImg()
  { //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
        store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
       switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} //end

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
} //end

function RefreshWin()
  {
  self.location.reload()
  }
var menu_list=["Home Page",
               "Door Accessories",
			   "Garage Door Seals",
			   "Threshold Draught Seals",
			   "Frame Seals",
			   "Traditional Threshold Seals",
			   "Low Access Threshold Seals",
			   "The Eskimo All-Weather",
			   "Joinery Seals",
			   "Intumescent Seals"];
var page_list=["index.html",
               "door_accessories.html",
			   "garage_doors.html",
			   "threshold_draught_seals.html",
			   "frame_seals.html",
			   "trad_threshold_seals.html",
			   "low_access_seals.html",
			   "eskimo.html",
			   "joinery.html",
			   "intumescent_seals.html"];
             			   
var menu_gutter=5;
var text_across=5;
var text_up=-15;
var overall_width=200;
function EskMenu(menu_list,page_list,menu_gutter,text_across,text_up,overall_width,hiliteposn)
{
document.write("<table cellpadding=0 cellspacing=0 width="+overall_width+"px>");
for(i=1;i-1<menu_list.length;i++)
  {
  if(i==1)
    {
	document.write("<tr><td class=\"darkback_left\" style=\"border-top:"+menu_gutter+"px solid  #AADDFF\">");
	}
  else
    {
	document.write("<tr><td class=\"darkback_left\">");
	}
  if(i==hiliteposn)
    {
	document.write("<a style=\"text-decoration=none\" href=\""+page_list[i-1]+"\" onMouseOut=\"RestoreImg()\" onMouseOver=\"SwitchImg('document.but"+i+"','document.but"+i+"','images/buttonsel.jpg')\"><img src=\"images/buttonunsel.jpg\" name=\"but"+i+"\"\" width=\"45\" height=\"40\" alt=\"Details of Eskimo's "+menu_list[i-1]+"\" border=\"0\"><b style=\"color:yellow;text-decoration:underline;position:relative;left:"+text_across+"px;top:"+text_up+"px\">"+menu_list[i-1]+"</b></a></td></tr>");
	}
  else
    {
	document.write("<a style=\"text-decoration=none\" href=\""+page_list[i-1]+"\" onMouseOut=\"RestoreImg()\" onMouseOver=\"SwitchImg('document.but"+i+"','document.but"+i+"','images/buttonsel.jpg')\"><img src=\"images/buttonunsel.jpg\" name=\"but"+i+"\"\" width=\"45\" height=\"40\" alt=\"Details of Eskimo's "+menu_list[i-1]+"\" border=\"0\"><b style=\"position:relative;left:"+text_across+"px;top:"+text_up+"px\">"+menu_list[i-1]+"</b></a></td></tr>");
    }
  }
}
//--------------------------------
var thiswinobj
function Picture_Popup(width,height,xpos,ypos,picname)
	    {
		widthextra=20+width;
		heightextra=50+height;
		eskhead=widthextra-100 
		thiswinobj=window.open("picture_placeholder.html","handle","width="+widthextra+",height="+heightextra+",left="+xpos+",top="+ypos);
		thiswinobj.focus();
		thiswinobj.document.write("<script>EskBTop();</script>");
		thiswinobj.document.write("<p><img src='images/"+picname+"' width='"+width+"' height='"+height+"' alt='Bigger Version of Picture' style='border:3px solid #000099'></p>");
		thiswinobj.document.write("<p><a href='#' Onclick=\"self.close()\";><b style=\"position:relative;left:5px;top:-20px\">CLOSE WINDOW</b></a></p>");
		thiswinobj.document.write("<img style=\"position:absolute;left:"+eskhead+"px;top:50px\" src='images/eskimo_head.gif' width='91' height='80' alt='logo' border='0'>");
		thiswinobj.document.write("<script>EskBBot();</script>");
		}
  
