/**
 * for courseListings status list.
 */

GLV_curLayerWidth["status"]=0;
GLV_curLayerHeight["status"]=0;
GLV_curLayerX["status"]=0;
GLV_curLayerY["status"]=0;
GLV_menuOn["status"] = null;
GLV_gap["status"]=50;
GLV_currentLayer["status"] = null;
GLV_currentROitem["status"] = null;
GLV_hasBeenOver["status"]=0;
GLV_lastKey["status"] = "statusList";
GLV_onlyOnLoad["status"] = 0;
GLV_dontHideOnMouseUp["status"] = 0;
GLV_dontFollowMouse["status"] = 0;
GLV_date = new Date();
GLV_timeout["status"] = GLV_date.getTime();
GLV_timeoutRef["status"] = 50;
GLV_menuXY["status"] = new Array();
GLV_menuXY["status"]["statusList"] = new Array(0,0,"itemID99","anchorID99");


function GLstatus_getMouse(e) {
    if (GLV_menuOn["status"]!=null && !GLV_dontFollowMouse["status"]){

    }
    GL_mouseMoveEvaluate("status");
}
function GLstatus_hideCode() {
    
    GL_getObjCss("statusList").visibility = "hidden";   

}
function GLstatus_doTop(WMid,id) { 
var parentObject = GL_getObj(GLV_menuXY[WMid][id][2]);
        var TI_width = parentObject.width;
        var TI_height = parentObject.height;
        var anchorObj = GL_getObj(GLV_menuXY[WMid][id][3]);
        var TI_x = anchorObj.x;
        var TI_y = anchorObj.y;
            
GLV_menuOn["status"].left = (TI_x+-17)+"px";
GLV_menuOn["status"].top =  (TI_y+112)+"px";
}
function GLstatus_restoreMenu() {

}
function GLstatus_resetSubMenus() {
    var resetSubMenu=1;
if (!GLV_doReset["status"] && GLV_currentLayer["status"]!=null) resetSubMenu=0;
    return resetSubMenu;
}

GLV_timeout_pointers[GLV_timeout_count] = "status";
GLV_timeout_count++;

function DeleteField(name)
    {
        if (confirm("Are you sure you want to drop this session?"))  //delete it!
        {
            top.location = "studentclasslistaction.jsp?AT=DeleteFieldAction&&DelFieldID="+name;
        }
}

function setSListPosition(preStr,objID,posID){
 if (document.getElementById(preStr+posID)){
   var elmt=document.getElementById(preStr+posID);
   var leftPos=GetAbsolute(elmt,'left');
   var topPos=GetAbsolute(elmt,'top');
   if (document.getElementById(objID)){
       document.getElementById(objID).style.left=(leftPos)+'px'; 
       document.getElementById(objID).style.top=(topPos+20)+'px';
   }
 }
}

function exprendMenu(){
    setSListPosition('th','statusList',currentPos);
    GL_doTop('status', 'statusList')
}
