jQuery.noConflict();
jQuery(document).ready(function() {
	jQuery("body").addClass("hasJavascript");
	jQuery(".no-script").hide();
	jQuery("#topnav .shortcuts li:first").addClass("no_border");
	jQuery("#content_wrapper #content #maincontent #contentareaportlets #mediaCoverage table .columnTwo div").hide();

	jQuery("#content_wrapper #content #maincontent #contentareaportlets #mediaCoverage table tbody tr td.columnTwo a").click(function() {
		jQuery(this).siblings("div").slideToggle("slow");
	});

	var push = jQuery(".divpush a.read-more-text").parent().parent();
	push.css("cursor", "pointer");

	jQuery(push).click(function() {
		var href = jQuery(this).children().children("a.read-more-text").attr("href");
		document.location.href = href;
	});

	jQuery(".facebookLoginButton").click(function() {
		FB.Connect.requireSession(function() {
			FB.Connect.showPermissionDialog("publish_stream", function() {
				window.location.reload(true);
			});
		});
		return false;
	});

	jQuery(".facebookLogoutButton").click(function() {
		FB.Connect.logout(function() {
			window.location.reload(true);
		});
		return false;
	});

	//fix for addthis bug breaking layout
	var addthis = jQuery("#_atssh");
	addthis.css("position", "relative");

});
