﻿function HoverLi(n,m){
	for(var i=0;i<=m;i++)
	{
		getObject("tb_"+i).className='fla';
	}
	getObject("tb_"+n).className='flb';
}

function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} 
function setHome(obj)
{
     obj.style.behavior='url(#default#homepage)';obj.setHomePage('http://'+location.hostname+(location.port!=''?':':''))
}
function SetFav(name)
{
    try 
    { 
        window.external.addFavorite('http://'+location.hostname+(location.port!=''?':':''),name)
    } 
    catch (e) 
    { 
        try 
        { 
            window.sidebar.addPanel(name, 'http://'+location.hostname+(location.port!=''?':':''), '')
        } 
        catch (e) 
        { 
            alert('加入收藏失败，请使用Ctrl+D进行添加'); 
        } 
    } 
}

