﻿// JScript File

startList = function() 
{
	if (document.all&&document.getElementById)
	{
		var sfEls = document.getElementById("ulHeader").getElementsByTagName("li"); 
		for (var i=0; i<sfEls.length; i++) { 
			sfEls[i].onmouseover=function() {this.className+=(this.className.length>0? " ": "") + "sfhover";} 
			sfEls[i].onMouseDown=function() {this.className+=(this.className.length>0? " ": "") + "sfhover";} 
			sfEls[i].onMouseUp=function() {this.className+=(this.className.length>0? " ": "") + "sfhover";} 
			sfEls[i].onmouseout=function() {this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),"");} 
		} 	
	}
}

if (window.attachEvent)
	window.attachEvent("onload", startList)
else
	window.onload=startList;
	


function ul_onmousemove()
{
    var product = document.getElementById("productli");
    if(product != null)
    {
        product.style.backgroundImage="url(images/product2.jpg)";
    }
}

function ul_onmousemoveout()
{
    var product= document.getElementById("productli");
    if(product !=null)
    {
        product.style.backgroundImage="url(images/product.jpg)";
    }


}

function openWindow(ProductID)
{
    var windowHeight=780;
    var windowWidth=727;
    window.open("productshow.aspx?ProductID="+ProductID,"","toolbar=1,resizable=1,width=" + windowWidth + "px,height=" + windowHeight + "px,top=" + Math.ceil((window.screen.height-windowHeight)/2) + ',left=' + Math.ceil((window.screen.width-windowWidth)/2) + ",scrollbars=1");
}
	