$(function(){
 	$("a").focus(function(){
		var $this= $(this);
		$this.blur();
	});		   
		   
});



$(function(){
		$(".dropdown li ul").hide();
		$(".dropdown>li#drop, li#drop2").hover(function(){
			
			var $this=$(this);
			var $menu=$this.find("ul");
	
			$menu.css({
				left:0,
				top:30
			}).stop(false, true).slideDown(400);
	
		}, function(){
				$(this).find("ul").stop(false, true).slideUp(200);
		}).click(function(evt){
		return $(evt.target).parents("ul").attr("className")!="dropdown";
		});
});



$(function(){
	var adHeight=420,
		animateSpeed=400,
		timer,
		speed=4500;
	function showNext(){
		var $li = $('#adblock ul.link li'),
			no = $li.has('a.selected').index();

		no = (no + 1) % $li.length;
		
		$li.eq(no).children('a').mouseover();

		timer = setTimeout(showNext, speed);
	}
		
	$("#adblock ul.link li a").hover(function(){
		var $this=$(this);
		var	no=$this.parent().index();


		$('#adblock ul.link li a.selected').removeClass('selected');
		$this.addClass('selected');

		$("#adblock ul.showbox").stop().animate({
			top:adHeight*no*-1}, animateSpeed);
		clearTimeout(timer);
	}, function(){
			timer = setTimeout(showNext, speed);
	}).focus(function(){
		$(this).blur();
	}).eq(0).addClass('selected');

	$('#adblock ul.showbox li').hover(function(){
			clearTimeout(timer);
		}, function(){
			timer = setTimeout(showNext, speed);
		});
		
	timer = setTimeout(showNext, speed);

});

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}





