// UTF-8 中文

function el(eId){	return document.getElementById(eId); }
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };

function setFavo()
{
	try{
		//alert('AddFavorite');
		window.external.AddFavorite(window.document.location,window.document.title || window.document.location);
	}catch(e){
		alert(e.message);
	}
}

function setHomepage(el)
{
	try{
		el.style.behavior='url(#default#homepage)';
		el.sethomepage(window.document.location);
		return false;
		//window.document.links[0].style.behavior= 'url(#default#homepage)'); 
		//window.document.links[0].setHomePage(window.document.location);
	}catch(e){
	}
}

/* 首页加的tab切换
function turn(num){

	var box=document.getElementById("lg_tabnews_box");
	var  li=box.getElementsByTagName("span");
	
	for(var p=0;p<=1;p++ )
	{
		if(num==p)	
		{	
			li[p].className="on";
			document.getElementById("lg_upInfo_tabcontent_"+p).style.display="block";
		}
		else{
			li[p].className="";
			document.getElementById("lg_upInfo_tabcontent_"+p).style.display="none";
		}
 }
}
*/
