function checkEvent(oEvt){
        oEvt=(oEvt) ? oEvt : ( (window.event) ? window.event : null );
        if(oEvt && oEvt.srcElement && !window.opera)
                oEvt.target=oEvt.srcElement;

        //Handle mouse wheel event
        if(oEvt){
                if(oEvt.wheelDelta){
                        oEvt.mouse_wheel_delta=oEvt.wheelDelta/120;
                        if(window.opera)
                        oEvt.mouse_wheel_delta*=-1;
                }
                else if(oEvt.detail){
                oEvt.mouse_wheel_delta = -oEvt.detail/3;
                }
        }

        return oEvt;
}


function addEvent(objElement, strEventType, ptrEventFunc) {
        if (objElement.addEventListener)
                objElement.addEventListener(strEventType, ptrEventFunc, false);
        else if (objElement.attachEvent)
                objElement.attachEvent('on' + strEventType, ptrEventFunc);
}

function AllowMouseScroll(){
        return (document.body.clientHeight == elemContainer.offsetHeight);
}


function MouseWheelCallback(evt){
        if((evt=checkEvent(evt)) /*&& AllowMouseScroll() */){
                if(evt.mouse_wheel_delta > 0) {
document.video.SetVariable('System.externalFunction.call','_level0.scrollUp');

                }
                else
                {
document.video.SetVariable('System.externalFunction.call','_level0.scrollDown');
                }
        }


}


function callMenu(){

document.video.SetVariable('System.externalFunction.call','_level0.callMenu');

}