//Top导航More弹出层
//jQuery(function() {
//        jQuery('.topnav>dd>strong.more').hover( function(){jQuery(this).find('span').css('display','block')},
//											function(){jQuery(this).find('span').css('display','none')})
//
//		var sbtn = jQuery('.searchBox>span>strong');
//		var sele = jQuery('.searchBox>span>em');
//
//		sbtn.click( function(){
//			if( sele.is(':visible') )
//				{sele.hide();}
//			else{sele.show();return false;}
//					      });
//		jQuery("body").click(function(){
//			sele.hide();
//			});
//
//		sele.find('b').click(function(){
//						var vals = jQuery(this).text();
//						sbtn.find('ins').text(vals);
//						sele.hide()
//						});
//
////tab function
//jQuery('.hook1tab>a').mouseover(function() { TabSelect(".hook1tab>a", ".hook1", "current", jQuery(this)) });jQuery('.hook1tab>a').eq(0).trigger("mouseover");
//jQuery('.hook2tab>span>a').mouseover(function() { TabSelect(".hook2tab>span>a", ".hook2", "current", jQuery(this)) });jQuery('.hook2tab>span>a').eq(0).trigger("mouseover");
//jQuery('.hook21tab>a').mouseover(function() { TabSelect(".hook21tab>a", ".hook21", "current", jQuery(this)) });jQuery('.hook21tab>a').eq(0).trigger("mouseover");
//jQuery('.hook3tab>div').mouseover(function() { TabSelect(".hook3tab>div", ".hook3>a", "current", jQuery(this)) });jQuery('.hook3tab>div').eq(0).trigger("mouseover");
//jQuery('.hook4tab>div').mouseover(function() { TabSelect(".hook4tab>div", ".hook4>a", "current", jQuery(this)) });jQuery('.hook4tab>div').eq(0).trigger("mouseover");
//jQuery('.hook5tab>div').mouseover(function() { TabSelect(".hook5tab>div", ".hook5>a", "current", jQuery(this)) });jQuery('.hook5tab>div').eq(0).trigger("mouseover");
//jQuery('.hook6tab>div').mouseover(function() { TabSelect(".hook6tab>div", ".hook6>a", "current", jQuery(this)) });jQuery('.hook6tab>div').eq(0).trigger("mouseover");
//jQuery('.hook7tab>a').mouseover(function() { TabSelect(".hook7tab>a", ".hook7", "current", jQuery(this)) });jQuery('.hook7tab>a').eq(0).trigger("mouseover");
//jQuery('.hook8tab>a').mouseover(function() { TabSelect(".hook8tab>a", ".hook8", "current", jQuery(this)) });jQuery('.hook8tab>a').eq(0).trigger("mouseover");
//jQuery('.hook9tab>a').mouseover(function() { TabSelect(".hook9tab>a", ".hook9", "current", jQuery(this)) });jQuery('.hook9tab>a').eq(0).trigger("mouseover");
//jQuery('.hookFrom>a').mouseover(function() { TabSelect(".hookFrom>a", ".cityFrom", "current", jQuery(this)) });jQuery('.hookFrom>a').eq(0).trigger("mouseover");
//function TabSelect(tab,con,addClass,obj) {
//    var $_self = obj;
//    var $_nav = jQuery(tab);
//    $_nav.removeClass(addClass),
//	$_self.addClass(addClass);
//    var $_index = $_nav.index($_self);
//    var $_con = jQuery(con);
//    $_con.hide(),
//	$_con.eq($_index).show();
//}
//})

//焦点图
 jQuery(function(){
	 var index=1;
	 MyTime =setInterval(function(){
		showImg(index);
		index++;
		if(index==5){index=0;}
	 } , 5000);
		jQuery(".fadthumb b").click(function(){
		index=parseInt(jQuery(".fadthumb b").index(jQuery(this)));
		showImg(index);
		index++;
		if(index==5)index=0;
		});
		jQuery(".fousAd").mouseover(function(){
			if(MyTime){clearInterval(MyTime);}
		});
		jQuery(".fousAd").mouseout(function(){
			MyTime =setInterval(function(){
			showImg(index);
			index++;
			if(index==5){index=0;}
	 }, 5000);
		});

	 function showImg(i){
	 	jQuery(".fadthumb").css("backgroundPosition","0 "+(i+1)*(-109)+"px");
		jQuery(".fadimg a").hide();
		jQuery(".fadimg a").eq(i).show();
		jQuery(".fadinfo div").hide();
		jQuery(".fadinfo div").eq(i).fadeIn(500);
	}
	});

////节庆游
//jQuery(function(){
//	jQuery(".Jqytab>li").eq(0).addClass("current");
//	jQuery(".Jqytab>li").mouseover( function(){
//		jQuery(this).addClass("current").siblings("li").removeClass("current")
//	})
//})
//
////深度游策划
//jQuery(function(){
//	var page = 1;
//	var len = parseInt(jQuery('.rollItems>ul>li').length/2);
//	var t_width =parseInt(jQuery(".rollItems>ul>li:first").width()*2);  
//
//	jQuery('.goR').click(function(){
//			if( !jQuery('.rollItems>ul').is(":animated") ){
//				if( page == len ){  
//					jQuery('.rollItems>ul').animate({marginLeft:'0'}, 500); 
//						page = 1;
//				}else{
//					jQuery('.rollItems>ul').animate({marginLeft:'-='+t_width}, 200); 
//						page++;
//				}
//			 }
//				});
//
//	jQuery('.goL').click(function(){
//			if( !jQuery('.rollItems>ul').is(":animated") ){
//				if( page == 1 ){  
//					jQuery('.rollItems>ul').animate({marginLeft:'-='+t_width*(len-1)}, 200); 
//						page = len;
//				}else{
//					jQuery('.rollItems>ul').animate({marginLeft:'+='+t_width}, 500); 
//						page--;
//				}
//			 }
//				});
//})
//
////ACC
//jQuery(function(){
//	var index=0;
//	jQuery("dl.ac dt").eq(index).css("width","523px");
//	jQuery("dl.ac dd").eq(index).css("backgroundPosition",(-35)*index+"px -160px");
//	jQuery("dl.ac dd").mouseover(function(){
//		if(jQuery("dl.ac dt").eq(index).css("width")!="523px")return false;
//		i=jQuery("dl.ac dd").index(this);
//		if(i==index)return false;
//		jQuery("dl.ac dd").eq(index).css("backgroundPosition",(-35)*index+"px 0px");
//		jQuery(this).css("backgroundPosition",(-35)*i+"px -160px");
//		jQuery("dl.ac dt").eq(index).animate({width:0},200); 
//		jQuery(this).next().animate({width:523},200); 
//		index=i;
//	});
///* 	MyTime =setInterval(function(){
//		jQuery("dl.ac dd").eq(index).trigger("mouseover");
//	 }, 8000);*/
//});
//
////读旅游
//jQuery(function(){
//	var $index = 0;
//	var $nav = jQuery(".dlyL span i");
//	var $text = jQuery(".dlyL h4 a");
//	var $pics = jQuery(".dlyL div a");
//
//	jQuery(".dlyL span i").click(function() {	
//			var $self = jQuery(this);
//			var $index = $nav.index($self);
//			showMzin($index);
//	jQuery(".dlyL b.next").click(function(){
//			if($index<4){$index++}//0812,改为5个杂志
//			else if($index==4){$index=0}//0812,改为5个杂志
//			showMzin($index);
//	});
//	jQuery(".dlyL b.prev").click(function(){
//			if($index>0){$index--}
//			else if($index==0){$index=4}//0812,改为5个杂志
//			showMzin($index);
//	});
//
//	}).eq(0).trigger("click");
//
//function showMzin(i){
//		$pics.hide(),
//		$pics.eq(i).show(),
//		$text.hide(),
//		$text.eq(i).show(),
//		$nav.removeClass("current"),
//		$nav.eq(i).addClass("current");
//	}
//DLYTime =setInterval(function(){
//		jQuery(".dlyL b.next").trigger("click");
//	 }, 3000);
//jQuery(".dlyL").mouseover(function(){
//			if(DLYTime){clearInterval(DLYTime);}
//		});
//
//jQuery(".dlyL").mouseout(function(){
//			DLYTime =setInterval(function(){
//			jQuery(".dlyL b.next").trigger("click");
//	 },3000);
//		});
//
//});
//
////表格列交替颜色
//jQuery(function(){jQuery(".rankBoxW").find("div ul").find("li:even").addClass("evenli");});
//jQuery(function(){jQuery(".months div table").find("tr:even").addClass("even");});
//
////输入框获得焦点文本消失
//    jQuery(function() {
//        jQuery(":input").not(jQuery("#form1 input")).not(jQuery("#leju_search_form input")).addClass('notype').focus(function() {//乐居搜索框不消失
//            if (jQuery(this).val() == this.defaultValue) {
//                jQuery(this).val("").removeClass('notype');
//            }
//        }).blur(function() {
//            if (jQuery(this).val() == '') {
//                jQuery(this).val(this.defaultValue).addClass('notype');
//            }
//		else{
//			jQuery('.soBtn').focus(); }
//        });
//    });
//

