//Javascript required to view the Page<!--

/*
Please Credit Author if you use this script.
Written by Chris Coleman
chris@excitron.com
http://www.excitron.com/
*/

//redefine variables
if (modelloc!=''){//3D model text using var "modelloc" written in middle
	var modelloc='<h4>3D Model</h4><hr align="left" width="910px"><br /><div style="float:left;width:450px;text-align:center;">				'+modelloc+'</div><div style="left:10px;position:relative;width:450px;text-indent:10px;">				<p>You may need to install add-ons to view this product in 3D on this page, or you can download the part file from the link below the image.</p><p> 3D Model best viewed in <strong>Internet Explorer</strong>.</p>				<p>How to change the view:</p>				<ul>				<li><strong>Rotate</strong>: <u>Left Click</u> the model and drag in any direction</li>				<li><strong>Zoom</strong>: <u>Right Click</u> the model and drag in a vertical direction</li>				<li><strong>Pan</strong>: <u>Left &amp; Right Click</u> the model and drag in any direction</li>				</ul>			</div>';
}

//Begin Buttons
document.write('<table name="buttons" border="0">');
document.write('<tr>');
document.write('<hr />');
document.write('<td valign="top"><form class="TableTitles"><input class="TableTitles" type="button" onClick="javascript:display(0);" value="Overview"></form></td>')

if(manualtrue==1){document.write('<td valign="top"><form class="TableTitles"><input class="TableTitles" type="button" onClick="parent.location.href=\'/webdocs/'+manualloc+'\'" value="Manual"></form></td>');}

if(techspecstrue==1){document.write('<td valign="top"><form class="TableTitles"><input class="TableTitles" type="button" onClick="javascript:display(1);" value="Tech Specs"></form></td>');}

if(dwgtrue==1){document.write('<td valign="top"><form class="TableTitles"><input class="TableTitles" type="button" onClick="parent.location.href=\'/webdocs/'+dwgloc+'\'" value="Drawing"></form></td>');}

if(modeltrue==1){document.write('<td valign="top"><form class="TableTitles"><input class="TableTitles" type="button" onClick="javascript:display(2);" value="3D Model"></form><span align="center" style="background-color:#FFFFFF; text-align:center; font-style:italic; color:#FF0000; font-weight: bolder; font-size: 10pt; text-decoration:underline">New!</span></td>');}

if(apptrue==2){document.write('<td valign="top"><form class="TableTitles"><input class="TableTitles" type="button" onClick="parent.location.href=\'/webdocs/'+apploc+'\'" value="Appnotes"></form></td>');}

if(apptrue==1){document.write('<td valign="top"><form class="TableTitles"><input class="TableTitles" type="button" onClick="javascript:display(3);" value="Appnotes"></form></td>');}

if(movietrue==1){document.write('<td valign="top"><form class="TableTitles"><input class="TableTitles" type="button" onClick="parent.location.href=\''+vidloc+'\'" value="Video"></form></td>');}//youtube source

document.write('</tr>');
document.write('</table>');

//div section where text gets displayed
document.write('<div id="menucontent"></div><br />');

//-->