function facebook_share(){
	u=location.href;t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}
function twitter_share(){
	window.twttr=window.twttr||{};
	var D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;
	if(C>A){
		G=Math.round((C/2)-(A/2))
	}
	window.twttr.shareWin=window.open('http://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');
	E=F.createElement('script');
	E.src='http://platform.twitter.com/bookmarklets/share.js?v=1';
	F.getElementsByTagName('head')[0].appendChild(E)
}
$(document).ready(function(){
	
	$("#featuredslideshow").basicslideshow({
		prevButton	: $(this).find("a.left"),
		nextButton	: $(this).find("a.right"),
		loop		: true,
		interval	: 15000,
		speed		: 500
	});
	
	var hash2 = window.location.hash.substring(1);
	

	
	if(hash2 == "subscribed")
	{
		console.log("before");
		setTimeout(function(){
			$(".popup").fadeIn(600);
			console.log("after");
		}, 400);
		
	}
	$(".popup a.close").click(function(){
		window.location.hash = "";
		$(".popup").hide();
		return false;
	});

})

