$(document).ready(function(){
	    // Navitation menu	
	    $('#m_navigation').superfish({
		delay: 400,
		animation: {height: 'toggle'},
		speed: 500
	    });
	    
	    // Twitter
	    $("#twitter").tweet({
		username: "casinocompany",
		join_text: "auto",
		avatar_size: 32,
		count: 4,
		auto_join_text_default: "",
		auto_join_text_ed: "",
		auto_join_text_ing: "",
		auto_join_text_reply: "",
		auto_join_text_url: "",
		loading_text: "Tweets laden...",
		callback: function () {
		    $("#twitter .tweet_list").cycle({
			fx: 'scrollRight',
			timeout: 8000,
			speed: 1500,
			cleartypeNoBg:  true
		    });
		}
	    });
	    
	    // Slideshows
	     $('#champagne_slides').cycle({
		fx: 'none',
		timeout: 1000
	    });
	    
	    // Video popup
	    $("#showvid").click(function (){
		$("#videobox").modal({
		    overlayClose: true,
		    opacity: 75
		});
	    });
	    
	    // Make button captions transparent
	    $(".ad_button .btntitle").css("opacity", 0.5);
	    $(".ad_button").mouseenter(function () { $(this).children("div.btntitle").animate({"opacity": 1}, 1000); });
	    $(".ad_button").mouseleave(function () { $(this).children("div.btntitle").clearQueue().animate({"opacity": 0.5}, 1000); });
	    
	    // Button link
	    $("#verhuur_btn").click(function () { window.location = "?p=verhuur"});
	    $("#arrangementen_btn").click(function () { window.location = "?p=arrangementen"});
	    $("#champagne_btn").click(function () { window.location = "?p=champagne"});
	});
