jQuery('document').ready(function(){
	var t=new Object;
	function tabOff(el) {el.removeClass("hover");}
jQuery("nav li a").hover(function(){var top = $(this).parents("li").last(); var id=top.text().substr(0,4); if (t[id]>0) {clearTimeout(t[id]);t[id]=0;} top.addClass("hover"); },function(){var top = $(this).parents("li").last(); var id = top.text().substr(0,4); t[id]=setTimeout(function(){tabOff(top);top=null;},150);});
	jQuery('#slider')._TMS({
		prevBu:'.prev',
		nextBu:'.next',
		playBu:'.play',
		duration:800,
		easing:'',
		preset:'diagonalExpand',
		pagination:true,
		slideshow:6000,
		numStatus:true,
		banners:false,
		bannerShow:function(banner){
			banner
				.css({left:'-100%',top:'50%'})
				.stop()
				.animate({left:'200px'})
		},
		bannerHide:function(banner){
			banner
				.stop()
				.animate({top:'-100%'})
		},
		progressBar:'<div class="progbar"></div>'})
});

