var slideshowSpeed=6e3;var photos=[{title:"Clique Resorts & Hotels",image:"home_slider_01.jpg",url:"url(../../images/home_slider_01.jpg)",firstline:"Going on",secondline:"vacation?"},{title:"Clique Resorts & Hotels",image:"home_slider_02.jpg",url:"url(../../images/home_slider_02.jpg)",firstline:"Or still busy at",secondline:"work?"},{title:"Clique Resorts & Hotels",image:"home_slider_03.jpg",url:"url(../../images/home_slider_03.jpg)",firstline:"Or still busy at",secondline:"work?"},{title:"Clique Resorts & Hotels",image:"home_slider_04.jpg",url:"url(../../images/home_slider_04.jpg)",firstline:"Going on",secondline:"vacation?"},{title:"Clique Resorts & Hotels",image:"home_slider_05.jpg",url:"url(../images/home_slider_05.jpg)",firstline:"Get out and be",secondline:"active"},{title:"Clique Resorts & Hotels",image:"home_slider_06.jpg",url:"url(../images/home_slider_06.jpg)",firstline:"Get out and be",secondline:"active"},{title:"Clique Resorts & Hotels",image:"home_slider_07.jpg",url:"url(../images/home_slider_07.jpg)",firstline:"Get out and be",secondline:"active"},{title:"Clique Resorts & Hotels",image:"home_slider_08.jpg",url:"url(../images/home_slider_08.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=0;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},3e3)})};var h=function(){$("#control").css({"background-image":"url(images/btn_play.png)"});clearInterval(a)};e("next");a=setInterval(function(){e("next")},slideshowSpeed)})
