// JavaScript Document
// li内容切换
function switchLiCnt(obja,objb){
	$('#' + obja).children().mouseover(function(){
		if($(this).attr("class") != "on"){
			$('#' + obja).children().removeClass('on');
			$(this).addClass("on");
			key = $('#' + obja).children().index($(this));
			$('#' + objb).children().removeClass('on');
			$('#' + objb).children().eq(key).addClass("on");
		}
	})
}

function addfavorite(){//加入收藏   
   if (document.all){   
      window.external.addFavorite("http://"+document.location.host+"/",document.title);   
   }else if (window.sidebar){   
      window.sidebar.addPanel(document.title,"http://"+document.location.host+"/", "");   
   }   
}   




