//循环执行
function loopTabulli(currI,size)
{
$('.tabul li').eq(currI).addClass('highlight');
$('.tabul li').eq(currI).siblings('li').removeClass('highlight');
var currId = currI+1;
$('#showcontent'+currId).css('display','block');
$('#showcontent'+currId).siblings('.showcontent').css('display','none');
currI =currI+1;
if(currI>=size){
currI = 0;
}
qianhuan = setTimeout("loopTabulli("+currI+","+size+")",timeoutqianhuan);
}
//首页的tab功能
$(document).ready(function(){
if($('.tabul li')!=null){
loopTabulli(0,$('.tabul li').size());
var currI = 0;
$('.tabul li').mouseover(function(){
clearTimeout(qianhuan);
qianhuan = -1; // 清除timeout后 记住这里要赋-1的值
setTimeout(function(){;},timouttabul);
$(this).addClass('highlight');
$(this).siblings('li').removeClass('highlight');
currI = $(this).index();
var currId = $(this).index()+1;
$('#showcontent'+currId).css('display','block');
$('#showcontent'+currId).siblings('.showcontent').css('display','none');
});
$('.dongtaixingwen').mouseout(function(){
qianhuan = setTimeout("loopTabulli("+currI+","+$('.tabul li').size()+")",timeoutqianhuan);
});
}
});