/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

hs.graphicsDir = SKIN_URL + 'js/graphics/';
hs.showCredits = false;
hs.expandCursor = null;
hs.restoreCursor = null;
hs.dimmingOpacity = 0.70;
hs.registerOverlay({			
	html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
	position: 'top right',
	fade: 2, // fading the semi-transparent overlay looks bad in IE
	useOnHtml: true
});

hs.Expander.prototype.onBeforeExpand = function (sender, e) {
    if(sender.slideshowGroup != 'product-grid-group') {
		
   
    }
}


// close on mouse out
hs.Expander.prototype.onMouseOut = function (sender) {
	if (sender.slideshowGroup == 'product-grid-group') sender.close();
};
// close if mouse is not over on expand (using the internal mouseIsOver property)
hs.Expander.prototype.onAfterExpand = function (sender) {
   if (sender.slideshowGroup == 'product-grid-group' && !sender.mouseIsOver) sender.close();
};
// run mouseover
function mouseOver(opener) {
	opener.hasMouseOver = true; //
	setTimeout(function() {
		// if the mouse is still over the opener, pop it up
		if (opener.hasMouseOver) {
			opener.onclick();
			opener.hasMouseOver = false;
		}
	}, 500);
}
// run mouseout
function mouseOut(opener) {
	opener.hasMouseOver = false;
}



