$(document).ready(function(){

	if ($("#header li").length!=0) {var tmp_count = 0; $("#header li").each(function(){tmp_count++; $(this).addClass("li_"+tmp_count);});}
	
	var menu_speed = 160;
	$('#header li a')
	.css( {backgroundPosition: "0 0"} )
	.mouseover(function(){
		$(this).stop().animate(
			{backgroundPosition:"(-201px 0)"}, 
			{duration:menu_speed})
		})
	.mouseout(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 0)"}, 
			{duration:menu_speed})
		});
	
	if ($("#examples li").length!=0) {
		var tmp_count = 0;
		$("#examples li").each(function(){tmp_count++;});
		var count = 0;
		if (tmp_count%6==0) count = tmp_count/6; else count = parseInt(tmp_count/6)+1;
		$("#examples ul").css("height",(count*149)+"px")
	}
	

});