/*<![CDATA[*/
if(top.location != self.location){
	alert("您现在访问的不是西安大学生兼职网！\n\n点击“确定”西安大学生兼职网");
	top.location=self.location;
}

var newzxyp_scroll;

function newzxyp_up(){
	$("#newzxyp").animate({top:"0px"},1500,function(){
		$(this).find("li:first").appendTo(this)
		$(this).css({top:0});
	});
}

$(document).ready(function(){
$(".tablist .task_tab li").hover(function(){
	$(".task_list ul").hide().eq($(".task_tab li").removeClass("task_tab_on").index($(this).addClass("task_tab_on"))).show();
},function(){});
$(".perlist .per_tab li").hover(function(){
	$(".per_list ul").hide().eq($(".per_tab li").removeClass("per_tab_on").index($(this).addClass("per_tab_on"))).show();
},function(){});
$(".employer .tab li").hover(function(){
	$(".employer .tab_list .tl").hide().eq($(".employer .tab li").removeClass("curr").index($(this).addClass("curr"))).show();
},function(){});
$(".worker .title a").hover(function(){
	$(".worker .worker_list").hide().eq($(".worker .title a").index(this)).show();
},function(){});

var costlist = $(".employer .cost_list").length-1;
var costlist_i = 0;
$(".employer .cost_list:first").show();
$(".employer .larr").click(function(){
	if (costlist_i > 0){
		$(".employer .cost_list").hide();
		$(".employer .cost_list").eq(costlist_i-1).show();
		costlist_i--;
	}
});
$(".employer .rarr").click(function(){
	if (costlist_i < costlist){
		$(".employer .cost_list").hide();
		$(".employer .cost_list").eq(costlist_i+1).show();
		costlist_i++;
	}	
});


newzxyp_up_scroll=window.setInterval('newzxyp_up()',2000);

$("#newzxyp").hover(function(){
	clearInterval(newzxyp_scroll);
},function(){
	newzxyp_scroll=window.setInterval('newzxyp_up()',2000);
});


})
function g(o){return document.getElementById(o);}
function hoverli(n){
for(var i=1;i<=4;i++){g('tb_'+i).className='aa';g('tbc_0'+i).className='undis';}g('tbc_0'+n).className='list2';g('tb_'+n).className='bb';
}
function fun(){
hoverli(3);
}
function hoverli2(n){
for(var i=1;i<=4;i++){g('js_'+i).className='aa';g('jsc_0'+i).className='undis';}g('jsc_0'+n).className='list2';g('js_'+n).className='bb';
}
function fun2(){
hoverli2(3);
}
function hoverli3(n){
for(var i=1;i<=4;i++){g('be_'+i).className='aa';g('bec_0'+i).className='undis';}g('bec_0'+n).className='list2';g('be_'+n).className='bb';
}
function fun3(){
hoverli2(3);
}

/*]]>*/