	function addToFavoritesJS(strURL,strTitle){
		if (window.sidebar) { //firefox
			window.sidebar.addPanel(strTitle, strURL,"");
		} else if( window.external ) { // IE Favorite
			window.external.AddFavorite( strURL, strTitle); }
		else if(window.opera && window.print) { // Opera Hotlist
			return true; 
		}
	}	

	function addSocialBookmark(strService,strURL,strTitle){
		if(strURL == "") strURL = location.href;
		if(strTitle == "") strTitle = document.title;
		
		oTitle = strTitle;
		oURL = strURL;
		if(strURL.indexOf("?") == -1){
			strURL = strURL + "?nc1=" + (new Date().getTime());
		}else{
			strURL = strURL + "&nc1=" + (new Date().getTime());
		}
		strURL=encodeURIComponent(strURL);
		strTitle=encodeURIComponent(strTitle);
		
		var isAddBookmark = false;
		switch(strService){
			case "delicious":
				strURL = "http://del.icio.us/post?url="+ strURL +"&title="+ strTitle;
				break;
			case "digg":
				strURL = "http://digg.com/submit?phase=2&url=" + strURL +"&title="+ strTitle;
				break;
			case "furl":
				strURL = "http://www.furl.net/store?s=f&to=0&u=" + strURL +"&ti="+ strTitle;
				break;
			case "newsvine":
				strURL = "http://www.newsvine.com/_tools/seed&save?u="+ strURL +"&T="+ strTitle;
				break;
			case "squidoo":
				strURL = "http://www.squidoo.com/lensmaster/bookmark?" + strURL +"&title="+ strTitle;
				break;			
			case "live":
				strURL = "https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url="+ strURL +"&title="+ strTitle +"&top=1";
				break;
			case "yahoo":
				strURL = "http://myweb.yahoo.com/myresults/bookmarklet?u="+ strURL +"&t="+ strTitle +"&ei=UTF";
				break;
			case "ask":
				strURL = "http://myjeeves.ask.com/mysearch/BookmarkIt?v=1.2&t=webpages&url="+ strURL +"&title="+ strTitle +"&ei=UTF";
				break;
			case "google":
				strURL = "http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+ strURL +"&title="+ strTitle;
				break;
			case "facebook":
				strURL = "http://www.facebook.com/sharer.php?u="+ strURL +"&t="+ strTitle;
				break;	
			case "technorati":
				strURL = "http://technorati.com/faves?add="+ strURL +"&tag="+ strTitle;
				break;	
			case "blogmarks":
				strURL = "http://blogmarks.net/my/new.php?mini=1&simple=1&url="+ strURL +"&content=&public-tags=&title="+ strTitle;
				break;
			case "twitter":
				strURL = "http://twitter.com/home/?status=" + strTitle + " " + strURL;
				break;				
			default:			
				isAddBookmark = true;
				addToFavoritesJS(oURL,oTitle);																						
		}
		
		if(!isAddBookmark){
			window.open(strURL);
		}
	}
	

