$(document).ready(function() {
$('.nyromodal').nyroModal();
								
	$(".accordian h3").live('click', function(){
		$(this).next("p").slideToggle("slow")
		.siblings("p:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});
	$(".shares").css({display: "none"}); // Opera Fix
	$(".sharecontainer").hover(function(){
		$('.shares').css({visibility: "visible",display: "none"}).show(200);
		},function(){
		$('.shares').css({visibility: "hidden",display: "none"});
		});

	
	$("a[sharewith]").click(function(ev){
   var rel = $(this).attr("sharewith");
   var url = encodeURIComponent(self.location.href);
   var title = encodeURIComponent($("title:first").html());
   rel = rel.replace("{url}",url);
   rel = rel.replace("{title}",title);
   self.location.href = rel;
   return false;
});
});


