/**
 * @author zhys9
 * @version 2.0
 * @date 20081225
 * @update 20090325 ¿C&#28850;Îc __footer_
 */
if(typeof _page_=='undefined')var _page_={};
var jLoad={};	//auto complate
function __header_(key,newwindow,auto){
	this.newwindow=newwindow==0?0:1;	//óc§êê_îí¢î&#24385;ý®&#12422;&#24755;&#32497;ÿÿ	__header_.uo.key=key||"";	//ºdéÍü£îã©â&#25965;æ¢ÿÿ	this.auto = auto==0?0:1;	//óqý¥ÙIñS¼ÃÓRÆhú¦ÎpôeÉÙÎ]
	this.loadFiles();
	this.hs=this.s();
	this.hs = '<div class="header_v2">'+this.hs;	//start of channel_head
	this.hs = this.hs.replace("{USER_STATUS}",this.userStatus());
	this.hs += "</div>";	//end of channel_head
};
__header_.prototype.tieba=function(barName,searchInBar) {
	__header_.uo.barName=barName?barName:"";
	__header_.uo.searchInBar=searchInBar?searchInBar:0;
};
__header_.prototype.s = function(){
	
	return ''+
	'<a href="http://hk.56.com/gate/big5/www.56.com" title="56.com - ®þüd&#27991;Ãìÿÿ&#12359;ôð&#21230;”îÝÞ&#25117;&#22414;ý®ûG&#32137;&#32468;ÿÿ&#37734;£¸Àz·êÜË‘ð·êØ\Ùï,·êÜË‘ð&#37820;·ÀÀx,·êÜË‘ð®þ°úÖåîíÔí&#22414;ý®ûDðlÁîÿÿ class="logo">56.com</a>'+
	'<!--= navigation -->'+
	'<div class="navigation">'+
	'	<ul>'+
	'		<li><a href="http://hk.56.com/gate/big5/www.56.com/">´ÐÑæ¡r</a></li>'+
	'		<li'+__header_.uo.e('so.56')+' '+__header_.uo.e('/top/')+'><a href="http://hk.56.com/gate/big5/so.56.com/videolist-type-hot.html">·êÜË‘ð</a></li>'+
	'		<li'+__header_.uo.e('album','www.56')+'><a href="http://hk.56.com/gate/big5/www.56.com/w/album_list-type-today.html">®þ&#25785;&#32235;</a></li>'+
	'		<li'+__header_.uo.e('space')+'><a href="http://hk.56.com/gate/big5/www.56.com/w11/space_index.phtml">²Ò¬x&#26879;</a></li>'+
	'		<li'+__header_.uo.e('tieba.56')+'><a href="http://hk.56.com/gate/big5/tieba.56.com/">íi§ø&#24770;</a></li>'+
	'		<li'+__header_.uo.e('/list/')+'><a href="http://hk.56.com/gate/big5/www.56.com/p98/list/" target="_self">öa½Z&#21821;·êÜË‘ð</a></li>'+
	'		<li'+__header_.uo.e('kankan.56')+'><a href="http://hk.56.com/gate/big5/kankan.56.com/" target="_blank">öfìÒÙï</a></li>'+
	'		<li'+__header_.uo.e('youxi.56')+'><a href="http://hk.56.com/gate/big5/youxi.56.com/" target="_blank">æç&#25118;¤÷</a></li>'+
	'	</ul>'+
	'	<span class="pro_beta">beta</span>'+
	'</div>'+
	'{USER_STATUS}'+
	'<div class="search">'+
	'	<div class="so_sup" id="search_ext"></div>'+
	'	<div class="so">'+
	'		<div class="so_option">'+
	'			<span id="soType" class="so_sel" onclick="__header_.uo.searchTypeShow();">·êÜË‘ð</span>'+
	'			<a href="javascript:;" class="so_v" onclick="__header_.uo.searchTypeShow();">v</a>'+
	'			<ul id="soOption" class="so_option_list" style="display:none;" onmouseover="if(__header_.uo.t) {clearTimeout(__header_.uo.t);__header_.uo.t=null;}" onmouseout="__header_.uo.searchTypeHidden();">'+
	'				<li><a href="javascript:;" onclick="__header_.uo.searchVideo(this)">·êÜË‘ð</a></li>'+
	'				<li><a href="javascript:;" onclick="__header_.uo.searchAlbum(this)"">®þ&#25785;&#32235;</a></li>'+
	'				<li><a href="javascript:;" onclick="__header_.uo.searchTieba(this)"">íi§ø&#24770;</a></li>'+
//	'				<li><a href="javascript:;" onclick="__header_.uo.search114(this)"">114</a></li>'+
	'			</ul>'+
	'		</div>'+
	'		<div class="so_input">'+
	'			<form name="search" action="http://hk.56.com/gate/big5/so.56.com/index" accept-charset="utf-8" method="GET" onsubmit="if(/msie/.test(navigator.userAgent.toLowerCase()))document.charset=\'utf-8\'" target="'+(this.newwindow?'_blank':'_self')+'">'+
	'				<input type="text" maxlength="60" id="Search_input" name="key" class="inp_search hui" onfocus="this.className=\'inp_search\';" value="'+__header_.uo.key+'" autocomplete="off" onblur="jLoad.jBlur();this.className=\'inp_search hui\';" onkeyup="jLoad.eHandle(event)"/>'+
	'				<input id="Search_btn" type="submit" value="&#37820;·ÀÀx" class="btn_search" />'+
	'				<input type="hidden" id="Type_input" name="type" />'+
	'				<input type="hidden" value="'+(/msie/.test(navigator.userAgent.toLowerCase())?document.charset:'utf-8')+'" name="charset" />'+
	'				<input type="hidden" id="searchBar" name="bn" value="" />'+
	'			</form>'+
	'			<div id="showJKL" style="display:none;"></div>'+
	'		</div>'+
	'	</div>'+
	'	<div class="so_sub"><a href="http://hk.56.com/gate/big5/top.56.com/">&#37818;&#25493;‘i©qÿÿ/a><a href="http://hk.56.com/gate/big5/so.56.com/videolist-type-new.html">ÃìÿÿÏ`·êÜË‘ð</a><a href="http://hk.56.com/gate/big5/so.56.com/videolist-type-hot.html" class="last">ÃìÿÿõÁ·êÜË‘ð</a></div>'+
	'</div>';
};
__header_.prototype.c = '\
	';	//{SEARCH_FORM}

__header_.prototype.userStatus = function(){
	var user_id = getCookie("member_id").replace("@56.com","");
	var nickname = decodeURIComponent?decodeURIComponent(getCookie("user_nickname_js")):user_id;
	var u=nickname?nickname:user_id;
	if(user_id.length) {
		//<!--[®fÓ³Ão&#38340;&#21748;-->\
		var s = '<span id="_sysInfo">Âí£¶&#12477;,<a href="http://hk.56.com/gate/big5/'+user_id+'.56.com/" target="_blank" class="last">'+(u.length>10?u.substring(0,8)+'..':u)+'</a></span><a href="http://hk.56.com/gate/big5/www.56.com/admin/">ßX¢CÕQ®þüdÁZ</a><a target="_blank" href="http://hk.56.com/gate/big5/v.56.com/admin_upload_flash.php?m=web">®þ°úÖå·êÜË‘ð</a><a target="_blank" href="http://hk.56.com/gate/big5/v.56.com/admin_rec.php">ëròK&#22487;·êÜË‘ð</a><a href="http://hk.56.com/gate/big5/space.56.com/php/logout.php" class="last">è§ÿÿññ</a>';
	}else{
		//<!--[Ãìú¨Ão&#38340;&#21748;-->\
		var s = '<span><a href="http://hk.56.com/gate/big5/w.56.com/userLogin.php">&#37927;»£ßZ</a><a href="http://hk.56.com/gate/big5/urs.56.com/Reg1.php" target="_blank" class="last">®\£¶&#21821;</a></span><a target="_blank" href="http://hk.56.com/gate/big5/v.56.com/admin_upload_flash.php?m=web">®þ°úÖå·êÜË‘ð</a><a target="_blank" href="http://hk.56.com/gate/big5/v.56.com/admin_rec.php">ëròK&#22487;·êÜË‘ð</a><a target="_blank" href="http://hk.56.com/gate/big5/www.56.com/m2v/" class="last">îâ¦·ßcöa½Z&#21821;·êÜË‘ð</a>';
	}
	return '<div class="sys_info">'+s+'</div>';
};
__header_.prototype.loadFiles = function(){
	document.writeln('<link href="http://hk.56.com/gate/big5/www.56.com/admin/style/blue_2009/base/theme_v2.31.css" rel="stylesheet" type="text/css" />');
	if(this.auto && typeof JKLoad=="undefined") {
		document.writeln('<script type="text/javascript" src="http://hk.56.com/gate/big5/www.56.com/js/fly56/JKL_1.1.2.js" charset="gb2312"></scr'+'ipt>');
	}
};
__header_.prototype.loadHeader = function(){
	if(this.auto) {
		__header_.uo.initJKLoad();
	}
	document.writeln(this.hs);
	
	//set default serarch type
	if(__header_.uo.e('album')){
		__header_.uo.searchAlbum();
	}else if(__header_.uo.e('tieba.56')) {
		var l=parse_str(document.location.href);
		__header_.uo.searchTieba();
		__header_.uo.tb();
	}else{
		__header_.uo.searchVideo();
	}
};
__header_.uo={};
__header_.uo.searchInBar=0;
__header_.uo.barName="";
__header_.uo._=function(s){
	return document.getElementById(s);
}
__header_.uo.e=function(){
		for(var i=0;i<arguments.length;i++) {
			if(document.location.href.indexOf(arguments[i])==-1) {
				return "";
			}
		}
		return ' class="active"';
	}
__header_.uo.initJKLoad=function(){
	jLoad = new JKLoad("jLoad");
	jLoad.FN  ='search';
	jLoad.II  = 'Search_input';
	jLoad.SI  = 'Search_btn';
};
//__header_.uo.removeJKLoad=function(){
//	jLoad.jBlur=function(){};
//	jLoad.eHandle=function(){};
//};
__header_.uo.searchTypeShow=function(){
	if(__header_.uo.t) {clearTimeout(__header_.uo.t);__header_.uo.t=null;}
	var o=__header_.uo._('soOption').style;
	o.display=o.display=='none'?'block':'none';
	__header_.uo.searchTypeHidden();
};
__header_.uo.searchTypeHidden=function(){
	if(__header_.uo.t)return;
	__header_.uo.t=setTimeout(function(){__header_.uo._('soOption').style.display='none';},1500);
};
__header_.uo.setType=function(sName){
	__header_.uo._("soType").innerHTML=sName;
	__header_.uo._('soOption').style.display='none';
};
__header_.uo.setForm=function(action,kName,type){
	document.forms["search"].action=action;
	__header_.uo._("Search_input").name=kName;
	var f=__header_.uo._("Search_input");
	if(f.value.length==0) {
		f.value=__header_.uo.key?__header_.uo.key:__header_.uo.barName;
	}
	__header_.uo._("Type_input").value=type;
};
__header_.uo.searchVideo=function(){
	__header_.uo.setType("·êÜË‘ð");
	__header_.uo.setForm("http://hk.56.com/gate/big5/so.56.com/index","key","");
//	_header_.uo.initJKLoad();
	__header_.uo._("search_ext").innerHTML='<a href="http://hk.56.com/gate/big5/www.56.com/h15/u_obama09.html" target="_blank">¾ü&#12517;¤ÏÝÒÿÿ/a><a href="http://hk.56.com/gate/big5/www.56.com/w16/play_album-aid-7749324_vid-NDc2MjU1MjQ.html" target="_blank">Áó£º¬ª¿G&#9538;ÞÖ</a><a href="http://hk.56.com/gate/big5/www.56.com/w75/play_album-aid-7682366_vid-NDY4NzU3ODM.html" target="_blank">ºý&#22559;&#28716;®þ&#22794;&#27991;</a>';
};
__header_.uo.searchAlbum=function(){
	__header_.uo.setType("®þ&#25785;&#32235;");
	__header_.uo.setForm("http://hk.56.com/gate/big5/so.56.com/index","key","album");
//	_header_.uo.initJKLoad();
	__header_.uo._("search_ext").innerHTML='<a href="http://hk.56.com/gate/big5/www.56.com/h15/u_obama09.html" target="_blank">¾ü&#12517;¤ÏÝÒÿÿ/a><a href="http://hk.56.com/gate/big5/www.56.com/w16/play_album-aid-7749324_vid-NDc2MjU1MjQ.html" target="_blank">Áó£º¬ª¿G&#9538;ÞÖ</a><a href="http://hk.56.com/gate/big5/www.56.com/w75/play_album-aid-7682366_vid-NDY4NzU3ODM.html" target="_blank">ºý&#22559;&#28716;®þ&#22794;&#27991;</a>';
};
__header_.uo.searchTieba=function(){
	__header_.uo.setType("íi§ø&#24770;");
	__header_.uo.setForm("http://hk.56.com/gate/big5/tieba.56.com/so","kw","");
//	__header_.uo.removeJKLoad();
	__header_.uo.tb=function(){__header_.uo.setForm("http://hk.56.com/gate/big5/tieba.56.com/v","bn","");__header_.uo._("searchBar").value="";__header_.uo._("searchBar").name="";};
	__header_.uo.sk=function(){__header_.uo.setForm("http://hk.56.com/gate/big5/tieba.56.com/so","kw","");__header_.uo._("searchBar").value="";__header_.uo._("searchBar").name="";};
	__header_.uo.ib=function(){__header_.uo.setForm("http://hk.56.com/gate/big5/tieba.56.com/so","kw","");__header_.uo._("searchBar").value=__header_.uo.barName;__header_.uo._("searchBar").name="bn";};
	var ext='<label for="ra1"><input id="ra1" type="radio" '+(!this.key.length&&!this.searchInBar?'checked':'')+' name="st" value="1" onclick="__header_.uo.tb();" />âYÒ]&#21446;íi§ø&#24770;</label> ' +
			'<label for="ra2"><input id="ra2" type="radio" '+(this.key.length&&!this.searchInBar?'checked':'')+' name="st" value="2" onclick="__header_.uo.sk();" />&#37820;·ÀÀxÚ¬&#26663;öò</label>';
	if(__header_.uo.barName.length) {
		ext+='<label for="ra3"><input id="ra3" type="radio" '+(this.searchInBar?'checked':'')+' name="st" value="3" onclick="__header_.uo.ib()" />Áí&#1091;Ôv&#37820;·ÀÀx</label>';
	}
	__header_.uo._("search_ext").innerHTML=ext;
};
__header_.uo.search114=function(){
	__header_.uo.setType("114");
	__header_.uo.setForm("http://hk.56.com/gate/big5/www.56.com/tuiguang/114.html","key","");
	document.forms["search"].target="_blank";
	document.forms["search"].charset.value=document.charset?document.charset:document.characterSet;
	document.forms["search"]["acceptCharset"]=document.charset?document.charset:document.characterSet;
};

if(typeof getCookieVal == "undefined") {
	function getCookieVal(offset) {
		var endstr = document.cookie.indexOf(";", offset);
		if(endstr == -1) {
			endstr = document.cookie.length;
		}
		return unescape(document.cookie.substring(offset, endstr));
	}
	function 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 getCookieVal(j);
			}
			i = document.cookie.indexOf(" ", i) + 1;
			if(i == 0) break;
		}
		return "";
	}
}
if(typeof parse_str=='undefined') {
	function parse_str(string){
		var a = [];
		var oRs = {};
		var query = string.substr(string.indexOf('?')+1);
		var tmp = query.split('&');
		var k;
		for(var i=0;i<tmp.length;i++){
			a = tmp[i].split('=');
			oRs[a[0]] = a[1];
		}
		return oRs;
	}
}


function __footer_(){
	if(typeof(___script___) == "object"){
		___script___.include("foot");
	}
	
	document.writeln('<div class="footer_v2 clearfix">\
	<ul class="nav">\
		<li><a href="http://hk.56.com/gate/big5/www.56.com/intro.html" target="_blank">îã¥Rò«56æçÿÿ/a></li>\
		<li><a href="http://hk.56.com/gate/big5/www.56.com/intro_us_en.html" target="_blank">About us</a></li>\
		<li><a href="http://hk.56.com/gate/big5/www.56.com/intro_events.html" target="_blank">îãûÅ&#24451;Áî£·ÿÿ</a></li>\
		<li><a href="http://hk.56.com/gate/big5/www.56.com/intro_worldfocus.html" target="_blank">ÀÞÕ¥&#32139;îãÂÎ´¯</a></li>\
		<li><a href="http://hk.56.com/gate/big5/www.56.com/intro_contactus.html" target="_blank">ùUÑÒ×ëñi&#25116;·Æ</a></li>\
		<li><a href="http://hk.56.com/gate/big5/www.56.com/intro_law.html" target="_blank">&#37911;&#22559;&#28488;&#37816;Ê¨Öé</a></li>\
		<li><a href="http://hk.56.com/gate/big5/www.56.com/intro_advertise.html" target="_blank">ÄÊ«±å¨Ãì&#23941;&#23007;</a></li>\
		<li><a href="http://hk.56.com/gate/big5/www.56.com/hr/intro_56.html" target="_blank">Áî&#29362;&#21446;56æçÿÿ/a></li>\
		<li><a href="http://hk.56.com/gate/big5/www.56.com/help/" target="_blank">Ú¬üä«¿®þüdÁZ</a></li>\
		<li class="last"><a href="http://hk.56.com/gate/big5/www.56.com/intro_idea.html" target="_blank">Âï&#24538;”éîíá«”n</a></li>\
	</ul>\
	<div class="net_alerm">\
		<a target="_blank" href="http://hk.56.com/gate/big5/www.cqnet110.gov.cn/"><img src="http://hk.56.com/gate/big5/www.56.com/admin/images/net_cq1.jpg"/></a>\
		<a target="_blank" href="http://hk.56.com/gate/big5/210.76.65.188/netalarm/index.jsp"><img src="http://hk.56.com/gate/big5/www.56.com/admin/images/net_cq2.jpg"/></a>\
		<a target="_blank" href="http://hk.56.com/gate/big5/210.76.65.188/webrecord/innernet/Welcome.jsp?bano=4402013010502"><img src="http://hk.56.com/gate/big5/www.56.com/admin/images/net_cq3.jpg"/></a>\
	</div>\
	<div class="copyright">\
		<p><span>óc&#22249;&#32137;óc¼S2007]013îíÿÿ/span><span>&#38010;Ø\ÍHîâ¦·ßcºý&#24538;Õeæ¦½Z&#24434;æ¢¨ÞµÔÚûÿÿ35îíÿÿ/span><span>Copyright &copy;2009 56.com &#37911;&#22559;&#28488;ñSÿÿÙó</span></p>\
		<p><a href="http://hk.56.com/gate/big5/www.miibeian.gov.cn/" target="_blank">ºö’ÌCPæ¢&#19973;220041027</a><span>æçÝr&#31926;·ê&#21975;Øøæ¦½Z&#24434;æ¢ÿÿ908336</span><span>Æpý¥ÝµÃì&#23941;&#23007;æ¦½Z&#24434;æ¢ÿÿºöÿÿ009-0009)</span></p>\
	</div>\
</div>');
}