function facebookShare() {
	u = location.href;
	t = document.title.split('|');
	triggerShareOmnitureEvent('Facebook',t[0],'event21');
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function friendFeedShare() {
	u = location.href;
	t = document.title.split('|');
	triggerShareOmnitureEvent('Friend Feed',t[0],'event22');
	window.open('http://friendfeed.com/?url=' + encodeURIComponent(u) + '&title=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436');
	return false;
}

function twitterShare() {
	u = location.href;
	t = document.title.split('|');
	triggerShareOmnitureEvent('Twitter',t[0],'event20');
	window.open('http://twitter.com/home?status=' + encodeURIComponent(t) + ' ' + encodeURIComponent(u), 'sharer', 'toolbar=0,status=0,width=626,height=436');
	return false;
}

function myspaceShare(imgURL) {
	u = location.href;
	t = document.title.split('|');
	//var imagePath = baseThumbURL + imgURL;
	triggerShareOmnitureEvent('MySpace',t[0],'event23');
//	imageTag = '<img src="' + imagePath + '" />';
//	window.open('http://www.myspace.com/Modules/PostTo/Pages/?u=' + encodeURIComponent(u) + '&t' + encodeURIComponent(t) + '&c=' + imageTag, 'sharer', 'toolbar=0,status=0,width=626,height=436');

	window.open('http://www.myspace.com/Modules/PostTo/Pages/?u=' + encodeURIComponent(u) + '&t' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436');
	//var mine = window.open('http://www.myspace.com/Modules/PostTo/Pages/?u=' + encodeURIComponent(u[0] + '.com') + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=1,status=1,width=626,height=436');
	
	return false;
}

function deliciousShare() {
	u = location.href; 
	t = document.title.split('|');
	triggerShareOmnitureEvent('digg',t[0],'event25');
	window.open('http://delicious.com/save?jump=yes&v=4&noui&url=' + encodeURIComponent(u) + '&title' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436');
	return false;
}

function diggShare(shareDescription) {
	u = location.href; //will not work with IP
	t = document.title.split('|');
	triggerShareOmnitureEvent('digg',t[0],'event24');
	window.open('http://digg.com/remote-submit?phase=2&url=' + encodeURIComponent(u) + '&title' + encodeURIComponent(t) + '&bodytext=' + encodeURIComponent(shareDescription) + '&topic=health', 'sharer', 'toolbar=0,status=0,width=626,height=436');
	return false;
}

function triggerShareOmnitureEvent(site, product, eventName) {   
    s.pagename = '1' + site;
    s.channel = 'Social Network Links';
    s.prop1 = product;
    s.prop2 = '';
    s.prop3 = '';
    s.events = eventName;

    s.linkTrackVars = 'events';
    s.linkTrackEvents = eventName;
    void (s.tl(this, 'o', 'Social Bookmark - ' + site + ' Link')) 
}

