var menu = new Array();
	
	jQuery(document).ready(function(){
		
				 
		
		
		jQuery(".menu_b , .menu_news").hover(
			function(){
				clearTimeout(menu[1]);
				jQuery(".menu_news").slideDown("fast");
			},
			function(){
				menu[1]=setTimeout(function(){jQuery(".menu_news").slideUp(1)},200)				
			}
		);
		
		/*jQuery(".menu_c , .menu_help").hover(
			function(){
				clearTimeout(menu[2]);
				jQuery(".menu_help").slideDown("fast");
			},
			function(){
				menu[2]=setTimeout(function(){jQuery(".menu_help").slideUp("fast")},200)				
			}
		);*/
		
		jQuery(".menu_d , .menu_info").hover(
			function(){
				clearTimeout(menu[3]);
				jQuery(".menu_info").slideDown("fast");
			},
			function(){
				menu[3]=setTimeout(function(){jQuery(".menu_info").slideUp(1)},200)				
			}
		);
		
		jQuery(".menu_e , .menu_manage").hover(
			function(){
				clearTimeout(menu[4]);
				jQuery(".menu_manage").slideDown("fast");
			},
			function(){
				menu[4]=setTimeout(function(){jQuery(".menu_manage").slideUp(1)},200)				
			}
		);		
		
		
		jQuery("#tabNews").tabs();
		
		jQuery('#imgpreview-demo a').imgPreview({
			imgCSS: {
				// Limit preview size:
				
			},
			onShow: function(link){
				// Animate link:
				jQuery(link).stop().animate({opacity:0.4});
				// Reset image:
				jQuery('img', this).stop().css({opacity:0});
			},
			onLoad: function(){
				// Animate image
				jQuery(this).animate({opacity:1}, 500);
			},
			onHide: function(link){
				// Animate link:
				jQuery(link).stop().animate({opacity:1});
			}
    	});
		jQuery('#imgpreview-demo1 a').imgPreview({
			imgCSS: {
				// Limit preview size:
				
			},
			onShow: function(link){
				// Animate link:
				jQuery(link).stop().animate({opacity:0.4});
				// Reset image:
				jQuery('img', this).stop().css({opacity:0});
			},
			onLoad: function(){
				// Animate image
				jQuery(this).animate({opacity:1}, 300);
			},
			onHide: function(link){
				// Animate link:
				jQuery(link).stop().animate({opacity:1});
			}
    	});
		
		jQuery("#product").change(function(){
			if(jQuery("#product").val()== 3){
				jQuery(window.location).attr("href" , "http://joyxy.the9.com");
			};							   
			if(jQuery("#product").val()== 2){
				jQuery(window.location).attr("href" , "http://www.wofchina.com");
			};
			if(jQuery("#product").val()== 1){
				jQuery(window.location).attr("href" , "http://www.9zwar.com");
			};
		});
		
		jQuery(".page_list li:even").addClass("page_list_li_a");
		jQuery(".page_list li:odd").addClass("page_list_li_b");
		
		
		
	});