$(function(){
	var secondMenu = $('.header .gmenu .second');
	secondMenu.hide();
	$('.header .gmenu li').not('.second li').each(function(){
		$(this).hover(function(){
			$(this).find('ul:not(:animated)').slideDown(250);
		}, function(){
			$(this).find('ul').stop(false,true).slideUp(500);
		});
	});
	
	$('.header .gmenu li a.false').click(function(){
		return false;
	});	
	
	//img hover replacement
  $("a.hover img").mouseover(function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_h$2"))
    }).mouseout(function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)_h(\.[a-z]+)$/, "$1$2"));
    });		
	if ( !jQuery.support.leadingWhitespace ) {
		$('a').focus(function(){this.blur();});
	};
	
	$('div.wp-pagenavi *:first-child').css('border-left','none');
	
});
