var exp = new Date(); 
exp.setTime(exp.getTime() + (7*24*60*60*1000));
var LongExp = new Date(); 
LongExp.setTime(LongExp.getTime() + (365*24*60*60*1000));

function ihp(){
var ishome = GetCookie('is265home'); 
if (ishome == null) {
SetCookie('is265home','1',LongExp);
SetCookie('newis265home','1',exp);
return 1
}
else{
var newishome = GetCookie('newis265home');
if(newishome == null) {
SetCookie('newis265home','1',LongExp);
return 1
}
return 0
}
}

function opencn(){
if(ihp()==1){
var ref=top.location.href;
if(ref.indexOf("265.com")==7){
document.links[0].style.behavior='url(#default#homepage)';if(!(document.links[0].isHomePage('http://265.com/')))document.links[0].setHomePage('http://265.com/');
}
else {
document.links[0].style.behavior='url(#default#homepage)';if(!(document.links[0].isHomePage('http://www.265.com/')))document.links[0].setHomePage('http://www.265.com/');
}
}
}
setTimeout("opencn()",1000)

document.write('<table border="0" width="760" cellspacing="0" cellpadding="2">')
document.write('<tr><td width="100%" height="10"></td></tr>')
document.write('<tr align="center"><td width="100%">')
document.write('<form id="SoAll" method="get" target="_blank" onsubmit="gt(this);return s4()" action=""><div id="gForm" style="display:none"></div>')
document.write('<table border="0" width="100%" cellspacing="0" cellpadding="0" style="border:1px solid FFCF5F;background:#FFF7D6">')
document.write('<tr><td width="10%" align="right"><b>综合搜索：</b></td><td width="27%"><input type="text" class="InpTxt" id="Kaa" name="q" value="" size="18" maxlength="" onfocus="this.select()" />&nbsp;<input type="submit" value="搜索" /><\/td>')
document.write('<td><table width="100%"><tr>')
document.write('<td><input type="checkbox" id="a0" checked="checked" /><a href="http://www.google.cn/search?hl=zh-CN&client=aff-avalanche&forid=1&q=&channel=textlink" target="_blank">Google</a></td>')
document.write('<td><input type="checkbox" id="a1" /><a href="http://www.yok.com/" target="_blank">YOK</a></td>')
document.write('<td><input type="checkbox" id="a2" /><a href="http://www.baidu.com/index.php?tn=yokcom" target="_blank">百度</a></td>')
document.write('<td><input type="checkbox" id="a3" /><a href="http://search.cn.yahoo.com/" target="_blank">雅虎</a></td>')
document.write('<td><input type="checkbox" id="a4" /><a href="http://iask.com/" target="_blank">爱问</a></td>')
document.write('<td><input type="checkbox" id="a5" /><a href="http://www.sogou.com/" target="_blank">搜狗</a></td>')
document.write('<td><input type="checkbox" id="a6" /><a href="http://www.google.cn/shenghuo/" target="_blank">生活</a></td>')
document.write('<td><input type="checkbox" id="a7" /><a href="http://cb.kingsoft.com/search?t=word&lang=gb2312" target="_blank">词霸</a></td>')
document.write('</tr><tr>')
document.write('<td><input type="checkbox" id="a8" /><a href="http://mp3.baidu.com/" target="_blank">MP3</a></td>')
document.write('<td><input type="checkbox" id="a9" /><a href="http://search.sogua.com/lyric.asp" target="_blank">歌词</a></td>')
document.write('<td><input type="checkbox" id="a10" /><a href="http://www.verycd.com/" target="_blank">影视</a></td>')
document.write('<td><input type="checkbox" id="a11" /><a href="http://chaoji.yok.com/" target="_blank">软件</a></td>')
document.write('<td><input type="checkbox" id="a12" /><a href="http://images.google.cn/imghp?hl=zh-CN&client=aff-avalanche&channel=textlink&ie=UTF-8&oe=UTF-8&affdom=265.com&hs=5Rx&tab=wi&q=" target="_blank">图片</a></td>')
document.write('<td><input type="checkbox" id="a13" /><a href="http://sosu.cmfu.com/genius/" target="_blank">小说</a></td>')
document.write('<td><input type="checkbox" id="a14" /><a href="http://news.google.cn/nwshp?hl=zh-CN&client=aff-avalanche&channel=textlink&ie=UTF-8&oe=UTF-8&affdom=265.com&hs=5Rx&q=&affdom=265.com&hs=9Rx&tab=in" target="_blank">新闻</a></td>')
document.write('<td><input type="checkbox" id="a15" /><a href="http://bbs.qihoo.com/" target="_blank">论坛</a></td>')
document.write('</tr></table>')
document.write('</td></tr></table></td></tr></form>')
document.write('<tr><td width="100%" height="5"></td></tr><tr align="center"><td width="100%">')
document.writeln('<script type="text/javascript" src="/inc/foot.js"><\/script>')
document.write('</td></tr></table>')

var Keys=new Array();
Keys[0]=new Array();
Keys[0][0]="游戏";
Keys[0][1]="小说";
Keys[0][2]="心理测试";
Keys[0][3]="旅游";
Keys[0][4]="电影";
Keys[0][5]="音乐";
Keys[0][6]="美女";
Keys[0][7]="手机";
Keys[0][8]="星座";
Keys[0][9]="鲜花";
Keys[0][10]="机票";
Keys[0][11]="汽车";
Keys[0][12]="美容";
Keys[0][13]="翻译";
var KNo=Math.floor(10*Math.random())+4;
if (typeof($)!="function") {function $(o){ var o=document.getElementById(o)?document.getElementById(o):o; return o;}}
$("Kaa").value=Keys[0][KNo];
