// Set to "1" to display msgBox or "0" to hide
var messageBox=1
var msgHead="Upcoming Website Update... Finally!"
var msgBody="We are months behind on updating but we finally have the inventory in Oklahoma purged and recounted. We are now in the process of redisigning the webpages, so stay tuned for a new look with more up-to-date information!<br><br>" +

"Just a reminder... the prices on all of the parts pages are regular NISSAN retail prices. These are NOT our prices. Most all of our prices are <b>70-90% OFF!!</b> Use the convenient link next to each part to email us for quotes or simply call us at 918-753-2424. <br><br>Thank you.... Norman"

// var msgHead="... SUMMER VACATION TIME!! ..."
// var msgBody="<b>It's just too hot here so I'm going on a TWO-week summer vacation!!</b>  The dates will be Thursday, July 24, till Thursday, Aug 7. <br><br>THE MAIN THING AFFECTED will be shipping from Oklahoma. We will still sell from both warehouses and answer emails during this time but ship only from our Wisconsin warehouse. So, Oklahoma shipping will NOT happen until August 11 at the earliest.<br><br><b>Just a reminder...</b> the prices on all of the parts pages are regular NISSAN retail prices. These are NOT our prices. Most all of our prices are <b>70-90% OFF!!</b> Use the convenient link next to each part to email us for quotes or simply call us at 918-753-2424. <br><br>Thank you.... Norman"


if (messageBox==1){
	document.write("<div id='imgPicc' style='position:absolute;visibility:visible;z-index:100;filter: progid:DXImageTransform.Microsoft.Shadow(color=#105010,direction=135)'>");
//	document.write("<div id='imgPicc' style='position:absolute;visibility:visible;z-index:100;filter: progid:DXImageTransform.Microsoft.Shadow(color=#105010,direction=135)' onmouseover='kill()'>");
	document.write("<table bgcolor='#F8F8F8' width='500' cellspacing='0' cellpadding='0' border='0'>");
	document.write("<tr><td width='10'><img src='corTL.jpg' width=10 height=64 border=0></td><td background='edgeT.jpg' valign='middle'><img align=right src=x.gif border='0' onmouseover='kill()'><font size=+1 color=Red><div align='center'><b>" + msgHead + "</b></div></font></td><td width='12'><img src='corTR.jpg' width=12 height=64 border=0></td></tr>");
	document.write("<tr><td background='edgeL.jpg'></td><td class='regFont10'><br>" + msgBody + "<br><br><div align='center'><a href='#' onmouseover='kill()'>Close Message Box</a></div></td><td background='edgeR.jpg'></td></tr>");
	document.write("<tr><td><img src='corBL.jpg' width=10 height=17 border=0></td><td background='edgeB.jpg'></td><td><img src='corBR.jpg' width=12 height=17 border=0></td></tr>");
	document.write("</table>");
	document.write("</div>");


function FloatTop()
{
	var startX = 100;
	startY = 97;
	var nsc = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;

	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x;this.style.top=y;};
		el.x = startX;
		el.y = startY;
		return el;
	}

	window.stayTopLeft=function()
	{
		var pY = nsc ? pageYOffset : document.body.scrollTop;
		ftlObj.sP(ftlObj.x, ftlObj.y);
	}

	ftlObj = ml("imgPicc");
	stayTopLeft();
}

FloatTop();



function kill(){
//  	msgobj.style.visibility="hidden"
	imgPicobj=document.getElementById? document.getElementById("imgPicc") : imgPic
	imgPicobj.style.visibility="hidden"
	}

}




document.write('<div id="ie5menu" class="skin0" onMouseover="highlightie5(event)" onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" display:none>');
document.write('<table border="0" cellpadding="0" cellspacing="0">');
document.write('<tr><td colspan="2">');

document.write('<table border="0" width="100%" cellpadding="0" cellspacing="0">');
document.write('<tr><td colspan="3" align="center" bgcolor="#242424"><font color="White"><b>&#151; NAVIGATION &#151;</b></font></td></tr>');
document.write('<tr><td>');
document.write('<div class="menuitems" url="index.htm">Home</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="firstvisit.htm">General Info</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="firstvisit.htm#pricing">Pricing Scheme</div>   ');
document.write('</td></tr><tr><td>');
document.write('<div class="menuitems" url="purchase.htm">How to Purchase</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="partslist.htm">Entire Parts List</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="contact.htm">Contact Info</div>   ');
document.write('</td></tr></table>');
document.write('</td></tr>');

document.write('<tr><td colspan="2" bgcolor="#242424" align="right"><font color="White"><a href="#" onMouseover="swapMenu()"><img src="catmenu.gif" border=0 align="right"></a><b>&#151; PICK A MODEL &#151;</b></td></tr><tr><td>');
document.write('<div class="menuitems" url="1200patrol.htm">1200 Patrol (1971-1973)</div>   ');
document.write('<div class="menuitems" url="200sx.htm">200SX (1978-1988)</div>   ');
document.write('<div class="menuitems" url="210.htm">210 (1979-1982)</div>   ');
document.write('<div class="menuitems" url="240sx.htm">240SX (1989-1994)</div>   ');
document.write('<div class="menuitems" url="240Z260Z280Z.htm">240Z, 260Z, 280Z (1970-1978)</div>   ');
document.write('<div class="menuitems" url="280zx.htm">280ZX (1979-1983)</div>   ');
document.write('<div class="menuitems" url="300zx.htm">300ZX (Z31: 1984-1989)</div>   ');
document.write('<div class="menuitems" url="300zx32.htm">300ZX (Z32: 1990-1996)</div>   ');
document.write('<div class="menuitems" url="310.htm">310 (1978-1982)</div>   ');
document.write('<div class="menuitems" url="130014001600.htm">510 (Earlier): 1300, 1400, 1600 (1968-1973)</div>   ');
document.write('<div class="menuitems" url="510.htm">510 (Later: 1979-1981)</div>   ');
document.write('<div class="menuitems" url="520pickup.htm">520, 521 Pickup (1965-1972)</div>   ');
document.write('<div class="menuitems" url="610.htm">610 Sedan & Wagon (1973-1977)</div>   ');
document.write('<div class="menuitems" url="620pickup.htm">620 Pickup (1973-1979)</div>   ');
document.write('<div class="menuitems" url="710.htm">710 Sedan & Wagon (1974-1977)</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="720truck.htm">720 Truck (1980-1985)</div>   ');
document.write('<div class="menuitems" url="810.htm">810 (1978-1980)</div>   ');
document.write('<div class="menuitems" url="axxess.htm">Axxess (1990)</div>   ');
document.write('<div class="menuitems" url="b210.htm">B210 (1974-1978)</div>   ');
document.write('<div class="menuitems" url="f10.htm">F10 (1976-1978)</div>   ');
document.write('<div class="menuitems" url="maxima.htm">Maxima (1981-1994)</div>   ');
document.write('<div class="menuitems" url="minivan.htm">Mini-Van (1987-1989)</div>   ');
document.write('<div class="menuitems" url="pathfinder.htm">Pathfinder (1987-1995)</div>   ');
document.write('<div class="menuitems" url="patrol.htm">Patrol 60 (1961-1969)</div>   ');
document.write('<div class="menuitems" url="pulsar.htm">Pulsar (1982-1990)</div>   ');
document.write('<div class="menuitems" url="sentra.htm">Sentra (1982-1994)</div>   ');
document.write('<div class="menuitems" url="stanza.htm">Stanza (1982-1992)</div>   ');
document.write('<div class="menuitems" url="stanzawagon.htm">Stanza Wagon (1986-1988)</div>   ');
document.write('<div class="menuitems" url="truck.htm">Truck (1986-1994)</div>   ');
document.write('<div class="menuitems" url="unknown.htm">UNCATEGORIZED ITEMS</div>   ');
document.write('</td></tr>');

document.write('<tr><td colspan="2" align="center" bgcolor="#242424"><font color="White"><b>&#151; CONTACT LINKS &#151;</b></td></tr><tr><td align="center">');
document.write('<div class="menuitems" url="mailto:oem@oem-surplus.com?subject=Parts Question...">Parts Question...</div>   ');
document.write('</td><td align="center">');
document.write('<div class="menuitems" url="mailto:surplus@oem-surplus.com?subject=Hey Norm! About this Nissan stuff...">Email Norman</div>   ');
document.write('</td></tr>');

document.write('</table>');
document.write('</div>');

document.write('<div id="ie5menuCat" class="skin0" onMouseover="highlightie5(event)" onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" display:none>');
document.write('<table border="0" cellpadding="0" cellspacing="0">');
document.write('<tr><td colspan="2">');

document.write('<table border="0" width="100%" cellpadding="0" cellspacing="0">');
document.write('<tr><td colspan="3" align="center" bgcolor="#242424"><font color="White"><b>&#151; NAVIGATION &#151;</b></font></td></tr>');
document.write('<tr><td>');
document.write('<div class="menuitems" url="index.htm">Home</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="firstvisit.htm">General Info</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="firstvisit.htm#pricing">Pricing Scheme</div>   ');
document.write('</td></tr><tr><td>');
document.write('<div class="menuitems" url="purchase.htm">How to Purchase</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="partslist.htm">Entire Parts List</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="contact.htm">Contact Info</div>   ');
document.write('</td></tr></table>');
document.write('</td></tr>');

document.write('<tr><td colspan="2" align="left" bgcolor="#242424"><font color="White"><a href="#" onMouseover="swapMenuBack()"><img src="modmenu.gif" border=0 align="left"></a><b>&#151; PICK A CATEGORY &#151;</b></td></tr><tr><td>');
document.write('<div class="menuitems" url="carb.htm">Carburetors</div>   ');
document.write('<div class="menuitems" url="cylheads.htm">Cylinder Heads</div>   ');
document.write('<div class="menuitems" url="diffs.htm">Differentials</div>   ');
document.write('<div class="menuitems" url="dist.htm">Distributors</div>   ');
document.write('<div class="menuitems" url="keyset.htm">Lock & Key Sets</div>   ');
document.write('<div class="menuitems" url="radiators.htm">Radiators</div>   ');
document.write('</td><td>');
document.write('<div class="menuitems" url="radio.htm">Radio/Cassette Stuff</div>   ');
document.write('<div class="menuitems" url="rnp.htm">Ring & Pinions</div>   ');
document.write('<div class="menuitems" url="speaker.htm">Speakers</div>   ');
document.write('<div class="menuitems" url="steeringW.htm">Steering Wheels</div>   ');
document.write('<div class="menuitems" url="torque.htm">Torque Converters</div>   ');
document.write('<div class="menuitems" url="windshield.htm">Windshields</div>   ');
document.write('</td></tr>');

document.write('<tr><td colspan="2" align="center" bgcolor="#242424"><font color="White"><b>&#151; CONTACT LINKS &#151;</b></td></tr><tr><td align="center">');
document.write('<div class="menuitems" url="mailto:oem@oem-surplus.com?subject=Parts Question...">Parts Question...</div>   ');
document.write('</td><td align="center">');
document.write('<div class="menuitems" url="mailto:surplus@oem-surplus.com?subject=Hey Norm! About this Nissan stuff...">Email Norman</div>   ');
document.write('</td></tr>');

document.write('</table>');
document.write('</div>');

//set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar
var display_url=1

var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all
if (ie5||ns6)
var menuobj=document.getElementById("ie5menu")
var menuobjj=document.getElementById("ie5menuCat")

function showmenuie5(e){
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? document.body.clientWidth-event.clientX : window.innerWidth-e.clientX
var bottomedge=ie5? document.body.clientHeight-event.clientY : window.innerHeight-e.clientY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge < menuobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? document.body.scrollLeft+event.clientX-menuobj.offsetWidth : window.pageXOffset+e.clientX-menuobj.offsetWidth
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? document.body.scrollLeft+event.clientX : window.pageXOffset+e.clientX

//same concept with the vertical position
if (bottomedge < menuobj.offsetHeight)
menuobj.style.top=ie5? document.body.scrollTop+event.clientY-menuobj.offsetHeight : window.pageYOffset+e.clientY-menuobj.offsetHeight
else
menuobj.style.top=ie5? document.body.scrollTop+event.clientY : window.pageYOffset+e.clientY


menuobjj.style.left=menuobj.style.left
menuobjj.style.top=menuobj.style.top

if (rcmenu==1)
{menuobj.style.visibility="hidden"
menuobjj.style.visibility="visible"}
else
{menuobjj.style.visibility="hidden"
menuobj.style.visibility="visible"}
return false
}

function swapMenu(){
menuobj.style.visibility="hidden"
menuobjj.style.visibility="visible"
return false
}

function swapMenuBack(){
menuobjj.style.visibility="hidden"
menuobj.style.visibility="visible"
return false
}


function hidemenuie5(e){
menuobjj.style.visibility="hidden"
menuobj.style.visibility="hidden"
}

function highlightie5(e){
var firingobj=ie5? event.srcElement : e.target
if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode //up one node
firingobj.style.backgroundColor="#242424"
firingobj.style.color="#E0DEDF"
// if (display_url==1)
// window.status=event.srcElement.url
}
}

function lowlightie5(e){
var firingobj=ie5? event.srcElement : e.target
if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode //up one node
firingobj.style.backgroundColor="#E0DEDF"
firingobj.style.color="#000000"
window.status=''
}
}

function jumptoie5(e){
var firingobj=ie5? event.srcElement : e.target
if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode
if (firingobj.getAttribute("target"))
window.open(firingobj.getAttribute("url"),firingobj.getAttribute("target"))
else
window.location=firingobj.getAttribute("url")
}
}

if (ie5||ns6){
menuobj.style.display=''
document.onclick=hidemenuie5
document.oncontextmenu=showmenuie5
// alert ("if(ie5/ns6)")
}
