// JavaScript Document

function nTabs(tabObj,obj){
try
{
	var tabList = document.getElementById(tabObj).getElementsByTagName("li");
	for(i=0; i <tabList.length; i++)
	{
		if (tabList[i].id == obj.id)
		{
			document.getElementById(tabObj+"_Title"+i).className = "active"; 
    		document.getElementById(tabObj+"_Content"+i).style.display = "block";
		}else{
			document.getElementById(tabObj+"_Title"+i).className = "normal";
			document.getElementById(tabObj+"_Content"+i).style.display = "none";
		}
	}
}
catch(e){}
}
function $GE(pE)
{
	return document.getElementById(pE);
}
var sid=null;
function pageinit()
{
	sid=window.setInterval(swap,3000);
}
var c=0;
function swap()
{
	var e0=$GE('n4Tab_Title0');
	var e1=$GE('n4Tab_Title1');
	var e2=$GE('n4Tab_Title2');
	var e3=$GE('n4Tab_Title3');
	
	if(c==0){nTabs('n4Tab',e0);c++;return;}
	if(c==1){nTabs('n4Tab',e1);c++;return;}
	if(c==2){nTabs('n4Tab',e2);c++;return;}
	if(c==3){nTabs('n4Tab',e3);c=0;return;}
}
function mouseOver(pE,i)
{
	window.clearInterval(sid);
	c=i;
	var e=$GE(pE);
	nTabs('n4Tab',e);
}
function mouseOut()
{
	sid=window.setInterval(swap,3000);
}
window.onload=pageinit;



String.prototype.UrlEncode = function()
{
	var str = this;
try{
	str = str.replace(/./g,function(sHex)
	{
		window.EnCodeStr = "";
		window.sHex = sHex;
		window.execScript("window.EnCodeStr=Hex(Asc(window.sHex))","vbscript");
		return window.EnCodeStr.replace(/../g,"%$&");
	});
}
catch(e)
{ }
	return str;
}
			function aa1()
			{ 
 
				var findtype=document.getElementsById("s_type");
				for (var i=0;i<=findtype.length;i++)
				{    
					if(findtype[i].checked)
					{  
						var a=findtype[i];
						if(a.value=="wendan")
						{
							window.open("http://www.5ucom.com/search.asp?Keyword="+(document.all.keyword.value).UrlEncode()+"&ModuleName=soft&Field=Title&Submit.x=24&Submit.y=14");
						}
						else if(a.value=="jiangzuo")
						{
							window.open("http://vod.5ucom.com/escape.php?keywords="+document.all.keyword.value);
						}
						else
						{
							window.open("http://www.google.cn/custom?domains=www.5ucom.com&q="+document.all.keyword.value+"&sitesearch=www.5ucom.com&sa=GOOGLE%CB%D1%CB%F7&client=pub-5352129592654682&forid=1&channel=0961292075&ie=GB2312&oe=GB2312&flav=0000&sig=50gaf-3Xl8e74Hc2&cof=GaLT%3a%23008000%3BGL%3a1%3Bdiv%3a%23336699%3BVLC%3a663399%3BaH%3acenter%3BBGC%3aFFFFFF%3BLBGC%3aFFFFFF%3BaLC%3a0000FF%3BLC%3a0000FF%3BT%3a000000%3BGFNT%3a0000FF%3BGIMP%3a0000FF%3BLH%3a42%3BLW%3a160%3BL%3ahttp%3a%2F%2Fwww.5ucom.com%2Fskin%2F5ucom%2F5ulogo.jpg%3BS%3ahttp%3a%2F%2Fwww.5ucom.com%3BFORID%3a1&hl=zh_CN");
						}
					return;
					}
				}
			}
 
				function aa()
			{ 
 
				var a=document.getElementById("s_type");
			    
					 
						if(a.value=="wendan")
						{
							window.open("http://www.5ucom.com/search.asp?Keyword="+(document.all.keyword.value).UrlEncode()+"&ModuleName=soft&Field=Title&Submit.x=24&Submit.y=14");
						}
						else if(a.value=="jiangzuo")
						{
							window.open("http://vod.5ucom.com/escape.php?keywords="+document.all.keyword.value);
						}
						else
						{
							window.open("http://www.google.cn/custom?domains=www.5ucom.com&q="+document.all.keyword.value+"&sitesearch=www.5ucom.com&sa=GOOGLE%CB%D1%CB%F7&client=pub-5352129592654682&forid=1&channel=0961292075&ie=GB2312&oe=GB2312&flav=0000&sig=50gaf-3Xl8e74Hc2&cof=GaLT%3a%23008000%3BGL%3a1%3Bdiv%3a%23336699%3BVLC%3a663399%3BaH%3acenter%3BBGC%3aFFFFFF%3BLBGC%3aFFFFFF%3BaLC%3a0000FF%3BLC%3a0000FF%3BT%3a000000%3BGFNT%3a0000FF%3BGIMP%3a0000FF%3BLH%3a42%3BLW%3a160%3BL%3ahttp%3a%2F%2Fwww.5ucom.com%2Fskin%2F5ucom%2F5ulogo.jpg%3BS%3ahttp%3a%2F%2Fwww.5ucom.com%3BFORID%3a1&hl=zh_CN");
						}
			
			 
			}