var showEffect;
jQuery.each(jQuery.browser,function(i){
	if($.browser.msie){
		showEffect='false';
	}
});

jQuery(document).ready(function(){
	var slider_area;
	var slider_buttons;
	if(jQuery('#slider_area').length>0){
		slider_area="#slider_area";
		slider_buttons="#numbers";
		jQuery(slider_area).cycle({
			fx:'fade',
                        speed:1000,
			timeout:7000,
			prev:'.left_control',
			next:'.right_control',
			cleartype:1,
			pause:true,
			pauseOnPagerHover:true,
			before:onBefore,
			after:onAfter,
			pagerAnchorBuilder:function(idx){
				return'<a href="#" title=""><img src="/images/pixel.gif" width="14" height="14"></a>';
			}
		});
	}
	
	if(jQuery('.sub_slider').length>0){
		sub_slider_area=".sub_slider";
		jQuery(sub_slider_area).cycle({
			fx:'fade',timeout:5000,
			pager:'.sub_slider_pager',
			cleartype:1
		});
	}
	jQuery('.left_control, .right_control').css({opacity:0});
	jQuery('#banner_slide').hover(function(){
		jQuery('.left_control, .right_control').stop().animate({opacity:1},400);
	},function(){
		jQuery('.left_control, .right_control').stop().animate({opacity:0},400);
	});
	function onBefore(){
		if(showEffect!="false"){
			jQuery('.desc').stop().animate({opacity:0},0);
		}else{}
	}
	function onAfter(){
		if(showEffect!="false"){
			jQuery('.desc').stop().animate({opacity:1},400);
		}else{}
	}
});

	
	
jQuery(document).ready(function(){
	jQuery("#nav_477729 li").each(function(){
		jQuery(this).hover(function(){
			jQuery(this).find('ul:first').stop().css({
				height:"auto",
				overflow:"hidden",
				display:"none"
			}).slideDown(200,function(){
				jQuery(this).css({
					height:"auto",
					overflow:"visible"
				});
			});
		},function(){
			jQuery(this).find('ul:first').stop().slideUp(200,function(){
				jQuery(this).css({display:"none",overflow:"hidden"});
			});
		});
	});
	jQuery("#nav_477729 ul ").css({display:"none"});
});
				

