﻿function openwin() {
        window.open("znq.html", "newwindow", "height=761, width=800, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
    }
    
       var handle=null;
       function mouseOver(id)
       {
          handle=setTimeout(function(){$(id).animate({marginTop:-45},"show");bol=false;},500);
       }
       function mouseOut(id)
       {
          $(id).animate({marginTop:0},"show");
          clearInterval(handle);
       }
       
    function ad()
       {
           $("#tgAD").css("background-image","none");
           var dir=new Array('lr','rl','tb','bt','bt');
           $("#tgAD").flip({
              direction:dir[parseInt(Math.random()*5)],
              color:'#ccc',
              content:"<div style='width:959px; border:solid 4px #eee; font-size:50px; color:#fff; height:392px;'> <a href='/zph/xinguan/index.htm' target='_blank'><img src='Images/LogTop/nv2.jpg' style='border:none;'  alt='招聘' /></a></div>"
           })
       }
       
       //开启首页大广告
      $(document).ready(function(){
      
          if($.cookie('cookie_bigAd')==null)
          {
             $.cookie('cookie_bigAd','bigAd',{expires:2/24});
             
             setTimeout(function(){$("#tgAD").animate({height:400},1500)},1000);
             
             setTimeout(ad,5000);
             
             setTimeout(function(){$("#tgAD").animate({height:0},1500);},10000);
          }
      });
       

//首页漂浮广告
     document.write("<div id='dvFdAd' style='width:230px;height:110px;z-index:9999;'><a href='http://www.yuhuijob.com/zph/3-3/index.html' target='_blank'><img src='/news/2012/230-110.gif' alt='蜀都英汇 九周年庆' width='230' height='110'></a></div>");
var fdadDv = new AdMove("dvFdAd");
fdadDv.Run();
     
document.write("<div id='qqonline' style='top:270px; left:5px; width:150px; height:80px; position:absolute; '><a href='zphlist.aspx'><img src='/Images/LogTop/QQ.gif' alt='现场招聘预约' /></a></div>");

$(this).scroll(function() { // 页面发生scroll事件时触发 
var bodyTop = 0; 
if (typeof window.pageYOffset != 'undefined') { 
bodyTop = window.pageYOffset; 
} 
else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') 
{ 
bodyTop = document.documentElement.scrollTop; 
} 
else if (typeof document.body != 'undefined') { 
bodyTop = document.body.scrollTop; 
} 
$("#qqonline").css("top", 270 + bodyTop);
});
