$(document).ready(function(){
	// fancybox
	$(".iFrameBox").fancybox({
		'width': 750,
		'height': 500
	});
	// 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://cms1.proximedia.com/Google/GoogleMap.asp?MapId=16075&Langue=NL&Options=750x500' id='Plan'></iframe>");
		$(function() {
			$.nyroModalSettings({
				hideTransition: hideTransition,
				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://cms1.proximedia.com/Google/GoogleMap.asp?MapId=16075&Langue=FR&Options=750x500' 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://cms1.proximedia.com/Google/GoogleMap.asp?MapId=16075&Langue=DE&Options=750x500' 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://cms1.proximedia.com/Google/GoogleMap.asp?MapId=16075&Langue=EN&Options=750x500' 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.2010.winner-webhotel.com/booking_engine/be_availability.aspx?status=0&id=AAZAERT&lang=4' id='bookonline'></iframe>");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.winner-webhotel.com/book.aspx?id=AAZAERT&lang=4' id='bookonline'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); },
				minWidth: 1000
			});
			return false;
		});
	});
	$('#bookonlineFR').mousedown(function(){
		$("object").css("visibility","hidden");
		//$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.2010.winner-webhotel.com/booking_engine/be_availability.aspx?status=0&id=AAZAERT&lang=2' id='bookonline'></iframe>");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.winner-webhotel.com/book.aspx?id=AAZAERT&lang=2' id='bookonline'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); },
				minWidth: 1000
			});
			return false;
		});
	});
	$('#bookonlineEN').mousedown(function(){
		$("object").css("visibility","hidden");
		//$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.2010.winner-webhotel.com/booking_engine/be_availability.aspx?status=0&id=AAZAERT&lang=1' id='bookonline'></iframe>");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.winner-webhotel.com/book.aspx?id=AAZAERT&lang=1' id='bookonline'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); },
				minWidth: 1000
			});
			return false;
		});
	});
		$('#bookonlineDE').mousedown(function(){
		$("object").css("visibility","hidden");
		//$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.2010.winner-webhotel.com/booking_engine/be_availability.aspx?status=0&id=AAZAERT&lang=3' id='bookonline'></iframe>");
		$("#Plan").html("<iframe width='100%' height='100%' frameborder='0' src='http://www.winner-webhotel.com/book.aspx?id=AAZAERT&lang=3' id='bookonline'></iframe>");
		$(function() {
			$.nyroModalSettings({
				endRemove: function() { $("object").css("visibility","visible"); },
				minWidth: 1000
			});
			return false;
		});
	});
	// submenu
	$("ul.sf-menu").superfish({ 
		animation: {opacity:'show',height:'show'},
		delay: 1000
	});
});
