function switchTab(identify,index,count,cnon,cnout) {
	for(i=0;i<count;i++) {
		var CurTabObj = document.getElementById("Tab_"+identify+"_"+i) ;
		var CurListObj = document.getElementById("List_"+identify+"_"+i) ;
		if (i != index) {
			CurTabObj.className=cnout ;
			CurListObj.style.display="none" ;
		}
	}
	try {
		for (ind=0;ind<CachePic['recommend'][index].length ;ind++ ) {
			var picobj = document.getElementById("recommend_pic_"+index+"_"+ind) ;
			//if (picobj.src == "http://images.movie.xunlei.com/img_default.gif") {
				picobj.src = CachePic['recommend'][index][ind] ;
			//}
		}
	}
	catch (e) {}
	
	document.getElementById("Tab_"+identify+"_"+index).className=cnon ;
	document.getElementById("List_"+identify+"_"+index).style.display="";
}

var MiniSite=new Object();
MiniSite.Browser={
    ie:/msie/.test(window.navigator.userAgent.toLowerCase()),
    moz:/gecko/.test(window.navigator.userAgent.toLowerCase()),
    opera:/opera/.test(window.navigator.userAgent.toLowerCase()),
    safari:/safari/.test(window.navigator.userAgent.toLowerCase())
};

MiniSite.JsLoader={
    load:function(sUrl,charset,fCallback){
        var _script=document.createElement('script');
        _script.setAttribute('charset',charset);
        _script.setAttribute('type','text/javascript');
        _script.setAttribute('src',sUrl);
        document.getElementsByTagName('head')[0].appendChild(_script);
        if(MiniSite.Browser.ie){
            _script.onreadystatechange=function(){
                if(this.readyState=='loaded'||this.readyState=='complete'){
                    //fCallback();
					//setTimeout(fCallback, 50);
					setTimeout(function(){try{fCallback();}catch(e){}}, 50);
                }
            };
        }else if(MiniSite.Browser.moz){
            _script.onload=function(){
                //fCallback();
				//setTimeout(fCallback, 50);
				setTimeout(function(){try{fCallback();}catch(e){}}, 50);
            };
        }else{
            //fCallback();
			//setTimeout(fCallback, 50);
			setTimeout(function(){try{fCallback();}catch(e){}}, 50);
        }
    }
};


function fncTecIntrQA(valI,valT)
{
	if(valI!="" && valT!="")
	{
		//小行条目按钮动作
		if(valT=="B")
		{
			for (var i=1;i<=5;i++)
			{
				if(i==valI)
				{
					$("#divTecIntrA"+valI+"").attr("style","display:block;");
					$("#divTecIntrB"+valI+"").attr("style","display:none;");	
				}
				else
				{
					$("#divTecIntrA"+i+"").attr("style","display:none;");
					$("#divTecIntrB"+i+"").attr("style","display:block;");						
				}
			}			
		}
	}
}
