$(document).ready(function(){
	// slider
	$("#slider").easySlider({
		prevText: 'Vorige',
		nextText: 'Volgende',
		auto: true,
		speed: 4000,
		pause: 10000,
		continuous: true
	});
	$("#slider img").fadeIn("slow");
	// plan
	$("#planOpen").mousedown(function(){
		$("object").css("visibility","hidden");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://pro.mappy.com/BtoB/Proximedia/map?map.id=3002233;map.provider=Proximedia;&xml.state.wanted_lang=nl' id='Plan'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); }
			});
			return false;
		});
	});
	$("#planOpenFR").mousedown(function(){
		$("object").css("visibility","hidden");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://pro.mappy.com/BtoB/Proximedia/map?map.id=3002233;map.provider=Proximedia;&xml.state.wanted_lang=fr' id='Plan'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); }
			});
			return false;
		});
	});
		$("#planOpenDE").mousedown(function(){
		$("object").css("visibility","hidden");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://pro.mappy.com/BtoB/Proximedia/map?map.id=3002233;map.provider=Proximedia;&xml.state.wanted_lang=nl' id='Plan'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); }
			});
			return false;
		});
	});
			$("#planOpenEN").mousedown(function(){
		$("object").css("visibility","hidden");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://pro.mappy.com/BtoB/Proximedia/map?map.id=3002233;map.provider=Proximedia;&xml.state.wanted_lang=en' id='Plan'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); }
			});
			return false;
		});
	});
		
	// book online
	$('#bookonlineNL').mousedown(function(){
		$("object").css("visibility","hidden");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.hotelsblankenberge.com/hotels_search/search_hotels.asp?taal=nl&hotelID=80&booktemplate=1' id='bookonline'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); }
			});
			return false;
		});
	});
	$('#bookonlineFR').mousedown(function(){
		$("object").css("visibility","hidden");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.hotelsblankenberge.com/hotels_search/search_hotels.asp?taal=fr&hotelID=80&booktemplate=1' id='bookonline'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); }
			});
			return false;
		});
	});
	$('#bookonlineEN').mousedown(function(){
		$("object").css("visibility","hidden");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.hotelsblankenberge.com/hotels_search/search_hotels.asp?taal=en&hotelID=80&booktemplate=1' id='bookonline'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); }
			});
			return false;
		});
	});
		$('#bookonlineDE').mousedown(function(){
		$("object").css("visibility","hidden");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.hotelsblankenberge.com/hotels_search/search_hotels.asp?taal=de&hotelID=80&booktemplate=1' id='bookonline'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); }
			});
			return false;
		});
	});
	// submenu
	$("ul.sf-menu").superfish({ 
		animation: {opacity:'show',height:'show'},
		delay: 1000
	});
});