	var globalElement ='';
	var timeoutInstance ='';
	var timerDefault = 125000;
	var helpElementsArr = new Array();
	var helpElementsArr1 = new Array();
 	var cnt = 0;
 	function hide(element){
		if($(element)){	
			//new Effect.Grow($('helpList'+element.id))
			helpElementsArr.splice(helpElementsArr.indexOf(element),1);
			new Effect.Fade($(element),{duration: 0.25,transition:Effect.Transitions.linear, from: 0.9, to:0.0})
			
		}	
 		
 	}
 	
 	function showMe(element){
		if($('helpList'+element.id)){	
			//new Effect.Grow($('helpList'+element.id),{direction:'top-right'})
			new Effect.Appear($('helpList'+element.id),{duration: 0.5})
		}	
		timeoutInstance = setTimeout("hide(globalElement)", timerDefault);

 	}
 	
 	
 	function checkClickStatus(element){
 		
 		if (globalElement == 'helpList'+element.id) {
 			//alert('dd')
			hide('helpList'+element.id);globalElement = '';
			clearTimeout(timeoutInstance);
 		}else{

 			for(var i=0; i<helpElementsArr.length; i++){
		 		if ($(helpElementsArr[i])){
		 				hide(helpElementsArr[i]);globalElement='';
		 				clearTimeout(timeoutInstance);
		 		}
	 		}
	 		
		 	if($('helpList'+element.id)){		
		 		addHelpElementArray('helpList'+element.id)
		 		globalElement = 'helpList'+element.id
		 		showMe(element)
		 		
		 	}	
		 }
 	}	
 	function checkMouseOverStatus(element){
		//alert(element.id)
		cnt += 1
		if(cnt == 20){
			alert(element.id);
			cnt = 0;
		}
 		if (element.id.indexOf('table')==0){
	 		alert("yeah table" + element.id)
	 	}
 	}
	
	function addHelpElementArray(id){
		//alert(helpElementsArr.length)
		var exists = false;
		for(var i=0; i<helpElementsArr.length; i++){
			if (helpElementsArr[i] == id){
				 exists = true;
			}
		}
		if(!exists){
			helpElementsArr.push(id);
		}
		
	}
		
	 Event.observe(window, 'load', function() {Event.observe(document.body, 'click', function(event) {   var element = $(Event.element(event));   checkClickStatus(element);});})
	 
	// Event.observe(window,'mouseover', function(event){var element = $(Event.element(event)); checkMouseOverStatus(element);})


function ajaxClassMoreInfo(inType,inID,inSection,inContainer){

new Ajax.Updater(inContainer, 
							'/admin/ajax/ajax-class-more-info.asp?itemID=' + escape(inID) + '&itemType=' + escape(inType)+ '&Section=' + escape(inSection),
							{onCreate:	function(){},
							onComplete:function(){}, 
							evalScripts:false,
							method:'post'}); 
		}







