if(self!=top){top.location=self.location;}
function get(str){return document.getElementById(str)}
var obj;
function Money(){
	this.obj = obj;
	this.Htmlcode	= "";	
}

function CreateMoney(sMoney,sNum)
{
	obj = eval(sMoney);
	var i = 0;
	for (i=0;i<sNum;i++)
	{
		sMoney[i] = new Money();
	}
}

function ShowMoney(sMoneyId)
{
	var htmlcode = obj[sMoneyId].Htmlcode;
	if(htmlcode!=""&&htmlcode!==null)
		document.write(obj[sMoneyId].Htmlcode);
}

var Moneys = new Array();
CreateMoney(Moneys, 12);

var index_top = "<iframe width=468 height=60 src=/Scripts/banner/banner.htm frameborder=no border=0 marginwidth=0 marginheight=0 scrolling=no></iframe>";
var index_middle = "<script language=javascript src=/Scripts/js/center.js charset=gb2312></script>";
var index_mt = "<script language=javascript src=/Scripts/js/mt.js charset=gb2312></script>";
var play_wps = "<iframe width=760 height=98 src=/images/wps.htm frameborder=no border=0 marginwidth=0 marginheight=0 scrolling=no></iframe>";
var down_960 = "<iframe width=960 height=400 src=/Scripts/banner/game_960.htm frameborder=no border=0 marginwidth=0 marginheight=0 scrolling=no></iframe>";
var index_pic = "<iframe src=/Scripts/banner/100x75.htm height=75 width=100 marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>";
var game_1_4 = "<iframe src=/Scripts/js/1_4.htm height=110 width=100% marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>";
var index_pib = "<iframe src=/Scripts/banner/100x75_b.htm height=75 width=100 marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>";
var index_pid = "<iframe src=/Scripts/banner/100x75_d.htm height=75 width=100 marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>";
var index_pia = "<iframe src=/Scripts/banner/100x75_a.htm height=75 width=100 marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>";
var index_pie = "<iframe src=/Scripts/banner/100x75_e.htm height=75 width=100 marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>";
var index_760_i = "<script language=javascript src=/Scripts/js/center_i.js charset=gb2312></script>";

Moneys[0].Htmlcode = index_top;
Moneys[1].Htmlcode = index_middle;
Moneys[2].Htmlcode = index_mt;
Moneys[3].Htmlcode = play_wps;
Moneys[4].Htmlcode = down_960;
Moneys[5].Htmlcode = index_pic;
Moneys[6].Htmlcode = game_1_4;
Moneys[7].Htmlcode = index_pib;
Moneys[8].Htmlcode = index_pid;
Moneys[9].Htmlcode = index_pia;
Moneys[10].Htmlcode = index_pie;
Moneys[11].Htmlcode = index_760_i;

function base64decode(str) {
var base64DecodeChars = new Array(
       -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
       -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
       -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
       52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1,
       -1,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14,
       15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
       -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
       41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);
       var c1, c2, c3, c4,i,len,out;
       len = str.length;
       i = 0;
       out = "";
       while(i < len) {
              do { c1 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
              } while(i < len && c1 == -1);
              if (c1 == -1) break;
              do {
                     c2 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
              } while(i < len && c2 == -1);
              if (c2 == -1) break;
              out += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));
              do {
                     c3 = str.charCodeAt(i++) & 0xff;
                     if (c3 == 61)  return out;
                     c3 = base64DecodeChars[c3];
              } while(i < len && c3 == -1);
              if(c3 == -1) break;
              out += String.fromCharCode(((c2 & 0XF) << 4) | ((c3 & 0x3C) >> 2));
              do {
                     c4 = str.charCodeAt(i++) & 0xff;
                     if(c4 == 61) return out;
                     c4 = base64DecodeChars[c4];
              } while(i < len && c4 == -1);
              if(c4 == -1) break;
              out += String.fromCharCode(((c3 & 0x03) << 6) | c4);
       }
       return out;
}
function SetFav(Url,Title){//加入收藏
try{window.external.addFavorite(Url,Title);}
catch(e){
try{window.sidebar.addPanel(Title,Url, "");}
catch(e){alert("加入收藏失败，请使用Ctrl+D进行添加。");}
        }
}
