<!--//

menu1=new Menu("Physical Security - Commercial","images/el_ph.jpg");
menu1.addMenuItem("Sentinel 8000<br>Steel Blast Doors","products/8000.htm");
menu1.addMenuItem("Sentinel 8100<br>Steel Ballistic Doors","products/8100.htm");
menu1.addMenuItem("Sentinel 8200<br>Steel Fire Doors","products/8200.htm");
menu1.addMenuItem("Sentinel 8300<br>Steel Physical Attack Doors","products/8300.htm");
menu1.addMenuItem("Sentinel 8400<br>Steel Interlocking Panels","products/8400.htm");
menu1.addMenuItem("Sentinel 8500<br>Steel Glazed Screens","products/8500.htm");
menu1.addMenuItem("Sentinel 8600<br>Steel Kiosks","products/8600.htm");
menu1.addMenuItem("Sentinel 8700<br>Steel Cabinets","products/8700.htm");

menu2=new Menu("Physical Security - Custodial","images/el_ph_c.jpg");
menu2.addMenuItem("Sentinel 9000<br>Steel Doors","products/9000.htm");
menu2.addMenuItem("Sentinel 9100<br>Timber Core Steel Doors","products/9100.htm");
menu2.addMenuItem("Sentinel 9200<br>Grille Gates","products/9200.htm");
menu2.addMenuItem("Sentinel 9300<br>Furniture","products/9300.htm");
menu2.addMenuItem("Sentinel 9400<br>Security Glazing","products/9400.htm");
menu2.addMenuItem("Sentinel 9500<br>Security Grilles","products/9500.htm");

menu3=new Menu("Water Industry","images/el_wa.jpg");
menu3.addMenuItem("Sentinel 1000<br>Upstand Access Covers","products/1000.htm");
menu3.addMenuItem("Sentinel 1000F<br>Flush Fit Access Covers","products/1000f.htm");
menu3.addMenuItem("Sentinel 2000<br>Access Covers","products/2000.htm");
menu3.addMenuItem("Sentinel 2000F<br>Flush Fit Access Covers","products/2000f.htm");
menu3.addMenuItem("Sentinel 3000<br>Air Vent Frame","products/3000.htm");
menu3.addMenuItem("Sentinel 4000<br>Security Door","products/4000.htm");
menu3.addMenuItem("Sentinel 5000<br>Security Enclosures","products/5000.htm");

//menu4=new Menu("Sub-Contact","images/el_sc.jpg");
//menu4.addMenuItem("Design","sub-contact/design.htm");
//menu4.addMenuItem("Quality","sub-contact/quality.htm");
//menu4.addMenuItem("Shearing","sub-contact/shearing.htm");
//menu4.addMenuItem("Punching & Nothing","sub-contact/punching_and_nothing.htm");
//menu4.addMenuItem("Bending","sub-contact/bending.htm");
//menu4.addMenuItem("Assembly","sub-contact/assembly.htm");

document.write("<table width=\"163\"  border=\"0\" cellpadding=\"4\" cellspacing=\"0\"><tr><td bgcolor=\"#2E6093\" class=\"wtext\">Please click one of the buttons below to expand its contents.</td></tr></table>");

function writeMenus(level)
{
	subc_template="<table width=\"163\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\
	      <tr>\
		<td width=\"20\"><a href=\"{level}sub-contract/index.htm\"><img src=\"{level}images/el_sc.jpg\" alt=\"Sub-Contract\" width=\"161\" height=\"29\" border=\"0\"></a></td>\
		<td width=\"1\" rowspan=\"12\" background=\"{level}images/bg_6.jpg\"><img src=\"{level}images/spacer.gif\" width=\"1\" height=\"1\"></td>\
	      </tr>\
	    </table>\
";

	menu_template="<table width=\"163\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\
              <tr>\
                <td colspan=\"2\"><a href=\"javascript:expandit('{id}');\"><img src=\"{image}\" alt=\"{label}\" width=\"161\" height=\"29\" border=\"0\"></a></td>\
                <td width=\"1\" rowspan=\"23\" background=\"{level}images/bg_6.jpg\"><img src=\"{level}images/spacer.gif\" width=\"1\" height=\"1\"></td>\
              </tr>\
		<td><div id=\"{id}\" style=\"display: none;\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\
              <tr>\
                <td height=\"3\" colspan=\"2\" background=\"{level}images/bg_16.jpg\"><img src=\"images/spacer.gif\" width=\"1\" height=\"3\"></td>\
                </tr>\
		{items}\
		</table></div></table>\
";


	item_template="<tr>\
                <td width=\"20\" valign=\"top\" background=\"{level}images/bg_13.jpg\"><img src=\"{level}images/el_5.jpg\" width=\"20\" height=\"17\"></td>\
                <td width=\"141\" background=\"{level}images/bg_13.jpg\"><a href=\"{action}\" class=\"wtext\">{label}</a></td>\
                </tr>\
              <tr>\
                <td height=\"5\" colspan=\"2\" background=\"{level}images/bg_15.jpg\"><img src=\"{level}images/spacer.gif\" width=\"1\" height=\"5\"></td>\
                </tr>";

	for (i=0;i<window.menus.length;i++)
	{
		menu=window.menus[i];

		label=window.menus[i].label;
		image=window.menus[i].image;
		id=label.replace(/ /gi,"_");
		s=menu_template;
		s=s.replace(/{id}/gi,id);
		s=s.replace(/{label}/gi,label);
		s=s.replace(/{image}/gi,level+image);
		template=s;
				        
		items="";   
		for (j=0;j<menu.items.length;j++)
		{
			label=menu.items[j];
			action=menu.actions[j];
			s=item_template;
			s=s.replace(/{label}/gi,label);
			s=s.replace(/{action}/gi,level+action);
			items=items+s;
		}
		template=template.replace(/{items}/gi,items);
		template=template.replace(/{level}/gi,level);
		template=template;
		document.write(template);

		if (getCookie(id)=="1") expandit(id);
	}
	subc_template=subc_template.replace(/{level}/gi,level);
	document.write(subc_template);	
}

function Menu(label, image) 
{
	this.addMenuItem = addMenuItem;
	this.label=label;
	this.image=image;
	if (!window.menus) window.menus = new Array();
	this.items = new Array();
	this.actions = new Array();

	window.menus[window.menus.length] = this;
}

function addMenuItem(label, action) 
{
	this.items[this.items.length] = label;
	this.actions[this.actions.length] = action;
}

if(document.getElementById&&!document.all){ns6=1;}else{ns6=0;}
var agtbrw=navigator.userAgent.toLowerCase();
var operaaa=(agtbrw.indexOf('opera')!=-1);
var head="display:''";
var folder='';
function expandit(curobj){
if(document.getElementById(curobj)){
  folder=document.getElementById(curobj).style;
  }else{

if(ns6==1||operaaa==true){
	folder=curobj.nextSibling.nextSibling.style;
	}else{
	folder=document.all[curobj.sourceIndex+1].style;
	}
	}

	if (folder.display=="none")
	{ 
		folder.display="";
		setCookie(curobj,"1");
	}
	else
	{
		folder.display="none";
		setCookie(curobj,"0");
	}
}

function getCookie(name)
{  
	var begin = document.cookie.indexOf(name+"=");  
	if(-1 == begin) return null;  
	begin += name.length + 1;  
	end = document.cookie.indexOf("; ",begin);  
	if (-1 == end) end = document.cookie.length;  
	return document.cookie.substring(begin,end);
}

function setCookie(name, value)
{  
	var today = new Date();  
	var expiration = new Date(today.getTime() + 31 * 24 * 60 * 60 * 1000); 
	document.cookie = name + "=" + value + "; path=/; expires=" + expiration.toGMTString();
}

//-->

