// JavaScript Document
function addSocialBookmark(strService,strURL,strTitle){
		if(strURL == undefined ||strURL == "") strURL = location.href;
		if(strTitle == undefined || strTitle == "") strTitle = document.title;
		
		oTitle = strTitle;
		oURL = strURL;
		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="+ strURL;
				break;
			default:			
				isAddBookmark = true;
				addToFavoritesJS(oURL,oTitle);																						
		}
		
		if(!isAddBookmark){
			window.open(strURL);
		}
	}
	