var curSub;
var outV;

function kSub(x) {
	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);
		};
	}
};

var windowArgs = "resizable=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no";

function popDemo(product, width, height) {
	var demoWin = window.open("/Multimedia/Flash/"+product+"/index.html", "demo", "width="+width+",height="+height+","+windowArgs);
	demoWin.focus();
}
 

//window.onload = navHover;
