/**
* Slides menu open
*
* @param integer Clip X
* @param integer Clip Y
* @param integer Opacity (0-100)
*/
vB_Popup_Menu.prototype.slide = function(clipX, clipY, opacity)
{
if (this.direction == 'left' && (clipX < this.menuobj.offsetWidth || clipY < this.menuobj.offsetHeight))
{
if (vBmenu.open_fade && is_ie)
{
opacity += 10;
this.menuobj.filters.item('DXImageTransform.Microsoft.alpha').opacity = opacity;
}
clipX += this.intervalX;
clipY += this.intervalY;
this.menuobj.style.clip = "rect(auto, " + clipX + "px, " + clipY + "px, auto)";
this.slidetimer = setTimeout("vBmenu.menus[vBmenu.activemenu].slide(" + clipX + ", " + clipY + ", " + opacity + ");", 0);
}
else if (this.direction == 'right' && (clipX > 0 || clipY < this.menuobj.offsetHeight))
{
if (vBmenu.open_fade && is_ie)
{
opacity += 10;
menuobj.filters.item('DXImageTransform.Microsoft.alpha').opacity = opacity;
}
clipX -= this.intervalX;
clipY += this.intervalY;
this.menuobj.style.clip = "rect(auto, " + this.menuobj.offsetWidth + "px, " + clipY + "px, " + clipX + "px)";
this.slidetimer = setTimeout("vBmenu.menus[vBmenu.activemenu].slide(" + clipX + ", " + clipY + ", " + opacity + ");", 0);
}
else
{
this.stop_slide();
}
};
/**
* Abort menu slider
*/
vB_Popup_Menu.prototype.stop_slide = function()
{
clearTimeout(this.slidetimer);
this.menuobj.style.clip = 'rect(auto, auto, auto, auto)';
if (vBmenu.open_fade && is_ie)
{
this.menuobj.filters.item('DXImageTransform.Microsoft.alpha').opacity = 100;
}
};