function popUpHosteria(){new MochaUI.Window({id:'popUpHosteria',title:'',loadMethod:'xhr',contentURL:'popUp.php?pop=1',width:453,height:312,container:'cuerpoContainer',restrict:true,resizable:false,collapsible:false,scrollbars:false,useCanvas:false,useCanvasControls:false,x:500,y:200});}
function popUpNovedades(){new MochaUI.Window({id:'popUpNovedades',title:'',loadMethod:'xhr',contentURL:'popUp.php?pop=2',width:453,height:312,container:'cuerpoContainer',restrict:true,resizable:false,collapsible:false,scrollbars:false,useCanvas:false,useCanvasControls:false,x:500,y:200});}
function popUpReservas(){new MochaUI.Window({id:'popUpReservas',title:'',loadMethod:'xhr',contentURL:'reservas.php',width:453,height:438,container:'cuerpoContainer',restrict:true,resizable:false,collapsible:false,scrollbars:false,useCanvas:false,useCanvasControls:false,x:500,y:100});}
function popUpUbicacion(){new MochaUI.Window({id:'popUpUbicacion',title:'',loadMethod:'xhr',contentURL:'popUp.php?pop=4',width:453,height:374,container:'cuerpoContainer',restrict:true,resizable:false,collapsible:false,scrollbars:false,useCanvas:false,useCanvasControls:false,x:500,y:150});}
function popUpGaleria(){new MochaUI.Window({id:'popUpGaleria',title:'',loadMethod:'xhr',contentURL:'popUp.php?pop=5',width:453,height:312,container:'cuerpoContainer',restrict:true,resizable:false,collapsible:false,scrollbars:false,useCanvas:false,useCanvasControls:false,x:500,y:200});}
var fotos=null;function visor(){fotos=new viewer($('boxSlider').getChildren(),{sizes:{w:1024,h:614},mode:'alpha',fxOptions:{duration:1000},interval:300});$('btnPrev').addEvent('click',fotos.previous.bind(fotos));$('btnNext').addEvent('click',fotos.next.bind(fotos));}
function makeScrollbar(content,scrollbar,handle,horizontal,ignoreMouse){var steps=(horizontal?(content.getScrollSize().x-content.getSize().x):(content.getScrollSize().y-content.getSize().y))
var slider=new Slider(scrollbar,handle,{steps:steps,mode:(horizontal?'horizontal':'vertical'),onChange:function(step){var x=(horizontal?step:0);var y=(horizontal?0:step);content.scrollTo(x,y);}}).set(0);if(!(ignoreMouse)){$$(content,scrollbar).addEvent('mousewheel',function(e){e=new Event(e).stop();var step=slider.step-e.wheel*30;slider.set(step);});}
$(document.body).addEvent('mouseleave',function(){slider.drag.stop()});}
