/* 
© comotion 2010-2011
The javascript in this file is written on the mootools framework that is open source,
But the functions themselves are created by comotion.se, and are not shared with third parties without comotion.se 's written permission.
*/
var first_page=true;function loadJsonPage(a,e,d){if(eventfire==false){CloseMap();CloseBooking();eventfire=true;var b=new Fx.Tween($("maininfo"),{property:"opacity"});var c=new Request.JSON({url:demo_path+"/page/getjson/"+a+"/"+d,onComplete:function(f){if(!first_page){b.start(e,0).chain(function(){myVerticalSlide.slideOut().toggle().chain(function(){gallery.empty();addImages(f.pages,a,e)})})}else{myVerticalSlide.slideOut().toggle().chain(function(){gallery.empty();addImages(f.pages,a,e);first_page=false})}}}).send()}}var boo=new Fx.Tween(booking,{property:"opacity",duration:"short"});function OpenBooking(){if(eventfire==false){eventfire=true;booking.setStyle("display","");boo.start(0,1);eventfire=false}}function CloseBooking(){eventfire=true;boo.start(1,0).chain(function(){booking.setStyle("display","none")});eventfire=false}function OpenMap(){var a=$("mapen");a.innerHTML="";a.setStyle("display","");a.innerHTML=map}function CloseMap(){var a=$("mapen");a.innerHTML="";a.setStyle("display","none")}var cepe=new Fx.Tween($("gallery"),{property:"background-position"});

