$(document).ready(function(){
	$("#header .intext").toggleVal();
	$("#nav li").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});
	$('a[@rel*=lightbox]').lightBox();

	$(".post-it .close").click(function(){
		$(this).parents(".post-it").animate({ opacity: 'hide' }, "slow");
                $.cookie("myPopup", "cancelled", { expires: 7 });
	});

	$(".anim #intro .teaser li")
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0 -90px)"}, {duration:500})
	})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:500})
	})

        if ($.cookie("myPopup")!='cancelled') {
          $("#myPopup").show();
        }

});