/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
***********************************************************************************/

	var NoOffFirstLineMenus=11;			// Number of first level items
	var LowBgColor='#E7E7DE';			// Background color when mouse is not over
	
// LowBgColor='white'; document.body.style.background='url()';             // enable for pdf printing	
	
	var LowSubBgColor='#E7E7DE';			// Background color when mouse is not over on subs
	var HighBgColor='white';			// Background color when mouse is over
	var HighSubBgColor='white';			// Background color when mouse is over on subs
	var FontLowColor='red';			// Font color when mouse is not over
	var FontSubLowColor='red';			// Font color subs when mouse is not over
	var FontHighColor='blue';			// Font color when mouse is over
	var FontSubHighColor='blue';			// Font color subs when mouse is over
	var BorderColor='black';			// Border color
	var BorderSubColor='black';			// Border color for subs
	var BorderWidth=0;				// Border width
	var BorderBtwnElmnts=0;			// Border between elements 1 or 0
	var FontFamily="Arial Narrow"	// Font family menu items
	var FontSize=10;				// Font size menu items
	var FontBold=1;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap= .05;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=150;				// Menu offset x coordinate
	var StartLeft=15;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=3;				// Left padding
	var TopPaddng=5;				// Top padding
	var FirstLineHorizontal=0;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=250;			// delay before menu folds in
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';			// Frame where first level appears
	var SecLineFrame='space';			// Frame where sub levels appear
	var DocTargetFrame='space';			// Frame where target documents appear
	var TargetLoc='';				// span id for relative positioning
	var HideTop=0;				// Hide first level when loading new document 1 or 0
	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0
	var ShowArrow=0;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=['img/tri.gif',5,10,'img/tridown.gif',10,5,'img/trileft.gif',5,10];	// Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}


// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"

	Menu1=new Array("Home","index.htm","",0,30,130);

	Menu2=new Array("Bags & Tooling Sets                   for Isostatic Pressing","isostat.htm","",3,50);
 		Menu2_1=new Array("Natural Rubber","rubberset.htm","",0,25,105);
//			Menu2_1_1=new Array("Pressing Bags","cones.htm","",0,25,100);
//			Menu2_1_2=new Array("Top Closures","rubtopclos.htm","",0);
//			Menu2_1_3=new Array("Sealing Rings","rubsealring.htm","",0);
//			Menu2_1_4=new Array("Containers","rubcont.htm","",0);
 		Menu2_2=new Array("Polyurethane","urethaneset.htm","",0);
//			Menu2_2_1=new Array("Standard Sizes","stdureth.htm","",0,25,155);
//			Menu2_2_2=new Array("Plug Options","urethplug.htm","",0);
      		Menu2_3=new Array("Experimental Kit","expkit.htm","",0);

	Menu3=new Array("Veterinary, Medical,              & Specialty Products","other.htm","",0,50);

	Menu4=new Array("Capabilities & Facilities","capandfac.htm","",0);


	Menu5=new Array("Reference Material","","",4);
 		Menu5_1=new Array("Elastomer Characteristics","elast.htm","",0,25,140);
		Menu5_2=new Array("Comparison Chart","matcomp.htm","",0);
 		Menu5_3=new Array("About Durometer","durometer.htm","",0);		
 		Menu5_4=new Array("Terminology","terms.htm","",0);

	Menu6=new Array("Pictures","pictures.htm","",0);
//	Menu6=new Array("The Trexler Times","times.pdf","",0);

	Menu7=new Array("Contact Us","contact.htm","",0); 
	
	Menu8=new Array("","","",0);	
	
	Menu9=new Array("Printer-Friendly","javascript:pdf();","",0);
	
	Menu10=new Array("","","",0)
	
	Menu11=new Array(pageid,"","",0)

function pdf() {
page_url=document.location.href;
//page_url="http://www.trexlerrubber.com/abc.html";

if (page_url.lastIndexOf(".com")==page_url.length-4) {   //ends in .com
  new_page="index.pdf" }
else if (page_url.lastIndexOf(".com")==page_url.length-5) {   //ends in .com/
  new_page="index.pdf" }
else {                                                   // have to parse out the page name
  slloc=page_url.lastIndexOf("/");
  page_name=page_url.substring(slloc+1,page_url.length);
  slloc=page_name.indexOf(".");
  new_page=page_name.substring(0,slloc)+".pdf";
  }
page_url="http://www.trexlerrubber.com/pdf/"+new_page;

//alert(page_url);
document.location.href=page_url;
}


	
function lclayer(layer,x,y) {
if (document.layers) { 
  document.layers[layer].left = x;
  document.layers[layer].top = y;  
} else {
  document.getElementById(layer).style.left = x+"px";
  document.getElementById(layer).style.top = y+"px";
  }
}

function em(who,linkclass,spanclass) {
str=""; ref="ma";
ref+="il";
if (who == 'cs') {str="&#67;&#x75;&#115;&#116;&#111;&#x6d;&#101;&#114;&#83;&#101;&#x72;&#x76;&#x69;&#99;&#101;&#x40;&#x54;&#x72;&#x65;&#120;&#108;&#x65;&#114;&#x52;&#x75;&#98;&#x62;&#x65;&#114;&#x2e;&#x43;&#x6f;&#x6d;"}
if (who == 'po') {str="&#112;&#x68;&#111;&#x73;&#116;&#101;&#114;&#64;&#116;&#114;&#x65;&#x78;&#108;&#x65;&#114;&#114;&#x75;&#98;&#x62;&#101;&#114;&#x2e;&#99;&#111;&#109;"}
if (who == 'dw') {str="&#100;&#119;&#104;&#105;&#x74;&#x65;&#x40;&#116;&#114;&#x65;&#120;&#x6c;&#x65;&#x72;&#114;&#x75;&#x62;&#x62;&#101;&#114;&#46;&#x63;&#111;&#x6d;"}
if (who == 'js') {str="&#x6a;&#115;&#x63;&#104;&#x61;&#x66;&#x65;&#x72;&#x40;&#x74;&#114;&#x65;&#120;&#108;&#101;&#x72;&#x72;&#x75;&#98;&#98;&#x65;&#x72;&#46;&#x63;&#x6f;&#x6d;"}
ref+="to:";
document.write('<a class="'+linkclass+'" href="'+ref+str+'"><span class="'+spanclass+'">'+str+'</span></a>'); 
}	
