var intID = ""; //timeout ID
var TimeOut = 10;
function ShowMenu(Obj, PlusWidth) {
    var myWidth = 0;
    if(document.body.clientWidth <= 994){
        myWidth = (395 + PlusWidth);
    } else {
        myWidth = ((((document.body.clientWidth - 994) / 2) + 395) + PlusWidth);
    }
    document.getElementById(Obj).style.left = myWidth;
    document.getElementById(Obj).style.left = myWidth;
    if(document.getElementById(Obj).style.display == 'none') {
        document.getElementById(Obj).style.display = '';
    //
    Obj = Obj.replace(/MainMenu/, '');
    setClass(Obj, 'MAINMENUON');
    } else {
        clearTimeout(intID);
    }
}
function HideMenu(Obj) {
      intID = setTimeout("HideObject('"+Obj+"')", TimeOut);
}
function HideObject(Obj) {
     document.getElementById(Obj).style.display = 'none';
    //
    Obj = Obj.replace(/MainMenu/, '');
    setClass(Obj, 'MAINMENUOFF');
}
function ClearMenuTimeOut(Obj) {
     if(document.getElementById(Obj).style.display != 'none') {
          clearTimeout(intID);
     }
}
