// JavaScript Document
var OP5, NN4;
var dt = document;
OP5 = false;
NN4 = false;
if(navigator.appName == "Netscape"){
	NN4 = true;
}
if(navigator.appName == "Opera"){
	OP5 = true;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function createSubMenu(sid){
	var tblsub, padding;
	
	padding = "10";
	
	switch(sid)
	{
		
		case "portfolio1sub":{

			tblsub = "<table id='" + sid + "' cellspacing='0' cellpadding='0' border='1' style='position:absolute; width:106px;visibility:hidden;' class='dyncell1'>";
			tblsub = tblsub + "<tr align='center'>";
			tblsub = tblsub + "<td valign='middle' align='center' class='dyncell2' style='color:#000000'>";
			tblsub = tblsub + "<a href='machineries_product.aspx' align='center'>";
tblsub = tblsub + "&nbsp;Spare Parts&nbsp;";
			tblsub = tblsub + "</a>";
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			
			tblsub = tblsub + "<tr align='center'>";
			tblsub = tblsub + "<td valign='middle' align='center' class='dyncell2'>";
			tblsub = tblsub + "<a href='machineries_instruments.aspx' align='center'>";
			tblsub = tblsub + "&nbsp;Instruments &amp; Supply &nbsp;";
			tblsub = tblsub + "</a>";
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";

			tblsub = tblsub + "<tr align='center'>";	
			tblsub = tblsub + "<td valign='middle' class='dyncell2'>";
			tblsub = tblsub + "<a href='machineries_Cutting_Tools.aspx' align='center'>";
			tblsub = tblsub + "&nbsp;Knives &amp; Cutting Tools&nbsp;";
			tblsub = tblsub + "</a>";
			tblsub = tblsub + "</td>";	
			tblsub = tblsub + "</tr>";
			
			break;
		}
		
		
		case "lingo1sub":{

			tblsub = "<table id='" + sid + "' cellspacing='0' cellpadding='0' border='1' style='position:relative; width:156px;' class='dyncell1'>";
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td class='bodytext2'>";
			tblsub = tblsub + "<div style='width:146px; margin-left:5px;'>Ligno-Scanner D: non-invasive moisture meter for wood</div>";	
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td class='bodytext'>";
			tblsub = tblsub + "<div style='width:146px; margin-top:5px;'>&nbsp;&bull; Measuring Depth: 3/4' (20mm) - &nbsp;&nbsp;&nbsp;for boards at least 3/4' thick. &nbsp;&nbsp;&nbsp;Mostly used by cabinetmakers, &nbsp;&nbsp;&nbsp;furniture manufacturers and floor &nbsp;&nbsp;&nbsp;installers.</div>";
			tblsub = tblsub + "<div style='width146px;'>&nbsp;&bull; Species Corrections: 71 Settings &nbsp;&nbsp;&nbsp;or Specific Gravity Settings 0.3 - &nbsp;&nbsp;&nbsp;1.0.</div>";
			tblsub = tblsub + "&nbsp;&bull; Reference scale for readings of &nbsp;&nbsp;&nbsp;laminates and other composites.";
			tblsub = tblsub + "</td>";	
			tblsub = tblsub + "</tr>";
			break;
		}
		case "lingo2sub":{

			tblsub = "<table id='" + sid + "' cellspacing='0' cellpadding='0' border='1' style='position:relative; width:156px;' class='dyncell1'>";
			tblsub = tblsub + "<tr><td class='bodytext2'>";
			tblsub = tblsub + "<div style='width:146px; margin-left:5px;'><br>Mini-Ligno:  for wood</div>";	
			tblsub = tblsub + "<br></td></tr><tr><td class='bodytext'>";
			tblsub = tblsub + "<div style='width:146px; margin-top:5px;'>&nbsp;&bull; Wood Moisture Range: 6-20%</div>";
			tblsub = tblsub + "<div style='width:146px;'>&nbsp;&bull; Species Corrections: 2 Wood &nbsp;&nbsp;&nbsp;Groups</div>";
			tblsub = tblsub + "&nbsp;&bull; Resolution: 2%";
			tblsub = tblsub + "<br>";
			tblsub = tblsub + "&nbsp;&bull; with built-in pins";
			tblsub = tblsub + "</td></tr>";

			break;
		}

case "lingo3sub":{

			tblsub = "<table id='" + sid + "' cellspacing='0' cellpadding='0' border='1' style='position:relative; width:156px;' class='dyncell1'>";
			tblsub = tblsub + "<tr><td class='bodytext2'>";
			tblsub = tblsub + "<br><div style='width:146px; margin-left:5px;'>Mini-Ligno E/D: for wood</div>";	
			tblsub = tblsub + "<br></td></tr><tr><td class='bodytext'>";
			tblsub = tblsub + "<div style='width:146px; margin-top:5px;'>&nbsp;&bull; Wood Moisture Range: 6-45%</div>";
			tblsub = tblsub + "&nbsp;&bull; Species Corrections: 2 Wood &nbsp;&nbsp;&nbsp;Groups";
						tblsub = tblsub + "<br>";
			tblsub = tblsub + "&nbsp;&bull; Resolution: 0.1% for values &nbsp;&nbsp;&nbsp;below 10%, 1% steps above &nbsp;&nbsp;&nbsp;10%";
			tblsub = tblsub + "<br>";
			tblsub = tblsub + "&nbsp;&bull; with built-in pins";
			tblsub = tblsub + "</td></tr>";

			break;
		}

case "lingo4sub":{

			tblsub = "<table id='" + sid + "' cellspacing='0' cellpadding='0' border='1' style='position:relative; width:156px;' class='dyncell1'>";
			tblsub = tblsub + "<tr><td class='bodytext2'>";
			tblsub = tblsub + "<br><div style='width:146px; margin-left:5px;'>Lignometer KF and KC</div>";	
			tblsub = tblsub + "<br></td></tr><tr><td class='bodytext'>";
			tblsub = tblsub + "<div style='width:146px; margin-top:5px;'>&nbsp;&bull; Over 125 Individualized Species &nbsp;&nbsp;&nbsp;Corrections</div>";
			tblsub = tblsub + "&nbsp;&bull; Wood moisture range: 2-99%";
			tblsub = tblsub + "<br>";
			tblsub = tblsub + "&nbsp;&bull; Wide scale for sheetrock and &nbsp;&nbsp;&nbsp;gypsum";
			tblsub = tblsub + "<br>";
			tblsub = tblsub + "&nbsp;&bull; Reference Scale for other non-&nbsp;&nbsp;&nbsp;wood materials <br>";
			tblsub = tblsub + "&nbsp;&bull; Resolution: 0.1% for entire &nbsp;&nbsp;&nbsp;measuring range ";
			tblsub = tblsub + "</br>"
			tblsub = tblsub + "&nbsp;&bull; Temp. Corrections<br>&nbsp;&nbsp;&nbsp;&nbsp;for KF: 0 to 210°F";
			tblsub = tblsub + "<br>&nbsp;&nbsp;&nbsp;&nbsp;for KC: -15 to 95°C"
			tblsub = tblsub + "</td></tr>"

			break;
		}
		
		
		
		
	}
	tblsub = tblsub + "</table>";
	//alert(tblsub);
	return tblsub;
}

function fixMenu(show){
	var tbl, submenu, mainmenu;
	var padding;
	padding = "0";
	switch(show)
	{
		

		
		case "MainMenu3":{
			submenu = "portfolio1sub";
			mainmenu = "tblnav5";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td align='left' valign='top' class='begin' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			//tbl = tbl + "<a href='#'>";
			//tbl = tbl + "<img src='images/transparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "<a onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image3','','images/pic_02_04.jpg',1)\">";
			
			tbl = tbl + "<img src='images/pic_04.jpg' name='Image3' border='0' id='Image3'>";
			
			tbl = tbl + "</a>";
			tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		
				case "MainMenu3A":{
			submenu = "portfolio1sub";
			mainmenu = "tblnav5";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td align='left' valign='top' class='begin' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			//tbl = tbl + "<a href='#'>";
			//tbl = tbl + "<img src='images/transparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "<a onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image3','','images/pic_02_04.jpg',1)\">";
			
			tbl = tbl + "<img src='images/pic_02_04.jpg' name='Image3' border='0' id='Image3'>";
			
			tbl = tbl + "</a>";
			tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		
			case "lingo1":{
			submenu = "lingo1sub";
			mainmenu = "lingo";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td>";
			//tbl = tbl + "<td align='left' valign='top' class='begin' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			//tbl = tbl + "<a onMouseOut=\"MM_swapImgRestore()\">";		
			tbl = tbl + "<img src='images/ligno1.jpg' alt='Lingo' name='Image11' border='1' id='Image11'>";
			//tbl = tbl + "</a>";
			tbl = tbl + "<br>"; 
			tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
					case "lingo2":{
			submenu = "lingo2sub";
			mainmenu = "lingo";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td>";
			//tbl = tbl + "<td align='left' valign='top' class='begin' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			//tbl = tbl + "<a onMouseOut=\"MM_swapImgRestore()\">";		
			tbl = tbl + "<img src='images/ligno2.jpg' name='Image12' border='1' id='Image12' alt='Lingo'>";
			//tbl = tbl + "</a>";
			tbl = tbl + "<br>"; 
			tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
					case "lingo3":{
			submenu = "lingo3sub";
			mainmenu = "lingo";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td>";
			//tbl = tbl + "<td align='left' valign='top' class='begin' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			//tbl = tbl + "<a onMouseOut=\"MM_swapImgRestore()\">";		
			tbl = tbl + "<img src='images/ligno3.jpg' name='Image13' border='1' id='Image13' alt='Lingo'>";
			//tbl = tbl + "</a>";
			tbl = tbl + "<br>"; 
			tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
						case "lingo4":{
			submenu = "lingo4sub";
			mainmenu = "lingo";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			tbl = tbl + "<td>";
		//	tbl = tbl + "<td align='left' valign='top' class='begin' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			//tbl = tbl + "<a onMouseOut=\"MM_swapImgRestore()\">";		
			tbl = tbl + "<img src='images/ligno4.jpg' name='Image14' border='1' id='Image14' alt='Lingo'>";
			//tbl = tbl + "</a>";
			tbl = tbl + "<br>"; 
			tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
}
	dt.write(tbl);
	//alert(tbl);
}