ï»¿window.onload = function(){document.getElementById("f1").focus();}
function bookmarkit(){
	try{
	if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))
		{ 
		window.sidebar.addPanel('ÖÐ¹ú¿¹°©Ç°Ïß','http://www.e79.com.cn','ÖÐ¹ú¿¹°©Ç°Ïß'); 
		} 
	else
		{ 
		window.external.AddFavorite('http://www.e79.com.cn','ÖÐ¹ú¿¹°©Ç°Ïß'); 
		} 
	}catch(e){}
	return false;
}

var stabid=0;
function setsrch(c){
for(i=0;i<4;i++){document.getElementById("stab"+i).className = "";}
c.className = "cur";
if(c.id=="stab0")
{document.srchfrm.action="";stabid=0;}
if(c.id=="stab1"){document.srchfrm.action="http://www.e79.com.cn/search.php";stabid=1;}
if(c.id=="stab2"){document.srchfrm.action="http://www.cntnbzl.com/ask/search.php?action=search";stabid=2;}
if(c.id=="stab3"){document.srchfrm.action="http://ditu.live.com/";stabid=3;}
}

function searchsubmit(){
  if(stabid==3){
    if (document.srchfrm.keyword)
    {
        var baseUrl = 'http://ditu.live.com/?where1='+encodeURI(document.srchfrm.keyword.value);
        window.open(baseUrl);
        return false;
    }
  }
  return true;
}

function encodeq(){if(stabid==2){document.srchfrm.q.value=encodeURIComponent(document.srchfrm.q.value);}}

function tabit(btn){
	var idname = new String(btn.id);
	var s = idname.indexOf("_");
	var e = idname.lastIndexOf("_")+1;
	var tabName = idname.substr(0, s);
	var id = parseInt(idname.substr(e, 1));
	var tabNumber = btn.parentNode.childNodes.length;
	for(i=0;i<tabNumber;i++){
			document.getElementById(tabName+"_div_"+i).style.display = "none";
			document.getElementById(tabName+"_btn_"+i).className = "";
		};
		document.getElementById(tabName+"_div_"+id).style.display = "block";
		btn.className = "curr";
};
/* slide */
var currslid = 0;
var slidint;
function setfoc(id){
document.getElementById("focpic").src = picarry[id];
document.getElementById("foclnk").href = lnkarry[id];
document.getElementById("fttltxt").innerHTML = "<a href="+lnkarry[id]+"\" target=_blank>"+ttlarry[id]+"</a>";
currslid = id;
for(i=0;i<4;i++)
{document.getElementById("tmb"+i).className = "thubpic";
};
document.getElementById("tmb"+id).className ="thubpiccur";
focpic.style.visibility = "hidden";
focpic.filters[0].Apply();
if (focpic.style.visibility == "visible") {
focpic.style.visibility = "hidden";
focpic.filters.revealTrans.transition=12;
}
else {
focpic.style.visibility = "visible";focpic.filters[0].transition=12;
}
focpic.filters[0].Play();
}
function playnext(){
	if(currslid==3){
		currslid = 0;
	}else{
		currslid++;
	};
	setfoc(currslid);
};
function playit(){
	//slidint = setInterval(playnext,3500);
};
function stopit(){
	clearInterval(slidint);
};
/* vidi */
function vidiexp(id){
	for(i=0;i<5;i++){
		document.getElementById("vidi_"+i).className = "";
	};
	document.getElementById("vidi_"+id).className = "exped";
};
/* pro */

var step = 30;
function prorgt(){
	while(document.getElementById("proccc").scrollLeft<828){
		document.getElementById("proccc").scrollLeft = document.getElementById("proccc").scrollLeft+step;
	}
	document.getElementById("proccc").scrollLeft = 828;
	document.getElementById("srbtn").style.backgroundImage = "url(http://img7.cn.msn.com/7/righta.gif)";
	document.getElementById("slbtn").style.backgroundImage = "url(http://img5.cn.msn.com/5/leftb.gif)";
};
function prolft(){
	while(document.getElementById("proccc").scrollLeft>0){
		document.getElementById("proccc").scrollLeft = document.getElementById("proccc").scrollLeft-step;
	}
	document.getElementById("proccc").scrollLeft = 0;
	document.getElementById("srbtn").style.backgroundImage = "url(http://img7.cn.msn.com/7/rightb.gif)";
	document.getElementById("slbtn").style.backgroundImage = "url(http://img5.cn.msn.com/5/lefta.gif)";
};

window.onload = function(){
	/* document.getElementById("f1").focus(); */
}; 



		