// HELP Section ------------------------------
var gethelpdetailinfo = function(res){
 ColdFusion.Layout.expandArea('helpcontainer', 'right');
 ColdFusion.navigate("help/helpdetailtree.cfm?help_ID=" + res,"helpdetailpanel");
}


var qhelpdetail = function(res,helptype){
	
var w = ColdFusion.Window.getWindowObject('helpwindow');
//add the class for the collapse button 

if (typeof(w.collapseBtn) == 'undefined'){
	
w.collapseBtn = w.toolbox.createChild({cls:"x-dlg-collapse"});

}
//add a listener for the collapse click 
w.collapseBtn.on("click", w.collapseClick, w);
//add the class to swap the image on mouse over 
w.collapseBtn.addClassOnOver("x-dlg-collapse-over");
ColdFusion.Window.show("helpwindow"); 

if (typeof(w.closeBtn) == 'undefined'){	
w.closeBtn = w.toolbox.createChild({cls:"x-dlg-close"});
}

//add a listener for the collapse click 
w.closeBtn.on("click", w.closeClick, w);
//add the class to swap the image on mouse over 
w.closeBtn.addClassOnOver("x-dlg-close-over");
ColdFusion.Window.show("helpwindow")


helpwindow_title.innerHTML = "<img src='http://cms.lbcc.edu/cmsadmin/images/help.gif' height='22' width='22' alt='Help Information' /> Help Information";

if (helptype == 'tree'){
ColdFusion.navigate("help/helpdetail.cfm?helptype=tree&help_categoryID=" + res,"helpwindow");
}
if (helptype == 'treedetail'){
ColdFusion.navigate("help/helpdetail.cfm?helptype=treedetail&help_ID=" + res,"helpwindow");
}

if (helptype == 'detail'){
ColdFusion.navigate("help/helpdetail.cfm?help_ID=" + res,"helpwindow");
}

}

 var closeWin =  function(){     
 var w = ColdFusion.Window.getWindowObject('helpwindow');
 
// w.collapseBtn.close();
	//w.on("hide",destroywindow);
     ColdFusion.Window.hide("helpwindow"); 
	//  var x = document.getElementById("editorcontainer");
    // x.style.display = 'block';
		

  }
  
  var destroywindow = function(){	  
	  ColdFusion.Window.getWindowObject("helpwindow").destroy(); 
	  
  }
//END HELP Section
