
Tobj=new Object();Tobj.addEvent=function(obj,type,fn){if(obj.attachEvent){obj['e'+type+fn]=fn;obj[type+fn]=function(){obj['e'+type+fn](window.event);}
obj.attachEvent('on'+type,obj[type+fn]);}else{obj.addEventListener(type,fn,false);}};function $(t){return document.getElementById(t);}
function setCookie(sName,sValue,nExpireSec,sDomain,sPath)
{var sCookie=sName+"="+escape(sValue)+";";if(nExpireSec)
{var oDate=new Date();oDate.setTime(oDate.getTime()+parseInt(nExpireSec)*1000);sCookie+="expires="+oDate.toUTCString()+";";}
if(sDomain)
{sCookie+="domain="+sDomain+";";}
if(sPath)
{sCookie+="path="+sPath+";"}
document.cookie=sCookie;return true;}
function QQCookie(sName,sValue,nExpSec)
{setCookie(sName,sValue,nExpSec,"qq.com","/");}
function reset()
{QQCookie('uin',0,-1);$('loginStr').innerHTML='»¶Ó­¹âÁÙ£¬ÇëÏÈ<a href="javascript:Login();">µÇÂ¼</a>';}
function init_header(){var html;html=" <div id=\"global_header_main\">";html+="  <map>";html+="   <h1>";html+="    <a title=\"QQÐãÉÌ³Ç\" href=\"http://show.qq.com/index_v3.html\" target=\"_blank\">QQÐãÉÌ³Ç<\/a> ";html+="    <a title=\"QQÐãÀÖÔ°\" href=\"http:\/\/show.qq.com\/show_v3.html?MUrl=\/qqshow_v3\/htdocs\/mall\/inc\/paradise.html\" target=\"_blank\">QQÐãÀÖÔ°<\/a>";html+="    <span id=\"state\">"+$('state').innerHTML+"<\/span>";html+="   <\/h1>";html+="  <\/map>";html+="  <div id=\"login\">";html=html+"  <p id=\"loginStr\">"+$('loginStr').innerHTML+"<\/p>";html+="  <\/div>";html+=" <\/div>";$('global_header').innerHTML=html;}
Tobj.addEvent(window,"load",init_header);