// JavaScript Document


function navigationmarker(){
	if(window.homepage == 1){
		document.getElementById("navhome").style.backgroundPosition = '0px 26px';
	}
	if(window.products == 1){
		document.getElementById("navproducts").style.backgroundPosition = '0px 26px';
	}
	if(window.specials == 1){
		document.getElementById("navspecials").style.backgroundPosition = '0px 26px';
	}
	if(window.pricing == 1){
		document.getElementById("navpricing").style.backgroundPosition = '0px 26px';
	}
	if(window.vin == 1){
		document.getElementById("navvin").style.backgroundPosition = '0px 26px';
	}
	if(window.about == 1){
		document.getElementById("navabout").style.backgroundPosition = '0px 26px';
	}
	if(window.contact == 1){
		document.getElementById("navcontact").style.backgroundPosition = '0px 26px';
	}
	if(window.directions == 1){
		document.getElementById("navdirections").style.backgroundPosition = '0px 26px';
	}

}



function showproducts(){
		document.getElementById("navproducts").style.backgroundPosition = '0px 26px';
		document.getElementById("productsmenu").style.display = 'inline';
}

function showpricing(){
		document.getElementById("navpricing").style.backgroundPosition = '0px 26px';
		document.getElementById("pricingmenu").style.display = 'inline';
}

function hidemenus(){
	if(window.products === undefined){
		document.getElementById("navproducts").style.backgroundPosition = '0px 0px';	
		}		
	if(window.pricing === undefined){
			document.getElementById("navpricing").style.backgroundPosition = '0px 0px';	
		}
		document.getElementById("productsmenu").style.display = 'none';
		document.getElementById("pricingmenu").style.display = 'none';
}




<!--
function showfield(){
javascript:document.getElementById('hiddenfieldmorgan').style.visibility = 'hidden';
javascript:document.getElementById('hiddenfield').style.visibility = 'visible';
javascript:document.getElementById('hiddenfield').style.display = 'inline';
}

function showfieldmorgan(){
javascript:document.getElementById('hiddenfield').style.visibility = 'hidden';
javascript:document.getElementById('hiddenfield').style.display = 'none';
javascript:document.getElementById('hiddenfieldmorgan').style.visibility = 'visible';
}

function hidefield(){
javascript:document.getElementById('hiddenfield').style.visibility = 'hidden';
javascript:document.getElementById('hiddenfieldmorgan').style.visibility = 'hidden';
}


function addEvent()
{
var ni = document.getElementById('myDiv');
var numi = document.getElementById('theValue');
var num = (document.getElementById("theValue").value -1)+ 2;
numi.value = num;
var divIdName = "my"+num+"Div";
var newdiv = document.createElement('div');
		
if (num%2 == 0){
		newdiv.innerHTML="<table border=0 bgcolor=#EFEFEF cellspacing=\"0\" cellpadding=5><tr><td width=\"40\"><input type=\"text\" size=\"3\" /></td><td width=\"180\"><input type=\"text\" size=\"20\" /></td><td><input type=\"text\" size=\"36\" /></td></tr></table>";
		}
	else{
	newdiv.innerHTML="<table border=0 bgcolor=#DEDEDE cellspacing=\"0\" cellpadding=5><tr><td width=\"40\"><input type=\"text\" size=\"3\" /></td><td width=\"180\"><input type=\"text\" size=\"20\" /></td><td><input type=\"text\" size=\"36\" /></td></tr></table>";
	}
ni.appendChild(newdiv);
}

function removeEvent(divNum)
{
var d = document.getElementById('myDiv');
var olddiv = document.getElementById(divNum);
d.removeChild(olddiv);
}


function addSpecial()
{
var ni = document.getElementById('myDiv');
var numi = document.getElementById('theValue');
var num = (document.getElementById("theValue").value -1)+ 2;
numi.value = num;
var divIdName = "my"+num+"Div";
var newdiv = document.createElement('div');
		
newdiv.innerHTML="<table border=0  cellpadding=5 cellspacing=0 width=\"100%\"  class=\"tabs\"><tr><td colspan=\"3\"><span style=\"color:#129A9A;\">RANK</span><input type=\"text\" value=\""+num+"\" size=\"5\" /><span style=\"color:#129A9A;\">*</span></td></tr><tr><td valign=\"top\">Title<br /><input type=\"text\"  width=\"50\" />External Link:<br /><input type=\"text\" width=\"50\" /></td><td width=\"39%\" valign=\"top\">Description<textarea cols=\"30\" rows=\"5\"></textarea></td><td width=\"37%\" valign=\"top\">Price<textarea cols=\"30\" rows=\"5\"></textarea></td></tr><tr><td colspan=\"2\">Image file(72dpi)<input type=\"file\"/></td><td>&nbsp;<input type=\"checkbox\"  />&nbsp;&nbsp;<span style=\"color:#129A9A;\">DELETE SPECIAL</span></td></tr></table>ghft";


ni.appendChild(newdiv);
}



function removeEvent(divNum)
{
var d = document.getElementById('myDiv');
var olddiv = document.getElementById(divNum);
d.removeChild(olddiv);
}

//-->

function infoboxshow(box){
	document.getElementById(box).style.visibility="visible";
}

function infoboxhide(box){
	document.getElementById(box).style.visibility="hidden";
}
