var slideshowSpeed=5e3;var photos=[{title:"ROOMS AND SUITES",image:"bodyimage_home.jpg",url:"url(../../images/bodyimage_home.jpg)",firstline:"Going on",secondline:"vacation?"},{title:"restaurant",image:"bg_main_restaurant.jpg",url:"url(../../images/bg_main_restaurant.jpg)",firstline:"Or still busy at",secondline:"work?"},{title:"hotel amenities",image:"mainbg_pool.jpg",url:"url(../../images/mainbg_pool.jpg)",firstline:"Get out and be",secondline:"active"},{title:"amenities meetings",image:"mainbg_meetings.jpg",url:"url(../../images/mainbg_meetings.jpg)",firstline:"Get out and be",secondline:"active"},{title:"rooms & suites",image:"mainbg_rooms.jpg",url:"url(../../images/mainbg_rooms.jpg)",firstline:"Get out and be",secondline:"active"},{title:"bar & restaurant",image:"bg_main_bar.jpg",url:"url(../../images/bg_main_bar.jpg)",firstline:"Get out and be",secondline:"active"},{title:"lobby",image:"lobby_sitting.jpg",url:"url(../../images/lobby_sitting.jpg)",firstline:"Get out and be",secondline:"active"}];$(document).ready(function(){$("#back").click(function(){h();e("back")});$("#next").click(function(){h();e("next")});var a;$("#control").toggle(function(){h()},function(){$(this).css({"background-image":"url(images/btn_pause.png)"});e("next");a=setInterval(function(){e("next")},slideshowSpeed)});var b=1;var c=0;var d=false;var e=function(a){if(d){return}if(a=="next"){c++;if(c==photos.length+1){c=1}}else{c--;if(c==0){c=photos.length}}var e=b;if(b==1){b=2}else{b=1}g(photos[c-1],e,b)};var f=-1;var g=function(a,b,c){d=true;f--;$("#headerimg"+c).css({"background-image":"url(images/"+a.image+")",display:"block","z-index":f});$("#headertxt").css({display:"none"});$("#firstline").html(a.firstline);$("#secondline").attr("href",a.url).html(a.secondline);$("#pictureduri").attr("href",a.url).html(a.title);$("#headerimg"+b).fadeOut(function(){setTimeout(function(){$("#headertxt").css({display:"block"});d=false},500)})};var h=function(){$("#control").css({"background-image":"url(images/btn_play.png)"});clearInterval(a)};e("next");a=setInterval(function(){e("next")},slideshowSpeed)})
