var $j = jQuery.noConflict();
function toggleElement(element) {
	if ($j(element).is(":visible")) {
		// Close it
		$j(element).slideUp(500);
	// Else (if it's closed)
	}
}
$j(document).ready(function(){
// Bluhalo article_tools dropdown
	// Find the first Span and add class="share"
	$j("#article_tools span:first").addClass("share");
	// Detect hover on Span.share
	$j("span.share").hover(
		function(){	$j(this).css({color:"#000000"}); }, // On start hover
		function(){ $j(this).css({color:"#000000"}); } // On end hover
	);
	// Add class="share" to the List next to Span.share
	$j("span.share + ul").addClass("share");
	// Detect when the Span is clicked
	$j("span.share").click(function(){
		// If the List already open/visible:
		if ($j("ul.share").is(":visible")) {
			// Close it
			setTimeout('$j("ul.share").slideUp(520)',500);
		// Else (if it's closed)
		} else {
			// Open it
			$j("ul.share").slideDown(520);
			//if (!$j.browser.msie) {
			//  setTimeout('toggleElement("ul.share")', 5600);
			//}
		}
	});
	// Detect when the Span is blurred (un-focused)
	$j("span.share").blur(function(){
		// Close the list
		setTimeout('$j("ul.share").slideUp(520)',500);
		//$j("ul.share").slideUp(520);
	});
});

