function addBookmark(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,""); 
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
		return true;
	}
}

function setHomePage(sethome){
	sethome.style.behavior="url(#default#homepage)";
   	sethome.setHomePage("http://www.uoome.com");

}

function startNav( navId){
	if(document.getElementById(navId)){
		var nav=document.getElementById(navId).getElementsByTagName("ul")[0].getElementsByTagName("li");
		var content=document.getElementById(navId).getElementsByTagName("ul")[1].getElementsByTagName("li");
		for( var i=0;i<nav.length; i++){
			nav[i].onclick=function(){ 
				for( var ii=0;ii<nav.length; ii++){
					if( this==nav[ii]){
						nav[ii].className="selectedTab";
						for(var j=0;j<content.length;j++){
							if(j==ii){
								content[j].className="selectedTab";
							}else{
								content[j].className="";
							}
						}
					}else{
						nav[ii].className="";
					}
				}
			}
		}
	}
}

function startShow(str){
	var ele=document.getElementById(str).getElementsByTagName("div");
	for(var i=0;i<ele.length;i++){
		ele[i].onmouseover=function(){
			this.style.backgroundColor="#eee";	
			this.getElementsByTagName("span")[0].style.display="block";
		}	
		ele[i].onmouseout=function(){
			this.style.backgroundColor="#fff";	
			this.getElementsByTagName("span")[0].style.display="none";
		}
	}
}
