function hideMenu(masterid,agentsid,ticketsid,reportsid,newsid,careerid) {

if(document.getElementById(masterid)!=null)
document.getElementById(masterid).style.display="none";
if(document.getElementById(agentsid)!=null)
document.getElementById(agentsid).style.display="none";
if(document.getElementById(ticketsid)!=null)
document.getElementById(ticketsid).style.display="none";
if(document.getElementById(reportsid)!=null)
document.getElementById(reportsid).style.display="none";
if(document.getElementById(newsid)!=null)
document.getElementById(newsid).style.display="none";
if(document.getElementById(careerid)!=null)
document.getElementById(careerid).style.display="none";

}

var RollIt = {

    timeout : null,
    showPopup : function(obj){
	 clearTimeout(this.timeout);
        if($(obj).style.display == 'none'){
            this.timeout = setTimeout(function(){new Effect.BlindDown(obj, {duration:.2, fps:40})},0);
        }
    },
    hidePopup : function(obj){
        if($(obj).style.display == 'none'){
            clearTimeout(this.timeout);
        }else{
            this.timeout = setTimeout(function(){new Effect.BlindUp(obj, {duration:.2, fps:40})},1000);
        }
    }    
}


