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]="翻译";
Keys[1]=new Array();
Keys[1][0]="人体彩绘";
Keys[1][1]="壁纸";
Keys[1][2]="黑镜头";
Keys[1][3]="美女";
Keys[1][4]="人体写真";
Keys[1][5]="车模";
Keys[1][6]="婚纱";
Keys[1][7]="漫画";
Keys[1][8]="动漫";
Keys[1][9]="彩信";
Keys[1][10]="明星";
Keys[1][11]="花卉";
Keys[1][12]="风景";
Keys[1][13]="爆笑";
Keys[2]=new Array();
Keys[2][0]="超级女声";
Keys[2][1]="房价";
Keys[2][2]="考研";
Keys[2][3]="奥运";
Keys[2][4]="油价";
Keys[2][5]="红楼梦选秀";
Keys[2][6]="台风";
Keys[2][7]="富豪榜";
Keys[2][8]="股市";
Keys[2][9]="经济增长";
Keys[2][10]="新车上市";
Keys[2][11]="汽车降价";
Keys[2][12]="倒扁";
Keys[2][13]="NBA";
Keys[3]=new Array();
Keys[3][0]="香水有毒";
Keys[3][1]="求佛";
Keys[3][2]="千里之外";
Keys[3][3]="号码";
Keys[3][4]="秋天不回来";
Keys[3][5]="不怕不怕";
Keys[3][6]="死了都要爱";
Keys[3][7]="隐形的翅膀";
Keys[3][8]="大城小爱";
Keys[3][9]="狼爱上羊";
Keys[3][10]="老公老公我爱你";
Keys[3][11]="寂寞沙洲冷";
Keys[3][12]="一万个理由";
Keys[3][13]="舞娘";
Keys[4]=new Array();
Keys[4][0]="手机";
Keys[4][1]="数码相机";
Keys[4][2]="iPod";
Keys[4][3]="化妆品";
Keys[4][4]="MP3播放器";
Keys[4][5]="摄像头";
Keys[4][6]="掌上电脑";
Keys[4][7]="数码摄像机";
Keys[4][8]="PSP";
Keys[4][9]="美容";
Keys[4][10]="瘦身";
Keys[4][11]="内衣";
Keys[4][12]="首饰";
Keys[4][13]="成人用品";

var Acts=new Array();
Acts[0]="http://www.google.cn/search";
Acts[1]="http://images.google.cn/images";
Acts[2]="http://news.google.cn/news";
Acts[3]="http://music.yahoo.com.cn/search";
Acts[4]="http://www.amazon.cn/search/search.asp";
var sLink=new Array();
sLink[0]="http://www.google.cn/search?ie=gb&oe=UTF-8&hl=zh-CN&client=pub-3455104598199370&forid=1&prog=aff&q=";
sLink[1]="http://images.google.cn/images?ie=gb&oe=UTF-8&hl=zh-CN&client=pub-3455104598199370&forid=1&q=";
sLink[2]="http://news.google.cn/news?client=pub-3455104598199370&forid=1&ie=gb&oe=UTF-8&hl=zh-CN&q=";
sLink[3]="http://music.yahoo.com.cn/search?source=C0_5_0-1026&amp;pid=un_0_1026_28_0&amp;p=";
sLink[4]="http://www.amazon.cn/search/search.asp?source=javee&searchType=&searchWord=";

var Paras=new Array();
Paras[0]=new Array();
Paras[0][0]="q";
Paras[0][1]="client";
Paras[0][2]="pub-3455104598199370";
Paras[0][3]="forid";
Paras[0][4]="1";
Paras[0][5]="images/logo_google_20.gif";
Paras[0][6]="Google搜索";
Paras[0][7]="http://www.google.cn/search?hl=zh-CN&client=pub-3455104598199370&forid=1&prog=aff&q=";
Paras[1]=Paras[0];
Paras[2]=new Array();
Paras[2][0]="q";
Paras[2][1]="client";
Paras[2][2]="pub-3455104598199370";
Paras[2][3]="forid";
Paras[2][4]="1";
Paras[2][5]="images/logo_google_20.gif";
Paras[2][6]="Google搜索";
Paras[2][7]="http://news.google.cn/news?client=pub-3455104598199370&forid=1&ie=gb&oe=UTF-8&hl=zh-CN&q=";
Paras[3]=new Array();
Paras[3][0]="p";
Paras[3][1]="source";
Paras[3][2]="C0_5_0-1026";
Paras[3][3]="pid";
Paras[3][4]="un_0_1026_28_0";
Paras[3][5]="images/logo_yahoo.gif";
Paras[3][6]="Yahoo搜索";
Paras[3][7]="http://www.yahoo.com.cn/";
Paras[4]=new Array();
Paras[4][0]="searchWord";
Paras[4][1]="source";
Paras[4][2]="javee";
Paras[4][3]="searchType";
Paras[4][4]="";
Paras[4][5]="images/logo_joyo.gif";
Paras[4][6]="JoYo & Amazon 卓越亚马逊: 网上购物";
Paras[4][7]="http://www.amazon.cn/?source=javee";

var KNo=Math.floor(10*Math.random())+4;
function So(n){
 $("SoForm").style.display="";
 $("KxForm").style.display="none";
 var sHTML="";
  for (var i=0;i<=5;i++) {
  $("STab"+(i+1)).className=(n==i+1)?"active":"tab";
 }
  for (var i=0;i<4;i++) {
  sHTML+="<li><a href=\""+sLink[n-1]+Keys[n-1][i]+"\"  title=\""+sLink[n-1]+Keys[n-1][i]+"\" target=\"_blank\">"+Keys[n-1][i]+"</a></li>";
 }
 var nLeft=82+(n-1)*54;
 $("soBody").style.backgroundPosition=nLeft+"px 0";
 $("Kb").innerHTML=sHTML;
 $("SoForm").action=Acts[n-1];
 $("Ka").name=Paras[n-1][0];
 $("G1").name=Paras[n-1][1];
 $("G1").value=Paras[n-1][2];
 $("G2").name=Paras[n-1][3];
 $("G2").value=Paras[n-1][4];
 $("soLogo").src=sRootDir+Paras[n-1][5];
 $("soLogo").alt=Paras[n-1][6];
 $("soUrl").href=Paras[n-1][7];
 $("Ka").value=Keys[n-1][KNo];
 $("Kaa").value=Keys[n-1][KNo];
}

function SoKx(){
 for (var i=1;i<=5;i++) {
  $("STab"+i).className="tab";
 }
 $("STab6").className="tab active";
 var nLeft=82+(6-1)*55;
 $("soBody").style.backgroundPosition=nLeft+"px 0";
 $("SoForm").style.display="none";
 $("KxForm").style.display="";
}

function kooxooSub(obj){
	var t=obj.T.value;
	var c=obj.Cat;
	if(t=='HrB'){c.value='1';}
	else if(t=='Rent'||t=='Friend'){c.value='sale';}
	else{c.value='';}
	return true;
}

function gt(f){
 var t;
 var u;
 if(f.a0 != undefined){
  u = 'Y:';
  t = f.k.value;
  if(f.a0.checked==true){u+='0;';}
  if(f.a1.checked==true){u+='1;';}
  if(f.a2.checked==true){u+='2;';}
  if(f.a3.checked==true){u+='3;';}
  if(f.a4.checked==true){u+='4;';}
  if(f.a5.checked==true){u+='5;';}
  if(f.a6.checked==true){u+='6;';}
  if(f.a7.checked==true){u+='7;';}
  if(f.a8.checked==true){u+='8;';}
  if(f.a9.checked==true){u+='9;';}
  if(f.a10.checked==true){u+='10;';}
  if(f.a11.checked==true){u+='11;';}
  if(f.a12.checked==true){u+='12;';}
  if(f.a13.checked==true){u+='13;';}
  if(f.a14.checked==true){u+='14;';}
  if(f.a15.checked==true){u+='15;';}
 }
 else{
  t = f.Ka.value;
  u = 'G';
 }
 try{
  new Image().src = "http://statis.265.com/url?a=S&u="+u+"&t="+t;
 }catch(ex){}
 if($("Ka").value == ""){
  $("ch").value = "noprefill";
 } else {
  $("ch").value = "prefill";
 }
}
