// JavaScript Document
/**
 Add To Favorite
 */
function addFavorite(url, title)
{
    var pageName=window.location.href;
//    var nameArr =pageName.split("?");
//    pageName=nameArr[0] + "?" + nameArr[1];
    pageName="http://"+url;
//    alert(pageName);
    if (window.sidebar)
    {
        window.sidebar.addPanel(document.title,pageName,"");
    }
    else   if(  document.all )
    {
        window.external.AddFavorite(pageName,document.title);
    }
//	if (document.all) {
//		window.external.addFavorite(url, title);
//	} else if (window.sidebar) {
//		window.sidebar.addPanel(title, url, "");
//	}
}






function changeBgColor(obj, color) {
	obj.mouseover(
		function() {
			this.originalColor = this.style.backgroundColor;
			this.style.backgroundColor = color;
		}
	);
	obj.mouseout(
		function() {
			this.style.backgroundColor = this.originalColor;
		}
	);
}
function changeBg(obj, img) {
	obj.mouseover(
		function() {
			this.style.backgroundImage = img;
		}
	);
	obj.mouseout(
		function() {
			this.style.backgroundImage = "";
		}				 
	);
}







