// Social bookmarking
share.url = "http://www.RescueMe.com/";
share.title = "Rescue Me";
share.description = "Tommy's family, fallen comrades, and lost saves usher him into a world that is ghastly and all too real. Own the final two seasons on DVD September 13th!";
share.tweet = "Own the final two seasons on DVD September 13th! http://www.RescueMe.com";
//share.delicious.description = "";

addLoadEvent(function(){
	shareFunc('share');
});

function shareFunc(id){
	var el = document.getElementById(id);
	var el_anchors = el.getElementsByTagName('a');
	for(var i=0; i<el_anchors.length; i++){
		extendOnClick(el_anchors[i],function(evt,that){
			var rel = that.getAttribute('rel');
			switch(rel){
				case 'facebook':
				case 'twitter':
				case 'myspace':
				case 'digg':
				case 'stumbleupon':
				case 'myspace':
				case 'delicious':
					share.send(rel);
				break;
				default:
					alert('This share does not exist');
			}

			return false;
		});
	}
}



