var counti=0;
var itemSms=new Array();
itemSms[1]="[<a href=http://mms.sohu.com/wap/ani/1082/2/001.html class=white>GGMM</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/1203/2/001.html class=white> 声色爱情</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/1204/2/001.html class=white>卡通</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/1206/2/001.html class=white>宠物</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/1520/2/001.html class=white>火热大片</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/1205/2/001.html class=white>幽默</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/1207/2/001.html class=white>祝福</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/2194/2/001.html class=white><b>圣诞节</b></a>]";
itemSms[2]="[<a href=http://mms.sohu.com/wap/ring/1088/2/001.html class=white>男女歌手</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ring/1096/2/001.html class=white>影视游戏</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ring/1125/2/001.html class=white>风格铃声</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ring/1127/2/001.html class=white>异国情调</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ring/1197/2/001.html class=white>精品荟萃</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ring/2182/2/001.html class=white>精华高潮</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ring/2180/2/001.html class=white><b>短信息提示音</b></a>]";
itemSms[3]="";
itemSms[4]="[<a href=http://mms.sohu.com/wap/pic/1015/2/001.html class=white target=_blank>GGMM</a>]&nbsp;[<a href=http://mms.sohu.com/wap/pic/1016/2/001.html class=white>声色爱情</a>]&nbsp;[<a href=http://mms.sohu.com/wap/pic/1017/2/001.html class=white>卡通</a>]&nbsp;[<a href=http://mms.sohu.com/wap/pic/1018/2/001.html class=white>幽默</a>]&nbsp;[<a href=http://mms.sohu.com/wap/pic/1180/2/001.html class=white>宠物</a>]&nbsp;[<a href=http://mms.sohu.com/wap/pic/1181/2/001.html class=white>祝福</a>]&nbsp;[<a href=http://mms.sohu.com/wap/pic/1192/2/001.html class=white>其它</a>]&nbsp;[<a href=http://mms.sohu.com/wap/pic/1526/2/001.html class=white>火热大片</a>]&nbsp;[<a href=http://mms.sohu.com/wap/pic/2193/2/001.html class=white>圣诞节图片</a>]";
itemSms[5]="";
itemSms[12]="[<a href=http://mms.sohu.com/wap/pic/1024/2/001.html class=white>动画美人国</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/1362/2/001.html class=white>浪漫鲜花</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/1681/2/001.html class=white>野蛮爱情</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ani/2194/2/001.html class=white>圣诞节动画</a>]&nbsp;[<a href=http://mms.sohu.com/wap/pic/ class=white>彩屏图片</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ring/ class=white>和弦铃声</a>]";
itemSms[14]="&nbsp;&nbsp;";
itemSms[6]="[<a href=http://mms.sohu.com/wap/ktv/2214/2/001.html class=white>男歌手</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ktv/2215/2/001.html class=white>女歌手</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ktv/2216/2/001.html class=white>乐队组合</a>]&nbsp;[<a href=http://mms.sohu.com/wap/ktv/2279/2/001.html class=white>新年福音</a>]";
itemSms[7]="[<a href=http://mms.sohu.com/wap/tone/1501/2/001.html class=white>火热大片</a>]&nbsp;[<a href=http://mms.sohu.com/wap/tone/1503/2/001.html class=white>男唱女道</a>]&nbsp;[<a href=http://mms.sohu.com/wap/tone/1504/2/001.html class=white>鸡鸣狗叫</a>]&nbsp;[<a href=http://mms.sohu.com/wap/tone/1505/2/001.html class=white>古怪搞笑</a>]&nbsp;[<a href=http://mms.sohu.com/wap/tone/1507/2/001.html class=white>游戏</a>]&nbsp;[<a href=http://mms.sohu.com/wap/tone/2181/2/001.html class=white>提示音</a>]&nbsp;[<a href=http://mms.sohu.com/wap/tone/2192/2/001.html class=white>圣诞节</a>]&nbsp;[<a href=http://mms.sohu.com/wap/tone/2278/2/001.html class=white>新年福音</a>]";

function sendwap(id) {
  	window.open('http://mms.sohu.com/send/wsend.php?id=' + id,'newwindow','top=50,left=200,width=500,height=474,scrollbars=no,resizable=no,center=yes');
}

function sendwapd(id) {
  	window.open('http://mms.sohu.com/send/wsend_d.php?id=' + id,'newwindow','top=50,left=200,width=500,height=474,scrollbars=no,resizable=no,center=yes');
}

function changeMenu(i){
	document.all["smsArea"].innerHTML=itemSms[i];
}

 	function jump_to(this_catalog, jump_page, max_pages)
	{
		var page_words;
		jump_page = parseInt(jump_page);
		if (!isNaN(jump_page))
		{
			if(jump_page == "" || this_catalog == "")
			{
				alert("请输入页号！");
			}
			else
			{
				if (jump_page > max_pages)
				{
					alert("输入超过页数！");
				}
				else
				{
					page_words = jump_page;
					if (jump_page < 10)
					{
						page_words = "00" + page_words;
					}
					else if(jump_page < 100)
					{
						page_words = "0" + page_words;
					}
					window.location=this_catalog + page_words + ".html";
				}
			}
		}
		return false;
	}

scores = new Array(20);
var numTotal=0;
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
if (ver4) {    with (document) {        write("<STYLE TYPE='text/css'>");        if (NS4) {            write(".parent {position:absolute; visibility:visible}");            write(".child {position:absolute; visibility:visible}");            write(".regular {position:absolute; visibility:visible}")        }        else {            write(".child {display:none}")        }        write("</STYLE>");    }}function getIndex(el) {    ind = null;    for (i=0; i<document.layers.length; i++) {        whichEl = document.layers[i];        if (whichEl.id == el) {            ind = i;            break;        }    }    return ind;}function arrange() {    nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height;    for (i=firstInd+1; i<document.layers.length; i++) {        whichEl = document.layers[i];        if (whichEl.visibility != "hide") {            whichEl.pageY = nextY;            nextY += whichEl.document.height;        }    }}function initIt(){    if (!ver4) return;    if (NS4) {        for (i=0; i<document.layers.length; i++) {            whichEl = document.layers[i];            if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";       }        arrange();    }    else {        divColl = document.all.tags("DIV");        for (i=0; i<divColl.length; i++) {            whichEl = divColl(i);            if (whichEl.className == "child") whichEl.style.display = "none";        }    }}function expandIt(el) {	if (!ver4) return;    if (IE4) {        whichEl1 = eval(el + "Child");		for(i=1;i<=numTotal;i++){			whichEl = eval(scores[i] + "Child");			if(whichEl!=whichEl1) {				whichEl.style.display = "none";			}		}        whichEl1 = eval(el + "Child");        if (whichEl1.style.display == "none") {            whichEl1.style.display = "block";        }        else {            whichEl1.style.display = "none";        }    }    else {        whichEl = eval("document." + el + "Child");		for(i=1;i<=numTotal;i++){			whichEl = eval("document." + scores[i] + "Child");			if(whichEl!=whichEl1) {				whichEl.visibility = "hide";			}		}        if (whichEl.visibility == "hide") {            whichEl.visibility = "show";        }        else {            whichEl.visibility = "hide";        }        arrange();    }}onload = initIt;