
	


jQuery(function($){
	
	var Bwidth = 0;
	$('.pageNav li').hover(function(){
		$(this).find('span').stop(true, true).fadeIn(700);
		$(this).find('em').stop(true, true).animate({right:'0px'},{queue: false, duration: 800, easing: 'easeOutSine'});
		$(this).find('strong').stop(true, true).animate({width:'181px'},{queue: false, duration: 1000, easing: 'easeOutExpo'});
		
		var sizeImg = $(this).prevAll().size();
		$('.bannerContent img').stop(true, true).fadeOut(800);
		$('.bannerContent img').eq(sizeImg).stop(true, true).fadeIn(1000);
		
	}, function(){
		if(!$(this).hasClass('navActive')){
			Bwidth = $(this).find('b').width();
			$(this).find('span').stop(true, true).fadeOut(700);
			$(this).find('strong').stop(true, true).animate({width:Bwidth},{queue: false, duration: 800, easing: 'easeOutExpo'});
			$(this).find('em').stop(true, true).animate({right:'-14px'},{queue: false, duration: 800, easing: 'easeOutSine'});
		}
	});
	
	$('.pageNav li.btnGallery').click(function(){
		$('.pageNav li').removeClass('stopClass');
		$(this).addClass('stopClass');
	});
	var NewId;
	$('.pageNav li a').live('click , touchend', function(){
		if(!$(this).parent().hasClass('stopClass')){
			$('.pageNav li').removeClass('navActive');
			$(this).parent().addClass('navActive');
			$('.pageNav li').trigger('mouseout');
		}
		
		if(!$(this).parent().hasClass('btnGallery')){
			var Url = $(this).attr('href');
			window.location.href = Url;
		}
	});
	
	$('.pageNav li a').live('touchend', function(){
		if($(this).parent().hasClass('btnGallery')){
			popup();
		}
	});
	
	
	
	
	
	
	
	
});
