var FootHtml = "";
FootHtml +="<link href='http://www.baihe.com/CSS/foot.css' rel='stylesheet' type='text/css' />";
FootHtml +="<div align='center'>";
FootHtml +="<div id='foots'>";
FootHtml +="<div class='foot_link'>";
FootHtml +="<a href='http://news.baihe.com/gybh/438.htm' target='_blank' onfocus='this.blur();'>关于百合</a>&nbsp;|&nbsp;<a href='http://story.baihe.com/storylist.jsp' target='_blank' onfocus='this.blur();'>成功故事</a>";
FootHtml +="&nbsp;|&nbsp;<a href='http://media.baihe.com' target='_blank' onfocus='this.blur();'>媒体关注</a>&nbsp;|&nbsp;<a href='http://news.baihe.com/gybh/130.htm' target='_blank' onfocus='this.blur();'>联系我们</a>";
FootHtml +="&nbsp;|&nbsp;<a href='http://news.baihe.com/kbmb/twbzy/447.htm' target='_blank' onfocus='this.blur();'>诚聘人才</a>&nbsp;|&nbsp;<a href='http://news.baihe.com/gybh/132.htm' target='_blank' onfocus='this.blur();'>广告联系</a>";
FootHtml +="&nbsp;|&nbsp;<a href='http://news.baihe.com/gybh/134.htm' target='_blank' onfocus='this.blur();'>服务条款</a>&nbsp;|&nbsp;<a href='http://news.baihe.com/gybh/135.htm' target='_blank' onfocus='this.blur();'>隐私保护</a>";
FootHtml +="&nbsp;|&nbsp;<a href='http://xsearch.baihe.com/city/8611/' target='_blank' onfocus='this.blur();'>分类搜索</a>&nbsp;|&nbsp;<a href='http://userinfo.baihe.com/feedback.html' target='_blank' onfocus='this.blur();'>意见反馈</a></div>";
FootHtml +="<div class='footback'>";
FootHtml +="<div class='back2'>";
FootHtml +="<div style='float:left'><img src='http://www.baihe.com/Images/Footimg/foot_logo.gif' border='0' alt='百合网' title='百合网'/></div>";
FootHtml +="<div class='foot_date' style='width:478px'>版权所有&copy; 2005 - 2011  百合网　京ICP证041124号  <br />";
FootHtml +="北京公司：北京市朝阳区光华路15号泰达时代中心1号楼13层 (100026) <br />";
FootHtml +="上海服务中心：上海市静安区大田路129号嘉发大厦A幢23楼E座 (200041)";
FootHtml +="<div style='margin-top:-73px; padding-left:285px'><a href='http://www.hd315.gov.cn/beian/view.asp?bianhao=010202006070400003' target='_blank'><img src='http://www.baihe.com/Images/Footimg/icp.gif' width='13' height='16' border='0'/></a>京公网安备110105000655号</div></div>";
FootHtml +="<div class='foot_date' style='width:300px'>";

CurrentUrl = window.location+"" ;
CurrentUrl = CurrentUrl.toLowerCase();

var vip = /vip.baihe.com\/(.*)/;
if(vip.test(CurrentUrl))
{
	FootHtml +="<div class='icon1'>客服专线：010-58208288(9：00 至 21：00)</div>";
}
else
{
	FootHtml +="<div class='icon1'>客服专线：010-58208288(8：00 至 24：00)</div>";
}

FootHtml +="<div class='icon2'>传真号码：010-85886626</div>";
FootHtml +="<div class='icon3'>客服邮箱：service@baihe.com</div>";
FootHtml +="</div>";
FootHtml +="<div style='clear:both'></div>";
FootHtml +="</div>";
FootHtml +="</div>";
FootHtml +="</div>";
FootHtml +="</div>"
document.write(FootHtml);

/* 在线列表 */
var  stronline = "<div align=center style='display:none;'><script language='javascript' src='http://log.baihe.com/'></script></div>";
document.write(eval("stronline"));
/* 用户跟踪 */
//var  genzong  = "<div align=center style='display:none;'><script language='javascript' src='http://www1.baihe.com/NewCookie.aspx'></script><div>";
//document.write(eval("genzong"));
/* 渠道跟踪 20080121*/
var locurlPre="";
var _baiheHead_ready_time = new Date();
var locUrlSrc = location.href;
var num=locUrlSrc.indexOf("?");
var start=locUrlSrc.indexOf("http://");
var referurl = document.referrer;
var fromURL="";
var rfstart =referurl.indexOf("http://");
var num1=referurl.indexOf("?");
var appname = navigator.userAgent; 
 var	screenparam= screen.width + '*' + screen.height + ' pixels';
 var img = new Image();
loadTime=_baiheHead_ready_time-_baiheHead_start_time;

if(num > 0){
	locurlPre=locUrlSrc.substr(num+1)+"&";
}else{
	locurlPre = "";
}
	
if(num>=0){
	 var locURL=locUrlSrc.substring(start,num);	
}
 else{
	 locURL=locUrlSrc;
}
	
if(num1>0){
	fromURL=referurl.substring(rfstart,num1);
                     
}else{
	fromURL=referurl;
}

function bzw_getCookieVal(offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1) {
        endstr = document.cookie.length;
    }
    return unescape(document.cookie.substring(offset, endstr));
}

// primary function to retrieve cookie by name
function bzw_getCookie(name) {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg) {
            return bzw_getCookieVal(j);
        }
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) break; 
    }
    return "";
}

// store cookie value with optional details as needed
function bzw_setCookie(name, value, expires, path, domain, secure) {
    document.cookie = name + "=" + escape (value) +
        ((expires) ? "; expires=" + expires : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

// remove the cookie by setting ancient expiration date
function bzw_deleteCookie(name,path,domain) {
    if (bzw_getCookie(name)) {
        document.cookie = name + "=" +
            ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") +
            "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    }
}

// utility function to retrieve an expiration date in proper
// format; pass three integer parameters for the number of days, hours,
// and minutes from now you want the cookie to expire (or negative
// values for a past date); all three parameters are required,
// so use zeros where appropriate
function bzw_getExpDate(days, hours, minutes) {
    var expDate = new Date( );
    if (typeof days == "number" && typeof hours == "number" && 
        typeof hours == "number") {
        expDate.setDate(expDate.getDate( ) + parseInt(days));
        expDate.setHours(expDate.getHours( ) + parseInt(hours));
        expDate.setMinutes(expDate.getMinutes( ) + parseInt(minutes));
        return expDate.toGMTString( );
    }
}


var _ck_pcc = bzw_getCookie("cookie_pcc");

var pcc_userId = bzw_getCookie("GCUserID");
if(pcc_userId == ""){
	pcc_userId = "0";
}

var pcc_tmpId = bzw_getCookie("tempID");
if(pcc_tmpId == ""){
	pcc_tmpId = Math.round(Math.random()*1000000)+1;	
	bzw_setCookie("tempID",pcc_tmpId,bzw_getExpDate(365,0,0),"/","baihe.com");
}

img.src="http://report1.baihe.com/qudao.html?"+locurlPre+"&locURL="+locURL+"&Referer="+fromURL+"&appname="+appname+"&screenparam="+screenparam+"&loadTime="+loadTime+"&ck_pcc="+escape(_ck_pcc)+"&GCUserID="+pcc_userId+"&tempId="+pcc_tmpId;


/*<script type="text/javascript">

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

</script>

<script type="text/javascript">

try {

var pageTracker = _gat._getTracker("UA-8269452-1");

pageTracker._trackPageview();

} catch(err) {}</script>*/
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
function GoogleJs()
{
 
 if(typeof(_gat)=="object" && typeof(_gat._getTracker())=="object")
 {
  var pageTracker = _gat._getTracker("UA-8269452-1");
  pageTracker._trackPageview();
  //alert( "已经加载!");
 }
 else
 {
  //alert( "加载失败!");
  setTimeout("GoogleJs()",200);
 }
}
GoogleJs();
