function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0) { real_url = url_str.split('/'); real_url = real_url[0]+'//'+real_url[2]+'/'+real_url[3]+'/'; } return real_url; } function goLocate(go_url) { document.location = purl + go_url; } function auto_height(){ var height = $('#left').height(); var new_height= height+30; $('#sub_body').css('min-height',new_height); } $(document).ready(function(){ $("div#menu").bind("focusin mouseover" , function(){$(this).stop(true).animate({ "width" : "200px" }, 200); }).bind("focusout mouseleave" , function(){$(this).stop(true).animate({ "width" : "145px" }, 200); }); $("div#menu ul li.mainmenu").hover(function() { $(">a", this).addClass("on"); $("ul.submenu",this).show(); },function(){ $(">a", this).removeClass("on"); $("ul.submenu",this).hide(); }); $("ul.submenu li").hover(function() { $(">a", this).addClass("on"); },function(){ $(">a", this).removeClass("on"); }); var pos=0; var p_total=3; $('.slider_image').clone().appendTo('.slider_panel'); function moveSlider(index){ var targetLeft=-(index*179); var temp=index; if(index>(p_total-1)){ index=index-p_total; } $('.slider_panel').stop(true).animate({left:targetLeft},'slow','swing',function(){ if(temp>(p_total-1)){ $('.slider_panel').css('left',0); pos=temp-p_total; } }); } var auto_rolling=function(){ rolling=setInterval(function(){ pos+=1; moveSlider(pos); },1000); } var stop_rolling=function(){ clearInterval(rolling); } moveSlider(pos); auto_rolling(); });