	
	
	//document.write('<div id=\"BoxWrapper\" style=\"visibility: hidden; position:absolute; \" ></div>');
	
	
	function ShowHelp(theLayer,theText,X,Y) {

		var strDiv
		
		//alert('y='+ y + ' x=' + x)
		
		strDiv = ""
		strDiv += "<div id=\"box\" onmouseover=\"keepAlive('BoxWrapper')\" onmouseout=\"delayKill('BoxWrapper')\" style=\"position:absolute; top: " + Y + "px; left: " + X + "px; color: #000000; width: 190px; padding: 5px; border: 2px solid #748ABD; background-color: #fff; height:auto; z-index: 200; \">"
		strDiv += theText
		strDiv += "<div class=\"center\"><a class=\"HelpClose\" href=\"javascript:;\" onclick=\"HideIt('box')\">close</a></div>"
		strDiv += "</div>"
		
		if(document.layers) {   										
			document.layers[theLayer].visibility = "show";
			document.layers[theLayer].innerHTML = strDiv;
			}
		else if(document.getElementById) {						   
			document.getElementById(theLayer).style.visibility = "visible";
			document.getElementById(theLayer).innerHTML = strDiv;
			}
		else {	 													
			document.all[theLayer].style.visibility = "visible";
			document.all[theLayer].innerHTML = strDiv;
			}
		}	
		
		
	function NewChallengeHelp(theLayer,theText,X,Y) {

		var strDiv
		
		//alert('y='+ y + ' x=' + x)
		
		strDiv = ""
		strDiv += "<div id=\"box\" style=\"position:absolute; top: " + Y + "px; left: " + X + "px; color: #000000; width: 190px; padding: 5px; border: 2px solid #748ABD; background-color: #fff; height:auto; z-index: 200; \">"
		strDiv += theText
		strDiv += "<div class=\"center\"><a class=\"Font11px\" href=\"/register/Profile.asp?NewChallenge=1\" >Begin</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class=\"Font11px\" href=\"javascript:;\" onclick=\"HideIt('box')\">Cancel</a></div>"
		strDiv += "</div>"
		
		if(document.layers) {   										
			document.layers[theLayer].visibility = "show";
			document.layers[theLayer].innerHTML = strDiv;
			}
		else if(document.getElementById) {						   
			document.getElementById(theLayer).style.visibility = "visible";
			document.getElementById(theLayer).innerHTML = strDiv;
			}
		else {	 													
			document.all[theLayer].style.visibility = "visible";
			document.all[theLayer].innerHTML = strDiv;
			}
		}	
		
	
	
	function ShowActivities(theLayer,theText,X,Y) {

		var strDiv
		
		//alert('y='+ y + ' x=' + x)
		
		strDiv = ""
		strDiv += "<div id=\"box\" style=\"position:absolute; top: " + Y + "px; left: " + X + "px; color: #000000; width: 600px; padding: 5px; font-size: 9px; border: 2px solid #748ABD; background-color: #fff; height:auto; z-index: 200; \">"
		strDiv += theText
		strDiv += "<div class=\"center\"><a class=\"HelpClose\" href=\"javascript:;\" onclick=\"HideIt('box')\">close</a></div>"
		strDiv += "</div>"
		
		if(document.layers) {   										
			document.layers[theLayer].visibility = "show";
			document.layers[theLayer].innerHTML = strDiv;
			}
		else if(document.getElementById) {						   
			document.getElementById(theLayer).style.visibility = "visible";
			document.getElementById(theLayer).innerHTML = strDiv;
			}
		else {	 													
			document.all[theLayer].style.visibility = "visible";
			document.all[theLayer].innerHTML = strDiv;
			}
		}	
	
	function HideIt(theLayer) {
		if(document.layers)	 										
			document.layers[theLayer].visibility = "hide";			
		else if(document.getElementById)  							
			document.getElementById(theLayer).style.visibility = "hidden";
		else	  													
			document.all[theLayer].style.visibility = "hidden";		
	}
	
	
	//****************************************************************
	// Delay the div kill by 1/2 a second
	//****************************************************************
	function delayKill(theLayer){
		delayIT = setTimeout("HideIt('" + theLayer + "')",300)
	}
	
	//****************************************************************
	// Keep the box alive if the mouseover it
	//****************************************************************
	function keepAlive(theLayer){
		if (window.delayIT)
		clearTimeout(delayIT)
	}