function SocialShare(sContentId) {
	var that = this;
	
	if (typeof(console) == "undefined") {
		console = {};
		console.log = function(sMessage) {
			//alert(sMessage);
		};
	}
	
	this.sContentId = sContentId || "";
	this.sectionKeyword = "contentId";
	
	this.oSubmitUrls = {
		Delicious: "http://del.icio.us/post?url=",
		Digg: "http://digg.com/submit?phase=2&url=",
		Furl: "http://www.furl.net/store?s=f&to=0&u=",
		Newsvine: "http://www.newsvine.com/_tools/seed&save?u=",
		Reddit: "http://reddit.com/submit?url=",
		Simpy: "http://www.simpy.com/simpy/LinkAdd.do?href=",
		StumbleUpon: "http://www.stumbleupon.com/submit?url=",
		Technorati: "http://technorati.com/faves?add=",
		Facebook: "http://www.facebook.com/share.php?u=",
		Spurl: "http://www.spurl.net/spurl.php?url=",
		Blogmarks: "http://blogmarks.net/my/new.php?mini=1&simple=1&url=",
		Google: "http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=",
		WindowsLive: "https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-au&url=",
		YahooMyWeb: "http://myweb.yahoo.com/myresults/bookmarklet?u=",
		Netscape: "http://www.netscape.com/submit/?U=",
		Fark: "http://cgi.fark.com/cgi/fark/edit.pl?new_url=",
		Slashdot: "http://slashdot.org/bookmark.pl?url=",
		AOLIM: "aim:goim?message=look+at:+",
		Yahoo: "ymsgr:sendIM?(select%20recipient)&m=",
		Netvous: "http://netvouz.com/action/submitBookmark?url=",
		PlugIM: "http://www.plugim.com/submit?url=",
		Squiddo: "http://www.squidoo.com/lensmaster/bookmark?"
	}
	
	this.submitPage = function(sService) {
		console.log("submitPage() called");
		
		var sLink = "";
		if (window.location.href.indexOf("?") > 0) {
			sLink = window.location.href.split("?")[0] + "?" + that.sectionKeyword + "=" + that.sContentId;
		} else {
			if (that.sContentId != "") {
				sLink = window.location.href + "?" + that.sectionKeyword + "=" + that.sContentId;
			} else {
				sLink = window.location.href
			}
		}
		
		var sUrl = String(that.oSubmitUrls[sService]);
		sLink = sUrl + escape(sLink);
		
		
		console.log("This page: " + sLink);
		// AYYASH ADDED on Sept 16, web trends tracking code
		if (typeof dcsMultiTrack == "function") {
			
		
			if (sUrl.indexOf("http://") > -1 || sUrl.indexOf("https://") > -1){
				var sHost = sUrl.split("//")[1].split("/")[0];
				var sPath = sUrl.split("?")[0].substring(sUrl.indexOf("/",8));
				dcsMultiTrack('DCS.dcssip', sHost, 'DCS.dcsuri', sPath, 'WT.ti', 'Share with '+ sService, 'WT.z_ea_name', 'Share :: '+ sService, 'WT.z_ea_actionoffer','Shr-Sit', 'WT.dl', '1');
				DCS.dcssip=DCS.dcsuri=WT.ti=WT.z_ea_name=WT.z_ea_actionoffer='';
			}
			
		}

		window.open(sLink, 'share');
		this.onLinkShared(this);

	}
	
	this.getPage = function() {
		var aPageInfo = [];
		if (window.location.href.indexOf("?") > 0) {
			aPageInfo = window.location.href.split("/").pop().split("?");
		} else {
			aPageInfo = window.location.href.split("/").pop();
		}
		
		if (typeof(aPageInfo[1]) != "undefined") {
			var aSections = aPageInfo[1].split("&");
			aPageInfo[1] = [];
			
			for (var i=0; i<aSections.length; i++) {
				var aSection = aSections[i].split("=");
				if (aSection[0] == that.sectionKeyword) {
					aPageInfo[1].push(aSection[1].split("_"));
				}
			}			
		}
		
		return aPageInfo;
	}
	
	this.setContentId = function(sContentId) {
		that.sContentId = sContentId;
	}
	
	this.onLinkShared = function(oScope) {
	}
}