$(document).ready(function() {
		  $('.shareTools a').click(function(event) {
		    event.preventDefault();
			/*Find url of current page*/
		    var url = location.href;
			var cleanUrl="";

            cleanUrl = escape(url);
			cleanUrl = cleanUrl.replace(/\//g, "%2F");
            cleanUrl = cleanUrl.replace(/ /g, "%20");
			
			/*Find which link was clicked*/
			var clicked = $(this).attr("id");
			
			/*Redirect to corresponding link depending on which was clicked on*/
			if(clicked =="facebook"){window.open ("http://www.facebook.com/sharer.php?u=" + url);}
			else if(clicked =="linkedIn"){window.open ("http://www.linkedin.com/shareArticle?mini=true&url=" + cleanUrl);}
			else if(clicked =="stumble"){window.open ("http://www.stumbleupon.com/submit?url=" + url);}
			else{window.open ("http://twitter.com/home?status="+ url);}
		  });
        });
