﻿var imgTop;
var imgLeft;
window.screen.width > 800 ? imgTop=38 : imgTop=38;
//window.screen.width > 800 ? imgLeft=window.screen.width-15-120 : imgLeft=window.screen.width-120-120;
imgLeft = GetLeftLoc();
imgLeftofLeft = 13;

function GetLeftLoc()
{
  return document.body.clientWidth-95-8;
}

function GetWindowOffsetTop() 
{
  if (document.body)
  { 
    return document.body.scrollTop;
  }
} 

function rightAdLoad()
{
		document.getElementById("adright1").style.top = GetWindowOffsetTop() + imgTop;
		document.getElementById("adright1").style.left = imgLeft;
		//document.getElementById("adright2").style.top = GetWindowOffsetTop() + document.documentElement.offsetHeight - imgTop - 300;
		//document.getElementById("adright2").style.left = imgLeft;
		rightmove();
}

function rightmove()
{
  if(document.body.offsetWidth>980)
  {
        document.getElementById("adleft1").style.display = "block";
		document.getElementById("adleft1").style.top = GetWindowOffsetTop() +  imgTop ;
		document.getElementById("adleft1").style.left = imgLeftofLeft;
  }
  else
  {
    document.getElementById("adleft1").style.display = "none";
  }

  if(document.body.offsetWidth>980)
  {
    imgLeft = GetLeftLoc();
    document.getElementById("adright1").style.display = "block";
    //document.getElementById("adright2").style.display = "block";
		document.getElementById("adright1").style.top = GetWindowOffsetTop() + imgTop;
		document.getElementById("adright1").style.left = imgLeft;
		//document.getElementById("adright2").style.top = GetWindowOffsetTop() + document.documentElement.offsetHeight - imgTop - 300;
		//document.getElementById("adright2").style.left = imgLeft;
  }
  else
  {
    document.getElementById("adright1").style.display = "none";
    //document.getElementById("adright2").style.display = "none";
  }

  setTimeout("rightmove();", 80);
}

function js_close_div(divname){
  document.getElementById(divname).style.visibility = "hidden";
}

if (window.screen.width > 800) //(document.body.offsetWidth>800)
{
		var adtable='<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td height="80"></td></tr><tr><td align="center" style="font-size:9pt;color:#000000;">'
		adtable=adtable+' </td></tr><tr><td align="center"><a target="blank" href="http://wpa.qq.com/msgrd?V=1&amp;Uin=523518158&amp;Site=福州就业网&amp;Menu=yes"><img alt="在线客服" border="0" src="http://wpa.qq.com/pa?p=1:523518158:7" /></a> </td></tr> <tr><td align="center" style="font-size:9pt;color:#000000;">'
		adtable=adtable+' </td></tr><tr><td align="center"><a target="blank" href="http://wpa.qq.com/msgrd?V=1&amp;Uin=623956254&amp;Site=福州就业网&amp;Menu=yes"> <img alt="在线客服" border="0" src="http://wpa.qq.com/pa?p=1:623956254:7" /></a></td></tr>   '
		 
		adtable=adtable+'<tr><td align="center">&nbsp;&nbsp;</td></tr><tr><td align="center"><a target=blank href="/our/Common.jsp"  alt="合作建议"><u>合作与建议</u></a></td></tr></table>'
		adtable='<div style="width: 93; height: 264; background-image: url(\'/image/index/qqbg.gif\'); background-repeat: no-repeat; background-position: center">'+adtable+'</div>';
   
  //document.write("<div id='adright1' style='position: absolute;width:80;top:88;left:"+imgLeft+";visibility: visible;z-index: 1'><IMG src='/image/first/Right.gif'  border='0'  usemap='#MapSHJobs'></div><map name='MapSHJobs'><area shape='rect' coords='69,4,87,18' href='javascript:js_close_div(\"adright1\");'><area shape='rect' coords='1,21,88,299'><area shape='rect' coords='0,1,72,22' ></map>");
 //  document.write("<div id='adleft1' style='position: absolute;width:80;top:88;left:"+imgLeftofLeft+";visibility: visible;z-index: 3'><IMG src='/image/first/spoto.gif'  border='0' usemap='#MapLeftPic'></div><map name='MapLeftPic'><area shape='rect' coords='69,4,87,18' href='javascript:js_close_div(\"adleft1\");'><area shape='rect' coords='1,21,88,299' ><area shape='rect' coords='0,1,72,22' ></map>");
  
	//js_close_div("adleft1");
	//js_close_div("adright1");
}