var kit = { 
	hoverDiv : function (){
		$$('.ad_unit').each(function(el){
									 	el.onmouseover = function(){$(this).addClass('hov');};
										el.onmouseout = function(){$(this).removeClass('hov');};
									 });
		
	}, 
	heightEffect : function(){
		//$$('.roundcont h1').each(function(el){el.setProperty('theFX', el.effect('height',{duration:500}));})
		$$('.roundcont h1').each(function(el){
									   	el.onclick = function(){
																 var el = $(this).getParent();
																 var thefx = el.effect('height', {duration:500});
																	 if(el.offsetHeight > 18){
																		 thefx.start(18);
																	 } else {
																		 thefx.start(el.scrollHeight);
																	 }
																};
										  }
							  )
	},
	setHeights : function(){
		$$('.roundcont').each(function(el){$(el).setStyle('height', '18px');});
	},
	makeAccord : function(){
		$$('.sitemap_cat').each(function(el){
									   new Accordion($ES('.roundcont h1'),$ES('.cat_list'),{alwaysHide:true,opacity:false,display:-1});
									   });
	},
	init : function (){	
		//this.setHeights();
		this.heightEffect();
		//this.makeAccord();
		//this.hoverDiv();
	}	
};
window.onDomReady(kit.init.bind(kit));
