$(document).ready(function() {
	
	$(".share .panel").hide();
	
	$(".share p").hover(
		function() {
			$(this).css("cursor","pointer");
		}, function() {
		
		}
	);
	
	$(".share p").toggle(
		function() {
			$(this).siblings(".panel").show();
		}, function() {
			$(this).siblings(".panel").hide();
		}
	);
	
});

//ACTION TRACKING
	function trackShare(shareLink, action, page, articleTitle, media, type) {
	//alert(shareLink);
	var articleTitle = $(shareLink).parents().children("h2").text();
	
	page = page.substr(page.indexOf("thinking/"));
	
	var track_path = "/" + action + "/" + page + "/" + articleTitle;
	
	if(media) track_path += "/" + media;
	if(type) track_path += "/" + type;
	
	track_path = unescape(track_path);
	pageTracker._trackPageview(track_path);

}


