cook=g_cookie('skin');if(cook) em('skinc').href="css/sd_"+cook+".css"
var tab_now = 1;
function s(a){if(a!=tab_now) {em('tl_'+a).className='bnone';em('tl_'+tab_now).className='bcolor'
	if(a==1) {em('fav').style.display='none';em('right_top').style.display='';em('nav').style.display=''
	} else {em('nav').style.display='none';em('right_top').style.display='none';em('fav').style.display='';if(em('fav_i').src=="about:blank") { em('fav_i').src='http://www.hai123.cc/' }}tab_now=a}}
function ssk(a) { em('skinc').href="css/sd_"+a+".css";s_cookie('skin',a,5184000,'/')}
function em(e){	return document.getElementById(e)}
function start() {setInterval('refreshCalendarClock()',1000);var m=g_cookie('m');document.gomail.domains.selectedIndex=m}
function g_cookie(name)
{var arg = name + "=";var alen = arg.length;var c= document.cookie;var clen =c.length;var i = 0
while (i < clen){var j = i + alen
if (c.substring(i, j) == arg)
return _GetCookieVal (j)
i = c.indexOf(" ", i) + 1
if (i == 0) break}
return null}
function s_cookie(name, value)
{var expdate = new Date();var argv = s_cookie.arguments;var argc = s_cookie.arguments.length
var expires = (argc > 2) ? argv[2] : null;var path = (argc > 3) ? argv[3] : null
var domain = (argc > 4) ? argv[4] : null;var secure = (argc > 5) ? argv[5] : false
if(expires!=null) expdate.setTime(expdate.getTime() + ( expires * 1000 ))
document.cookie = name + "=" + escape (value) +((expires == null) ? "" : ("; expires="+ expdate.toGMTString()))
+((path == null) ? "" : ("; path=" + path)) +((domain == null) ? "" : ("; domain=" + domain))
+((secure == true) ? "; secure" : "")}
function _GetCookieVal(offset)
{var c= document.cookie;var endstr = c.indexOf (";", offset)
if (endstr == -1) endstr = c.length
return unescape(c.substring(offset, endstr))}
function write_tiao() {
if(top.location == self.location ) {
document.write('<div id="title1">&nbsp;</div>  <div id="title2"><a href="index.html" style="behavior:url(#default#homepage)" onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.hai123.net.cn\');return(false);">设为首页</a>&nbsp;&nbsp;&nbsp;<a href="http://post.hai123.net.CN">留言</a>&nbsp;</div>');}}

var bda=[[['www.baidu.com/index.php?tn=indexhtml_pg'],['www.baidu.com/s'],['']],[['mp3.baidu.com'],['mp3.baidu.com/m'],['134217728']],[['image.baidu.com'],['image.baidu.com/i'],['201326592']],[['news.baidu.com'],['news.baidu.com/ns'],''],
[['zhidao.baidu.com'],['zhidao.baidu.com/q'],['17']],[['post.baidu.com'],['post.baidu.com/f'],['']]]
gla=[[['www.google.cn/search?&hl=zh-CN&channel=searchlink'],['www.google.cn/search']],[['music.cn.yahoo.com/?pid=&source=yisou'],['music.cn.yahoo.com/search']],[['images.google.cn/images?&hl=zh-CN&channel=searchlink'],['images.google.cn/images']],[['news.google.cn/news?&hl=zh-CN&channel=searchlink'],['news.google.cn/news']],[['search.cn.yahoo.com/search?pid=&source=yisou'],['search.cn.yahoo.com/search']]]
var stab=1,srh_htm;
var bk=0;var gk=0;
var pswd=[['浪漫樱花'],['刘德华'],['自然风光'],['芙蓉姐姐'],['宝宝搞笑'],['梦幻仙境'],['顶 表情'],['MSN 表情'],['十二生肖'],['卡通人物']]
var mswd=[['不想让你哭'],['命运'],['折子戏'],['向天再借五百年'],['放开'],['遇上你是我的缘'],['任意门'],['紫藤花'],['笑红尘'],['相遇的魔咒']]
function sh(i) {
if(i!=stab) {
em('lt'+i).className='active'
em('lt'+stab).className=''
em('srh_a').href='http://'+bda[i-1][0];
document.bdfm.action='http://'+bda[i-1][1];
document.bdfm.ct.value=bda[i-1][2];
em('gl_a').href='http://'+gla[i-1][0];
if(i==2||i==5) {document.yhfm.action='http://'+gla[i-1][1];
if(i==2) {
var len=mswd.length
var idx=Math.floor(Math.random()*len)
document.bdfm.word.value=mswd[idx]
gidx=Math.floor(Math.random()*len)
if(gidx==idx){if(idx>=len-1) gidx=0;else gidx=idx+1}
document.gform.q.value=mswd[gidx]}
} else document.gform.action='http://'+gla[i-1][1];
if(i==3) {
document.bdfm.lm.value='-1';
len=pswd.length
var idx=Math.floor(Math.random()*len)
document.bdfm.word.value=pswd[idx]
gidx=Math.floor(Math.random()*len)
if(gidx==idx){if(idx>=len-1) gidx=0;else gidx=idx+1}
document.gform.q.value=pswd[gidx]}
else {if(i==2) document.bdfm.lm.value='-1';else document.bdfm.lm.value=''}
if(!(i==2||i==3)) {document.gform.q.value='';document.bdfm.word.value=''}
if(i==5) {document.bdfm.tn.value='ikaslist'}
else {document.bdfm.tn.value='indexhtml_pg'}
if(i==6) {document.bdfm.kw.value=document.bdfm.word.value}
else {document.bdfm.kw.value=''}
document.bdfm.word.select()
stab=i
em('gl_i').src='i/gl_'+i+'.gif';
em('srh_i').src='i/srh_'+i+'.gif'}
bk=0;gk=0;}
function pres(a) {if(a==1) {if(!bk) bdfm.word.value=''} else {if(!gk) gform.q.value=''}}
function kup(a) {if(a==1) bk=1;else gk=1}
function gss() {
if(stab==2||stab==5) {
document.yhfm.p.value=document.gform.q.value
clickCount(document.yhfm.action);
document.yhfm.submit();
return false
} else if(gform.action!='http://www.google.cn/search') clickCount(document.gform.action)}
