﻿function _homeinit(){
	if (location.host=="read.5iyinyue.com"){
		location.host="www.5ilog.com"
	}

if (_HomeRow.error){
	_WriteErrHead()
	return
}

document.title=_HomeRow.name+" 的QQ家园 QQ驿站"
_SetCssCookie()
if (top!=self) top.location=location


if (_HomeRow.hometype<=0) _HomeRow.hometype=1
var homeurl="/cgi-bin/bbs/home"+_HomeRow.hometype+"/"
var mainsrc="",ltype,lid="";
var url=""
var maintype=QueryString.maintype
if (!maintype){
		if (_HomeRow.homeconfig == -1){
        //'直接使用/u/...
        url="http://"+_GetHomeHost(_HomeRow.homeid)+"/u/" + _HomeRow.logname.charAt(0) + "/" +_HomeRow.logname + "/"
		}else{
			lid=_HomeRow.lid
  		mainsrc = _HomeRow.mainsrc
  		ltype=_HomeRow.ltype
  	}
}else 	ltype=maintype


if (url=="")
	url=homeurl+"?uid="+_HomeRow.uid+"&logname="+_HomeRow.logname
+"&did="+(_HomeRow.homeconfig==-1?"0":_HomeRow.homeconfig)
+"&hlink="+encodeURIComponent(mainsrc)+"&ltype="+ltype+"&lid="+lid

document.write('<body style="margin:0px;padding:0px;overflow:hidden">'
,"<iframe Scrolling=no width=100% height=100% border='0' frameborder='0' src='"
,url,"'></iframe>"
)

}

function _hometail(){
if (_HomeRow.error){ _WriteErr(_HomeRow);return}

_syspop2(true,"usrhome")
document.write('<div style="display:none"><script src="http://js.users.51.la/1189948.js"><'+'/script>')
}

function _hometail1(){
if (_HomeRow.error) _WriteErr1(_HomeRow)
}
function _hometail2(){
if (_HomeRow.error) _WriteErr2(_HomeRow)
}