<!--
var activeDiv,frontDiv;

function SetSmall(value)
{
	SetCookie("assistantSmall",value);
}
function SetActiveDiv(name)
{
	SetCookie("assistantActiveDiv",name);
}
function DelSmall()
{
	DelCookie("assistantSmall");
}
function GetActiveDiv()
{
	return GetCookie("assistantActiveDiv");
}
function GetSmall()
{
	return GetCookie("assistantSmall");
}
function GetLeftLoc()
{
  return document.body.clientWidth-211;
}

function GetTopLoc()
{
  return document.body.clientHeight-211;
}
function GetLeftLocByDiv(divname)
{
  return document.body.clientWidth- document.getElementById(divname).clientWidth;
}
function GetTopLocByDiv(divname)
{
  return document.body.clientHeight - document.getElementById(divname).clientHeight;
}

function GetWindowOffsetTop() 
{
  if (document.body)
  { 
    return document.body.scrollTop;
  }
} 

function rightAdLoad(divname)
{
	rightmove(divname);
}

function rightmove(divname)
{	
    document.getElementById(divname).style.visibility = "visible";
    document.getElementById(divname).style.top = GetWindowOffsetTop() +  GetTopLocByDiv(divname) ;
 	document.getElementById(divname).style.left = GetLeftLocByDiv(divname);
	
    setTimeout("rightmove('"+divname+"');", 80);
}

function js_close_div(divname){
  document.getElementById(divname).style.display = "none";
}
function js_open_div(divname){
  document.getElementById(divname).style.display = "";
}

function ShowAsHomePage()
{
	document.getElementById("DivHomePage").style.visibility = "visible";
	activeDiv = "DivHomePage";
	SetActiveDiv(activeDiv);
	rightAdLoad("DivHomePage");
	
	//setTimeout("js_close_div('DivHomePage');",3000);
    //setTimeout("ShowAsCompNotLogin();",3000);
}
function ShowAsCompNotLogin()
{
	document.getElementById("DivCompNotLogin").style.visibility = "visible";
	activeDiv = "DivCompNotLogin";
	SetActiveDiv(activeDiv);
	rightAdLoad("DivCompNotLogin");
	
	//setTimeout("js_close_div('DivCompNotLogin');",3000);
    //setTimeout("ShowAsHomePage();",3000);
}
function BackToCompNoLogin()
{
	js_close_div("DivCompSearch");
	js_open_div(frontDiv);
	activeDiv = frontDiv;
	SetActiveDiv(activeDiv);
	rightAdLoad(frontDiv);
}
function TurnToCompSearch()
{
	js_close_div("DivCompLogin");
	js_open_div("DivCompSearch");
	activeDiv = "DivCompSearch";
	SetActiveDiv(activeDiv);
	frontDiv  = "DivCompLogin";
	rightAdLoad("DivCompSearch");
}
function ShowAsCompLogin()
{
	document.getElementById("DivCompLogin").style.visibility = "visible";
	activeDiv = "DivCompLogin";
	SetActiveDiv(activeDiv);
	rightAdLoad("DivCompLogin");
}
function ShowSmall(divname)
{
	activeDiv = divname;	
	js_open_div("DivSmall");
	rightAdLoad("DivSmall");
}
function ShowSmallActive(divname,frontname)
{
	activeDiv = divname;	
	frontDiv = frontname;
	js_open_div("DivSmall");
	rightAdLoad("DivSmall");
}
function Close()
{
	js_close_div(activeDiv);
	SetSmall("True");
	js_open_div("DivSmall");
	rightAdLoad("DivSmall");
}
function Open()
{
	js_close_div("DivSmall");
	DelSmall();
	js_open_div(activeDiv);
	rightAdLoad(activeDiv);
}
function ShowDiv(divname,divfront)
{
	js_open_div(divname);
	activeDiv = divname;
	frontDiv  = divfront;
	SetActiveDiv(activeDiv);
	rightAdLoad(divname);
}
function ShowAsCompSearch()
{
	js_close_div("DivCompNotLogin");
	document.getElementById("DivCompSearch").style.visibility = "visible";
	js_open_div("DivCompSearch");
	activeDiv = "DivCompSearch";
	frontDiv  = "DivCompNotLogin";
	SetActiveDiv(activeDiv);
	rightAdLoad("DivCompSearch");
}
function WriteAsHomePage()
{
	document.write("<div id='DivHomePage' style='position: absolute;left:"+GetLeftLoc()+";cursor:hand;visibility: hidden;z-index: 3'>");
	document.write("<table width=\"211\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" onclick=\"js_close_div('DivHomePage');ShowAsCompNotLogin();\">");
    document.write("<tr><td width=\"211\" height=\"8\"><img src=\"/images/assistant/assistant_02.gif\" width=\"211\" height=\"8\" /></td>");
    document.write("</tr><tr>");
    document.write("<td height=\"18\" align=\"center\" background=\"/images/assistant/assistant_03.gif\"><table width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
    document.write("<tr><td class=\"assistant\"><table border=0 width='100%' cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"assistant\">hi 欢迎来到007人才中心,在确认您身份之前,我可以接受三项命令</td></tr><tr><td align=right><font color=red><i>Let's Go ...</i></font><img src='/images/assistant/sz.gif' width=26 height=19 /></td></tr></table></td></tr></table></td></tr>");
    document.write("<tr><td><img src=\"/images/assistant/assistant_04.gif\" width=\"211\" height=\"24\" /></td></tr>");
    document.write("<tr><td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
    document.write("<tr><td width=\"8%\">&nbsp;</td>");
    document.write("<td width=\"29%\"><img src=\"/images/assistant/assistant_01.gif\" width=\"60\" height=\"72\" /></td>");
    document.write("<td width=\"63%\"><iframe frameborder=0 name=\"telanduser1\" src='/employer/smartContactUser.aspx' width=\"100%\" height=95 nosize></iframe></td></tr></table></td></tr></table>");
	document.write("</div>");
}
function WriteAsCompNotLogin()
{
	document.write("<div id='DivCompNotLogin' style='position: absolute;left:"+GetLeftLoc()+";visibility: hidden;z-index: 3'>");
	document.write("<table width=\"211\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");  
    document.write("<td width=\"211\" height=\"8\"><img src=\"/images/assistant/assistant_02.gif\" width=\"211\" height=\"8\" /></td></tr><tr>");
    document.write("<td height=\"18\" align=\"center\" background=\"/images/assistant/assistant_03.gif\">");
	document.write("<table width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
    document.write("<tr><td width=\"10%\" class=\"assistant2\">No.1</td><td class=\"assistant1\"><a href=\"javascript:ShowAsCompSearch();\">搜索</a></td>");
    document.write("<td class=\"assistant2\" width='10%'>No.2</td><td class=\"assistant1\"><a href=\"/employer/login.aspx\">登陆</a></td><td class=\"assistant2\" width='10%'>No.3</td><td  class=\"assistant1\"><a href=\"/employer/reg.aspx\">注册</a></td>");
	document.write("<td align=right><a href=\"javascript:Close();\"><img src='/images/close.gif' width=14 height=14 border=0 alt='最小化' /></a></td></tr></table></td>");
    document.write("</tr><tr><td><img src=\"/images/assistant/assistant_04.gif\" width=\"211\" height=\"24\" /></td>");
    document.write("</tr><tr><td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
    document.write("<tr><td width=\"8%\">&nbsp;</td>");
    document.write("<td width=\"29%\"><img src=\"/images/assistant/assistant_01.gif\" width=\"60\" height=\"72\" /></td>");
    document.write("<td width=\"63%\"><iframe frameborder=0 name=\"telanduser1\" src='/employer/smartContactUser.aspx' width=\"100%\" height=95 nosize></iframe></td></tr></table></td></tr></table>");
	document.write("</div>");
}
function WriteAsCompLogin()
{
	document.write("<div id='DivCompLogin' style='position: absolute;left:"+GetLeftLoc()+";visibility: hidden;z-index: 3'>");
	document.write("<table width=\"211\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
    document.write("<td width=\"211\" height=\"8\"><img src=\"/images/assistant/assistant_02.gif\" width=\"211\" height=\"8\" /></td>");
    document.write("</tr><tr>");
    document.write("<td width=\"15%\" align=\"center\" background=\"/images/assistant/assistant_03.gif\"><table width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
    document.write("<tr><td width=\"11%\" align=\"left\"><img src=\"/images/assistant/assistant_05.gif\" width=\"14\" height=\"14\" /></td>");
    document.write("<td height=\"27\" class=\"assistant3\">人才档案推荐</td><td class=\"assistant3\" align=\"right\"><a href=\"javascript:Close();\"><img src='/images/close.gif' width=14 height=14 border=0 alt='最小化' /></a></td></tr><tr>");
    document.write("<td colspan=\"3\" align=\"left\"><iframe frameborder=0 name=\"new_date1\" src='/employer/assistantsearchbox.aspx?employerId="+ currentEmployerId +"' width=\"100%\" height=108 nosize></iframe></td>");
    document.write("</tr><tr>");
    document.write("<td colspan=\"3\" align=\"center\"><img src=\"/images/assistant/assistant_line.gif\" width=\"190\" height=\"3\" /></td>");
    document.write("</tr><tr>");
    document.write("<td colspan=\"3\" align=\"center\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
    document.write("<tr><td width=\"30%\" class=\"assistant5\"><a href='"+ sendPositionUrl +"'>职位发布</a></td>");
	document.write("<td class=\"assistant5\"><a href='"+reciveResumeUrl+"'>收到的简历</a></td><td class=\"assistant5\" style=\"cursor:hand\" onclick=\"TurnToCompSearch();\">搜索人才</td>");
    document.write("</tr></table></td></tr></table></td></tr>");
    document.write("<tr><td><img src=\"/images/assistant/assistant_04.gif\" width=\"211\" height=\"24\" /></td></tr>");
    document.write("<tr><td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
    document.write("<tr><td width=\"8%\">&nbsp;</td>");
    document.write("<td width=\"29%\"><a href='"+ userCenterUrl +"'><img src=\"/images/assistant/assistant_01.gif\" width=\"60\" height=\"72\" border=0 /></a></td><td width=\"63%\"><iframe frameborder=0 name=\"telanduser1\" src='/employer/smartContactUser.aspx' width=\"100%\" height=95 nosize></iframe></td>");
    document.write("</tr></table></td></tr></table>");
	document.write("</div>");
}
function WriteAsCompSearch()
{
	document.write("<div id='DivCompSearch' style='position: absolute;left:"+GetLeftLoc()+";visibility: hidden;z-index: 3'>");
	document.write("<table width=\"211\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
    document.write("<td width=\"211\" height=\"8\"><img src=\"/images/assistant/assistant_02.gif\" width=\"211\" height=\"8\" /></td>");
    document.write("</tr><tr>");
    document.write("<td width=\"15%\" align=\"center\" background=\"/images/assistant/assistant_03.gif\">");
	document.write("<table width=\"90%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=right><a href=\"javascript:BackToCompNoLogin();\"><img src='/images/back.gif' width=14 height=14 border=0 alt='返回' /></a>&nbsp;<a href=\"javascript:Close();\"><img src='/images/close.gif' width=14 height=14 border=0 alt='最小化' /></a></td></tr></table>");
	document.write("<iframe Id='FrmCompSearch' marginheight=0 marginwidth=0 scrolling=no background-color='#f5ffe1' width='85%' height='140' frameborder='0' src='/employee/AssistantSearch.aspx'></iframe></td></tr><tr>");
    document.write("<td><img src=\"/images/assistant/assistant_04.gif\" width=\"211\" height=\"24\" /></td></tr><tr>");
    document.write("<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
    document.write("<td width=\"8%\">&nbsp;</td><td width=\"29%\"><img src=\"/images/assistant/assistant_01.gif\" width=\"60\" height=\"72\" /></td>");
    document.write("<td width=\"63%\"><iframe frameborder=0 name=\"telanduser1\" src='/employer/smartContactUser.aspx' width=\"100%\" height=95 nosize></iframe></td></tr></table></td></tr></table>");
	document.write("</div>");
}
function WriteAsSmall()
{
	document.write("<div id='DivSmall' style='cursor:hand;position: absolute;left:"+GetLeftLoc()+";visibility: hidden;z-index: 3' onclick='Open();'>");
    document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
    document.write("<td><img src=\"/images/assistant/assistant_01.gif\" width=\"40\" height=\"48\" /></td>");
    document.write("</tr></table>");
	document.write("</div>");
}
function WriteShengMing()
{
   document.write("<div id=\"jobshengming\" style=\"left:2px;position:absolute; z-index:100;\">");
   document.write("<img src=\""+imgPath+"zq_shengming.jpg\" border=\"0\"></div>");
}