// jk feb 2007
// actions to assign to elements (div.event)

var myActions = {		
	'div.event' : function(item){
		// behavioural style
		var highlight = "highlight01";
		item.onmouseover = function () {
				this.className += " highlight02";
			};			
		item.onmouseout = function () {
				var classOff = this.className.replace(" highlight02" ,"");
				this.className = classOff;
			};	
		// check for subevent information
		if (item.getElementsByTagName("a").length > 0) {				
			var temp1 = item.getElementsByTagName ("div");
			var temp2 = item.getElementsByTagName("a");
			var toggler = temp1[0];	
			var clicker = temp2[0];							
			// if div.event is a clicker (better way to do this...)
			// close all div.desc and apply toggle behaviours
			if (clicker.className == "clicker") {		
				toggler.style.display = "none";		
				// item is clickable (style it)
				item.style.cursor = "pointer";								
				item.onclick = function () {
					var styler; // toggler style
					var classOff = item.className.replace(" " + highlight ,"");					
					if (toggler.style.display == "none") {	
						styler = "block";	
						item.className += " " + highlight;						
					} else {	
						styler = "none";
						item.className = classOff;
					}		
					toggler.style.display = styler;			
				};							
			}
		}
	}
}
jkActions.doTheseActions(myActions);  
jkActions.fireUpActions();   
//-->