var curSub;
var outV;
var bgColor;
var hotprodimg;
var outImg;

 function mOvr(v) {
		   bgColor = v.bgColor;
		   v.bgColor = "#DBDCE2";
		   
		}
function SetProductImg()
{
   hotprodimg.background = "../Products/ProductImages/thumbs/vsynthxt_front_s.jpg";
}		

function mOut(v) {
		     v.bgColor = bgColor;    
		     
		}
		
function pOvr(v) {
// bgColor = v.bgColor;
// v.bgColor = "#a7a7a7";
// hotprodimg = document.getElementById("HotProductImgae");
// hotprodimg.background = "../Products/ProductImages/thumbs/" + v.id;
//v.background="../images/dot.gif";
// clearTimeout(outImg);
//alert(v);
		}
		

function pOut(v) {
// v.bgColor = bgColor;
// hotprodimg = document.getElementById("HotProductImgae");
// hotprodimg.background = "";
// outImg = setTimeout("SetProductImg()", 5000);
		}

function kSub(x) {
  if(x == null)
  return;
	x.className = x.className.replace(new RegExp("sfhover \\b"), "");
}

navHover = function () {
 	if (!document.getElementById("nav")) {
		return;
	}
	
	var mAs = document.getElementById("nav").getElementsByTagName("a");
	
	for (var i = 0; i<mAs.length; i++) 
	{
		mAs[i].onmouseover = function() 
		{
			if (this.className == "tnavlink") 
			{
				if ((curSub != "") && (curSub != null)) 
				{
					kSub(curSub);
				}
				clearTimeout(outV);
				curSub = this.parentNode;
				this.parentNode.className = "sfhover "+this.parentNode.className;
			}
		};
		
		mAs[i].onmouseout = function() 
		{
			if (this.className == "tnavlink") 
			{
				outV = setTimeout("kSub(curSub)", 1250);
			}
		};
	}
	
	if (!document.getElementById("navul")) 
	{
		return;
	}
	
	var mULs = document.getElementById("navul").getElementsByTagName("ul");
	
	for (var i = 0; i<mULs.length; i++) 
	{
		mULs[i].onmouseover = function() 
		{
			clearTimeout(outV);
		};
		mULs[i].onmouseout = function() 
		{
			outV = setTimeout("kSub(curSub)", 1250);
		};
	}
	
	//alert(typeof window.onload + " =  menu");
	
}
	
window.onload = navHover;