$(function(){
$(".navi li:first").removeClass("current-menu-item");
$(".navi li").hover(function(){
$(this).find('ul:first').slideDown("fast").css({visibility:"visible",display:"block"});
},function(){
$(this).find('ul:first').slideUp("fast").css({visibility:"hidden"});
});
});
$(function(){
$(".hostitem").hover(function(){
$(this).addClass("addbg");
},
function(){
$(this).removeClass("addbg");
}
);
});
$(function(){
$('#s').focus(function(){if($(this).val()=='输入关键字'){$(this).val('').css({color:"#454545"});}}
).blur(function(){if($(this).val()==''){$(this).val('输入关键字').css({color:"#707070"});}});
});
$(function(){
var index=0;
$("#operate span:first").addClass("hov");
$("#operate span").mousedown(function(){
index=$("#operate span").index(this);
showImg(index);
});
$('#slideshow').hover(function(){
if(MyTime){
clearInterval(MyTime);
}
},function(){
MyTime=setInterval(function(){
showImg(index)
index++;
if(index==5){index=0;}
},6000);
});
var MyTime=setInterval(function(){
showImg(index)
index++;
if(index==5){index=0;}
},6000);
})
function showImg(i){
$("#showimg img")
.eq(i).stop(true,true).fadeIn(1500)
.parent().siblings().find("img").fadeOut(1000);
$("#operate span")
.eq(i).addClass("hov")
.siblings().removeClass("hov");
}
