function fadepic(a){if(a.degree<100){a.degree+=10;if(a.tempobj.filters&&a.tempobj.filters[0]){if(typeof a.tempobj.filters[0].opacity=="number")a.tempobj.filters[0].opacity=a.degree;else a.tempobj.style.filter="alpha(opacity="+a.degree+")"}else if(a.tempobj.style.MozOpacity)a.tempobj.style.MozOpacity=a.degree/101;else if(a.tempobj.style.KhtmlOpacity)a.tempobj.style.KhtmlOpacity=a.degree/100;else if(a.tempobj.style.opacity&&!a.tempobj.filters)a.tempobj.style.opacity=a.degree/101}else{clearInterval(fadeclear[a.slideshowid]);a.nextcanvas=a.curcanvas==a.canvasbase+"_0"?a.canvasbase+"_0":a.canvasbase+"_1";a.tempobj=iebrowser?iebrowser[a.nextcanvas]:document.getElementById(a.nextcanvas);a.populateslide(a.tempobj,a.nextimageindex);a.nextimageindex=a.nextimageindex<a.postimages.length-1?a.nextimageindex+1:0;setTimeout("fadearray["+a.slideshowid+"].rotateimage()",a.delay)}}function fadeshow(a,b,c,d,e,f,g){this.pausecheck=f;this.mouseovercheck=0;this.delay=e;this.degree=10;this.curimageindex=0;this.nextimageindex=1;fadearray[fadearray.length]=this;this.slideshowid=fadearray.length-1;this.canvasbase="canvas"+this.slideshowid;this.curcanvas=this.canvasbase+"_0";if(typeof g!="undefined")a.sort(function(){return.5-Math.random()});this.theimages=a;this.imageborder=parseInt(d);this.postimages=new Array;for(p=0;p<a.length;p++){this.postimages[p]=new Image;this.postimages[p].src=a[p][0]}var b=b+this.imageborder*2;var c=c+this.imageborder*2;if(iebrowser&&dom||dom)document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+b+"px;height:"+c+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+b+"px;height:"+c+"px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:"+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+b+"px;height:"+c+"px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:"+fadebgcolor+'"></div></div>');else document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>');if(iebrowser&&dom||dom)this.startit();else{this.curimageindex++;setInterval("fadearray["+this.slideshowid+"].rotateimage()",this.delay)}}function appear(a){var b=document.getElementById(a);if(navigator.appName!="Microsoft Internet Explorer"){if(b.style.display!="none")return false;b.style.display="";var c=0;function d(){c++;setOpacity(a,c);if(c<11)setTimeout(d,10)}setTimeout(d,10)}else{if(b.style.display!="none")return false;b.style.display="";setOpacity(a,100)}}function fade(a){function c(){b--;setOpacity(a,b);if(b>-1){setTimeout(c,50)}else{obj.style.display="none"}}obj=document.getElementById(a);if(obj.style.display=="none")return false;var b=10;setTimeout(c,50)}function setOpacity(a,b){obj=document.getElementById(a);var c=navigator.appName;obj.style.MozOpacity=b;obj.style.opacity=b/10;obj.style.KhtmlOpacity=b/10;obj.style.filter="alpha(opacity="+b*10+")"}function Submit(){if(document.getElementById("txtName").value!=""){document.getElementById("MaskedDiv").style.display="none";document.getElementById("ModalPopupDiv").style.display="none";document.getElementById("tdDisplayName").innerHTML="<H1> Hi "+document.getElementById("txtName").value+" !</H1>"}else{alert("Please enter your name")}}function CloseModelPopup(){document.getElementById("MaskedDiv").style.display="none";fade("ModalPopupDiv")}function OpenModelPopup(){document.getElementById("MaskedDiv").style.width=screen.width;document.getElementById("MaskedDiv").style.display="";document.getElementById("MaskedDiv").style.visibility="visible";document.getElementById("MaskedDiv").style.top="0px";document.getElementById("MaskedDiv").style.left="0px";document.getElementById("ModalPopupDiv").style.visibility="visible";document.getElementById("ModalPopupDiv").style.display="none";appear("ModalPopupDiv")}function CloseZoomDiv(){fade("photograph-iframe")}function openwin(){var a=document.getElementById("LargImage").src;var b=document.getElementById("LargImage").title;var c=document.getElementById("hdnHotelId").value;document.getElementById("zoom-iframe").src="http://www.luxuryholidaysdirect.com/HotelHiResImages.aspx?imageName="+a+"&Tittle="+b+"&HotelId="+c;document.getElementById("photograph-iframe").style.visibility="visible";document.getElementById("photograph-iframe").style.display="none";appear("photograph-iframe")}function changeImg(a,b){document.getElementById("LargImage").src=a;document.getElementById("LargImage").onclick="return openwin();";document.getElementById("LargImage").title=b;document.getElementById("zoomdiv").title=b;document.getElementById("caption").innerHTML=b}function openwin_other(a,b,c,d,e){var f=parseInt(d)+20;var g=parseInt(e)+20;var h=document.getElementById(a);h.style.visibility="visible";h.style.display="none";document.getElementById(c).src=b;document.getElementById(c).width=d;document.getElementById(c).height=e;h.style.width=f+"px";h.style.height=g+"px";h.style.textAlign="center";h.style.top=Math.round(document.documentElement.clientHeight/2+document.documentElement.scrollTop)-200+"px";h.style.left="300px";appear(a)}function Advert_Flash(a,b,c){var d=b;var e=c;var f=a;var g='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+d+'" height="'+e+'">';var h='<param name="movie" value="'+f+'" />';var i='<param name="quality" value="high" />  <param name="wmode" value="transparent" />';var j='<embed src="'+f+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="'+d+'" height="'+e+'"></embed>';var k="</object>";document.write(g+h+i+j+k)}function FindAdd(a,b){var c=new Array;var d=new Array(1,"Dubai.swf","wedding, Arabia, flight",1,468,60);var e=new Array(2,"Mauritius.swf","HongKong, wedding, flight",1,468,60);var f=new Array(3,"Thailand.swf","Thailand, wedding, flight",1,468,60);var g=new Array(4,"Malaysia.swf","Malaysia, wedding, flight",1,468,60);var g=new Array(5,"Seychelles.swf","Seychelles, wedding, flight",1,468,60);var g=new Array(5,"Maldives.swf","Seychelles, wedding, flight",1,468,60);var g=new Array(6,"Malaysia.swf","Seychelles, wedding, flight",1,468,60);var g=new Array(7,"Sri_Lanka.swf","Seychelles, wedding, flight",1,468,60);var g=new Array(8,"Tahiti.swf","Seychelles, wedding, flight",1,468,60);var g=new Array(9,"United_States_of_America.swf","Seychelles, wedding, flight",1,468,60);var g=new Array(10,"Tahiti.swf","Seychelles, wedding, flight",1,468,60);var g=new Array(11,"South_Africa.swf","Seychelles, wedding, flight",1,468,60);var d=new Array(12,"Abu_Dhabi.swf","wedding, Arabia, flight",1,468,60);var d=new Array(13,"Oman.swf","wedding, Arabia, flight",1,468,60);var h=new Array(d,e,f,g);var i=0;for(x=0;x<h.length;x++){if(h[x][2].indexOf(a)!=-1){c[i]=h[x][1];i++}}var j=Math.floor(Math.random()*(0,c.length));Advert_Flash(b+"Banners/"+c[j],"468","60")}function btn_mouseOut(a){a.style.opacity=1}function btn_mouseOver(a){a.style.opacity=.5}function Sendit(){if(navigator.appName=="Netscape"){sendit2()}else{if(navigator.appName=="Opera"){sendit2()}else{alert("Unfortunately your browser, "+navigator.appName+", does not support this feature. Please use the \n File » Send » Link by Email...\n menu \toption to send the page")}}}function sendit2(){var a=location.href;var b=prompt("Enter your Friend e-mail address?","");window.open("mailto:"+b+"?Subject=Seychelles&body="+a,"_self")}function toPoint(a){document.getElementById(a).scrollLeft=100}function toBottom(a){document.getElementById(a).scrollLeft=document.getElementById(a).scrollHeight}function scrollDivUp(a){document.getElementById(a).scrollLeft-=step;timerUp=setTimeout("scrollDivUp('"+a+"')",10)}function scrollDivDown(a){document.getElementById(a).scrollLeft+=step;timerDown=setTimeout("scrollDivDown('"+a+"')",10)}function toTop(a){document.getElementById(a).scrollTop=0}var browser=navigator.appName;var b_version=navigator.appVersion;var version=parseFloat(b_version);defaultStep=1;step=defaultStep;var fadebgcolor="black";var fadearray=new Array;var fadeclear=new Array;var dom=document.getElementById;var iebrowser=document.all;fadeshow.prototype.populateslide=function(a,b){var c="";if(this.theimages[b][1]!="")c='<a href="'+this.theimages[b][1]+'" target="'+this.theimages[b][2]+'">';c+='<img src="'+this.postimages[b].src+'" border="'+this.imageborder+'px">';if(this.theimages[b][1]!="")c+="</a>";a.innerHTML=c};fadeshow.prototype.rotateimage=function(){if(this.pausecheck==1)var a=this;if(this.mouseovercheck==1)setTimeout(function(){a.rotateimage()},100);else if(iebrowser&&dom||dom){this.resetit();var b=this.tempobj=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);b.style.zIndex++;fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50);this.curcanvas=this.curcanvas==this.canvasbase+"_0"?this.canvasbase+"_1":this.canvasbase+"_0"}else{var c=document.images["defaultslide"+this.slideshowid];c.src=this.postimages[this.curimageindex].src}this.curimageindex=this.curimageindex<this.postimages.length-1?this.curimageindex+1:0};fadeshow.prototype.resetit=function(){this.degree=10;var a=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);if(a.filters&&a.filters[0]){if(typeof a.filters[0].opacity=="number")a.filters(0).opacity=this.degree;else a.style.filter="alpha(opacity="+this.degree+")"}else if(a.style.MozOpacity)a.style.MozOpacity=this.degree/101;else if(a.style.KhtmlOpacity)a.style.KhtmlOpacity=this.degree/100;else if(a.style.opacity&&!a.filters)a.style.opacity=this.degree/101};fadeshow.prototype.startit=function(){var a=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);this.populateslide(a,this.curimageindex);if(this.pausecheck==1){var b=this;var c=iebrowser?iebrowser["master"+this.slideshowid]:document.getElementById("master"+this.slideshowid);c.onmouseover=function(){b.mouseovercheck=1};c.onmouseout=function(){b.mouseovercheck=0}}this.rotateimage()}
