 /*
  _RScore.js [CORE Functions & Variables]

  --------------------
  Begin CORE Functions
  --------------------
*/
// CORE Functions
/*
function copyr(){if(document.all)document.body.onmousedown=new Function("if(event.button==2||event.button==3)alert('(Copyright) ©2000-2003 Mentor Dynamics, Ltd.')")};copyr();if(!document.layers&&!document.all)event="test";
function showtip(current,e,text){if(document.all){thetitle=text.split('<br>');if(thetitle.length>1){thetitles='';for(i=0;i<thetitle.length;i++);thetitles+=thetitle[i];current.title=thetitles}else current.title=text}else if (document.layers){document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>');document.tooltip.document.close();document.tooltip.left=e.pageX+5;document.tooltip.top=e.pageY+5;document.tooltip.visibility="show"}};
function hidetip(){if(document.layers)document.tooltip.visibility="hidden"};
*/
function pView(page){OpenWin=this.open(page,"CtrlWindow","toolbar=no,menubar=yes,location=no,scrollbars=yes,status=no,resizable=yes,width=350,height=440,left=10,top=10");}

{if(window!=top)top.location.href=location.href};

ie = (document.all)? true:false;
mz = (window.innerWidth)? true:false;

function subExp(action,id) {
	if(ie){
	   (id).filters[0].enabled = true;(id).filters[0].Apply();
	if (action=='on') {(id).style.visibility="visible";}
	if (action=='off') {(id).style.visibility="hidden";}(id).filters[0].Play();}
	
	else if(mz){
	if (action=='on') {(id).style.visibility="visible";}
	if (action=='off') {(id).style.visibility="hidden";}}
	}

/*
   -------------------
   Site Navigation Map
   -------------------
*/

// Set defaults for style
Total_width			="600";
Total_height		="290";

Pallete_bgColor		="#003399";
Pallete_fontColor	="white";
Pallete_fontFamily	="arial,sans";
Pallete_fontSize	="small";
Pallete_fontStyle	="normal";
Pallete_fontWeight	="bold";

Closebar_barHeight	="16";
Closebar_bgColor	="000000";
Closebar_fontColor	="white";
Closebar_fontFamily	="arial,sans";
Closebar_fontSize	="smaller";
Closebar_fontStyle	="normal";
Closebar_fontWeight	="bold";

// Pallete Preparation
snmPoplist = new Array( "#",	"<span style='color:yellow;'>MENTORDYNAMICS.com</span>",
			"_CTmdl.html",		"Welcome",
			"_CTcorpo.html",	"About MDL",
			"_CTwhy.html",		"Why Polymer",
			"_CTtech.html",		"Technology Advantages",
			"_XLline.html",		"Line Sheet",
			"#",	"",
			"_CTindus.html",	"<span style='color:yellow;'>INDUSTRIAL APPLICATIONS</span>",
			"_CThopkit.html",	"DIY Hopper Lining Kit",
			"_CTpower.html",	"Coal-Fired Power Plants",
			"_CTresource.html",	"Resource Energy Plants",
			"_CTcemen.html",	"Cement Plants",
			"_CTclay.html",		"Clay Plants",
			"_CTgypsu.html",	"Gypsum Plants",
			"_CTaggreg.html",	"Aggregate Plants",
			"_CTmining.html",	"Mining",
			"_CTfoundry.html",	"Casting Plants",
			"_CTrailcar.html",	"Railcar Lining",
			"_CTmarin.html",	"<span style='color:yellow;'>MARINE APPLICATIONS</span>",
			"_CTmarin.html",	"Bulk Material Ship Liners",
			"_CTmarin.html",	"Barge Liners",
			"_CTdockfen.html",	"Dock Fender Liners",
			"#",	"",
			"#",	"",
			"_CTonr.html",		"<span style='color:yellow;'>ON ROAD DUMP LINERS</span>",
			"_CTHShield.html",	"HeatShield",
			"_CTonra1.html",	"Dyna-Flo® Asphalt Grade Liners",
			"_CTonrdf.html",	"Dyna-Flo® BlackJack Liners",
			"_CTonrfp1.html",	"FloPro UtilityGrade™ Liners",
			"#",	"",
			"#",	"",
			"_CTtarps.html",	"<span style='color:yellow;'>TRUCK TARPING SYSTEMS</span>",
			"_CTtarcs.html",	"Conestoga®",
			"_CTtarcg.html",	"Crank-N-Go II®",
			"_CTtarec.html",	"Easy Cover®",
			"_CTtarps.html",	"Other Systems",
			"#",	"",
			"_CTofr.html",		"<span style='color:yellow;'>OFF-ROAD DUMP LINERS</span>",
			"#",	"",
			"#",	"",
			"_CTconst.html",	"<span style='color:yellow;'>CONSTRUCTION EQUIPMENT</span>",
			"_CTdozer.html",	"Dozer Blade Liners",
			"_CTdozer.html",	"Loader Bucket Liners",
			"#",	"",
			"#",	"",
			"_CTinstal.html",	"<span style='color:yellow;'>SERVICES</span>",
			"_CTinstal.html",	"Installation",
			"_CTfabri.html",	"Fabrication",
			"_CTmater.html",	"Material",
			"_CTdfmat.html",	"Dyna-Flo®",
			"_CTdwmat.html",	"DynaWear",
			"_CTceramic.html",	"Ceramic",
			"_CTBonding.html",	"DynaBon",
			"_CTdtmat.html",	"DynaThane",
		//	"quicksilver.html",	"QuickSilver",
			"_CTprin1.html",	"<span style='color:yellow;'>LITERATURE</span>",
			"_CTprin1.html",	"Print Literature",
			"_CTreque.html",	"Request Info",
			"#",	"",
			"#",	"",
			"_CTemail.html",	"<span style='color:yellow;'>CONTACT</span>",
			"_CTlocat.html",	"Office Locations",
			"_CTemail.html",	"Send E-Mail"
			);

function populateIt(){
	for(loop=0,bump=17; loop<snmPoplist.length; loop=loop+2, bump--)
	{document.write('<a href="'+snmPoplist[loop]+'" class=smap>'+snmPoplist[loop+1]+'</a><br />');
	if (bump==0){document.write('</td><td valign=top>');bump=18;}
	}}

document.write(
	 '<div id="snmWrapper">'
	+'<div id="palleteBackground" style="filter:Alpha(Opacity=80); -moz-opacity:0.8; opacity:0.8;"></div>'
	+'<div id="palleteClosebar" style="filter:Alpha(Opacity=80); -moz-opacity:0.8; opacity:0.8; text-align:right;" onClick="javascript:snmActivate();"><span style="float:left;">Site Navigation Map</span> ( Click bar to Close )</i></div>'
	+'<div id="palletePopulation"><table border=0 width=100%><tr><td valign=top width=150px><script language="JavaScript">populateIt();</script></td></tr></table></div>'
	+'</div>'
	);


// Apply style
snmPlocate	=(-Total_height);	// Calculate location of populated area from top
snmPheight	=(Total_height - Closebar_barHeight);	// Calculate height of populated area

if (mz){snmWlocate=(((window.innerWidth-Total_width)/2)-8); // [-n] for scrollbar compensation
		 snm=document.getElementById("snmWrapper");
		 snm.style.left	= snmWlocate;
		}
else {snmWlocate=(((document.body.offsetWidth-Total_width)/2)-8); // [-n] for scrollbar compensation
		snm=document.getElementById("snmWrapper");
		snm.style.left	= snmWlocate;
		//	onresize = forceReload;
		//	memBank = document.body.offsetWidth;
		//	function forceReload() {if (document.body.offsetWidth != memBank) {location.reload();} }
		// recenter Site Navigation Map on window resize
		};

snm=document.getElementById("snmWrapper");
  snm.style.color	= Pallete_fontColor;
  snm.style.position	= "absolute";
  snm.style.width	= Total_width+"px";
  snm.style.height	= Total_height+"px";
  snm.style.top		= -Total_height+"px";
  snm.style.zIndex	= "4";
  snm.style.visibility	= "hidden";	// required for ie compatibility on form pages like email and req info

pBack=document.getElementById("palleteBackground");
  pBack.style.backgroundColor	= Pallete_bgColor;
  pBack.style.height	= snmPheight+"px";
  pBack.style.position	= "relative";
  pBack.style.width	= "100%";
  pBack.style.zIndex	= "5";

pPopu=document.getElementById("palletePopulation");
  pPopu.style.color	= Pallete_fontColor;
  pPopu.style.fontFamily= Pallete_fontFamily;
  pPopu.style.fontSize	= Pallete_fontSize;
  pPopu.style.fontStyle	= Pallete_fontStyle;
  pPopu.style.fontWeight= Pallete_fontWeight;
  pPopu.style.height	= snmPheight+"px";
  pPopu.style.position	= "relative";
  pPopu.style.textAlign	= "left";
  pPopu.style.top	= snmPlocate+"px";
  pPopu.style.width	= "100%";
  pPopu.style.zIndex	= "6";

pClos=document.getElementById("palleteClosebar");
  pClos.style.cursor	= "hand";
  pClos.style.backgroundColor	= Closebar_bgColor;
  pClos.style.fontFamily= Closebar_fontFamily;
  pClos.style.fontSize	= Closebar_fontSize;
  pClos.style.fontStyle	= Closebar_fontStyle;
  pClos.style.fontWeight= Closebar_fontWeight;
  pClos.style.height	= Closebar_barHeight+"px";
  pClos.style.position	= "relative";
  pClos.style.width	= "100%";
  pClos.style.zIndex	= "5";

// Define Actions
function snmActivate(){
  snm=document.getElementById("snmWrapper");
  snmTrans=parseInt(snm.style.top);
	if (snmTrans!="0") {snm.style.top="0px";snm.style.visibility="visible";} // visibility required for ie compatibility
	else {snm.style.top=(-Total_height)+"px";snm.style.visibility="hidden";};
 }


/*
   -----------------------------------------
   End CORE Functions | Begin CORE Variables
   -----------------------------------------
*/
// DO NOT CHANGE ORDER OF SECTIONS!
// ********************************
// CORE Variables - SECTION 1
	var upDate	=(document.lastModified);
	var botB	="<hr color=#003399>";
	var botC	="<br><br><br><br><br><br><center><blockquote><span class=copy align=center style='width:360px;'><div class=siteM>INFO</div><hr width=70% color=#dddddd><a class=copy href=_MXprvcy.html>Read our Privacy Policy</a><br /><br />Copyright © 2000-2009 Mentor Dynamics, Ltd.";
	var botD	='<br /><!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/"><img alt="Creative Commons License" style="border-width: 0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>This work is licensed under a<br /><a class=copy rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/">Creative Commons Attribution-NonCommercial-NoDerivs 2.5  License</a>.<!--/Creative Commons License--><br /><br />'
	var botE	="";
	var botF	=", ";
	var botG	=" are trademarks and registered trademarks of Mentor Dynamics, Ltd.<br /><br />";
	var botH	=" are registered trademarks of Quadrant Engineering Plastic Products.<br /><br />";
	var botJ	="Some photos and text which are used with permission are copyright of Bailey-Parks Urethane, Inc. and Reparex Fabricated Systems, Inc.</blockquote>";
	var botK	="";
	var botL	="</blockquote>";
	var botTOP	=(botC+botD+botE);
	var botMIN	=(botB+botC+botD+botE+botL);
	var botEND	=(botG+botJ+botK);
	var tagSEND	="<p class=copy align=center>Mentor Dynamics, Ltd., cannot be held responsible for inaccurate information or content on this website, which is subject to change / correction at any time and without notice. For problems or questions regarding this <u>website</u>, please <a class=copy href=mailto:we"+"bma"+"ste"+"r@MentorDynamics.com>email us at this address.</a>";
	var pgEND	="<br><br><br><br><br><br></p></p></center></tr></td></tr></table>";
	var pgENDup	="<br><p class=copy align=center>This page was last modified on "+upDate+"<br><br><br><br><br><br></span><table align=center border=0 cellpadding=0 cellspacing=0><tr><tr></tr></tr></table></tr></td></tr></table>";
	var opX		="<table align=center border=0 cellpadding=0 cellspacing=0 width=100%><tr><td><a name=top></a><FORM name=quik>";
	var opA		="<table align=center border=0 cellpadding=0 cellspacing=0 width=100%><tr><td><a name=top></a><FORM name=quik>";
// CORE Variables - SECTION 2
// Site Map (Pull-Down Menu)
	var menu	=('<a class="nav" href="javascript:snmActivate();">Site Navigation Map</a></td></tr></table><hr color=#003399></FORM>');
// CORE Variables - SECTION 3
	var opB	="<table align=center border=0 cellpadding=0 cellspacing=0 width=100%><tr><td><a name=top></a><table align=center border=0 cellpadding=0 cellspacing=0 width=100%><tr><td align=left valign=bottom height=65><a href=http://www.MentorDynamics.com><img src=images/mdllogo.gif width=241 height=63 border=0></a></td><td class=title>";
	var opC	=("&nbsp;</td></tr></table><hr color=#003399><table align=center border=0 cellpadding=0 cellspacing=0 width=100%><tr><td class=nett width=25% align=center><a class=nav href=http://www.MentorDynamics.com>Home Page</a></td><td class=nett width=25% align=center><a class=nav href=_CTinstal.html>Services</a></td><td class=nett width=50% align=center>"+menu);
	var opD	=("&nbsp;</td></tr></table><hr color=#003399><table align=center border=0 cellpadding=0 cellspacing=0 width=100%><tr><td class=nett width=40% align=center><a class=nav href=_CTinstal.html>Services</a></td><td class=nett width=60% align=center>"+menu);
	var opE	=("&nbsp;</td></tr></table><hr color=#003399><br>");
/*
   --------------------------------
   End CORE Variables | End of File
   --------------------------------
*/

