(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return undefined}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);(function(e){var d={},b,h,l,i=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),k=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(p){p=e.extend({},e.tooltip.defaults,p);n(p);return this.each(function(){e.data(this,"tooltip",p);this.tOpacity=d.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(f).mouseout(g).click(g)},fixPNG:i?function(){return this.each(function(){var p=e(this).css("backgroundImage");if(p.match(/^url\(["']?(.*\.png)["']?\)$/i)){p=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+p+"')"}).each(function(){var q=e(this).css("position");if(q!="absolute"&&q!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:i?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function n(p){if(d.parent){return}d.parent=e('<div id="'+p.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){d.parent.bgiframe()}d.title=e("h3",d.parent);d.body=e("div.body",d.parent);d.url=e("div.url",d.parent)}function o(p){return e.data(p,"tooltip")}function j(p){if(o(this).delay){l=setTimeout(m,o(this).delay)}else{m()}k=!!o(this).track;e(document.body).bind("mousemove",a);a(p)}function f(){if(e.tooltip.blocked||this==b||(!this.tooltipText&&!o(this).bodyHandler)){return}b=this;h=this.tooltipText;if(o(this).bodyHandler){d.title.hide();var q=o(this).bodyHandler.call(this);if(q.nodeType||q.jquery){d.body.empty().append(q)}else{d.body.html(q)}d.body.show()}else{if(o(this).showBody){var s=h.split(o(this).showBody);d.title.html(s.shift()).show();d.body.empty();for(var r=0,p;(p=s[r]);r++){if(r>0){d.body.append("<br/>")}d.body.append(p)}d.body.hideWhenEmpty()}else{d.title.html(h).show();d.body.hide()}}if(o(this).showURL&&e(this).url()){d.url.html(e(this).url().replace("http://","")).show()}else{d.url.hide()}d.parent.addClass(o(this).extraClass);if(o(this).fixPNG){d.parent.fixPNG()}j.apply(this,arguments)}function m(){l=null;if((!i||!e.fn.bgiframe)&&o(b).fade){if(d.parent.is(":animated")){d.parent.stop().show().fadeTo(o(b).fade,b.tOpacity)}else{d.parent.is(":visible")?d.parent.fadeTo(o(b).fade,b.tOpacity):d.parent.fadeIn(o(b).fade)}}else{d.parent.show()}a()}function a(s){if(e.tooltip.blocked){return}if(s&&s.target.tagName=="OPTION"){return}if(!k&&d.parent.is(":visible")){e(document.body).unbind("mousemove",a)}if(b==null){e(document.body).unbind("mousemove",a);return}d.parent.removeClass("viewport-right").removeClass("viewport-bottom");var t=d.parent[0].offsetLeft;var q=d.parent[0].offsetTop;if(s){t=s.pageX+o(b).left;q=s.pageY+o(b).top;var u="auto";if(o(b).positionLeft){u=e(window).width()-t;t="auto"}d.parent.css({left:t,right:u,top:q})}var r=c(),p=d.parent[0];if(r.x+r.cx<p.offsetLeft+p.offsetWidth){t-=p.offsetWidth+20+o(b).left;d.parent.css({left:t+"px"}).addClass("viewport-right")}if(r.y+r.cy<p.offsetTop+p.offsetHeight){q-=p.offsetHeight+20+o(b).top;d.parent.css({top:q+"px"}).addClass("viewport-bottom")}}function c(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function g(q){if(e.tooltip.blocked){return}if(l){clearTimeout(l)}b=null;var r=o(this);function p(){d.parent.removeClass(r.extraClass).hide().css("opacity","")}if((!i||!e.fn.bgiframe)&&r.fade){if(d.parent.is(":animated")){d.parent.stop().fadeTo(r.fade,0,p)}else{d.parent.stop().fadeOut(r.fade,p)}}else{p()}if(o(this).fixPNG){d.parent.unfixPNG()}}})(jQuery);
/*
* jQuery blockUI plugin
* Version 2.31 (06-JAN-2010)
* @requires jQuery v1.2.3 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2008 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
*/
(function(f){if(/1\.(0|1|2)\.(0|1|2)/.test(f.fn.jquery)||/^1.1/.test(f.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+f.fn.jquery);return}f.fn._fadeIn=f.fn.fadeIn;var l=function(){};var a=document.documentMode||0;var m=f.browser.msie&&((f.browser.version<8&&!a)||a<8);var i=f.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!a;f.blockUI=function(p){j(window,p)};f.unblockUI=function(p){h(window,p)};f.growlUI=function(p,r,s,q){var t=f('<div class="growlUI"></div>');if(p){t.append("<h1>"+p+"</h1>")}if(r){t.append("<h2>"+r+"</h2>")}if(s==undefined){s=3000}f.blockUI({message:t,fadeIn:700,fadeOut:1000,centerY:false,timeout:s,showOverlay:false,onUnblock:q,css:f.blockUI.defaults.growlCSS})};f.fn.block=function(p){return this.unblock({fadeOut:0}).each(function(){if(f.css(this,"position")=="static"){this.style.position="relative"}if(f.browser.msie){this.style.zoom=1}j(this,p)})};f.fn.unblock=function(p){return this.each(function(){h(this,p)})};f.blockUI.version=2.31;f.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4};var n=null;var e=[];function j(O,G){var r=(O==window);var L=G&&G.message!==undefined?G.message:undefined;G=f.extend({},f.blockUI.defaults,G||{});G.overlayCSS=f.extend({},f.blockUI.defaults.overlayCSS,G.overlayCSS||{});var M=f.extend({},f.blockUI.defaults.css,G.css||{});var K=f.extend({},f.blockUI.defaults.themedCSS,G.themedCSS||{});L=L===undefined?G.message:L;if(r&&n){h(window,{fadeOut:0})}if(L&&typeof L!="string"&&(L.parentNode||L.jquery)){var y=L.jquery?L[0]:L;var A={};f(O).data("blockUI.history",A);A.el=y;A.parent=y.parentNode;A.display=y.style.display;A.position=y.style.position;if(A.parent){A.parent.removeChild(y)}}var p=G.baseZ;var D=(f.browser.msie||G.forceIframe)?f('<iframe class="blockUI" style="z-index:'+(p++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+G.iframeSrc+'"></iframe>'):f('<div class="blockUI" style="display:none"></div>');var H=f('<div class="blockUI blockOverlay" style="z-index:'+(p++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var w;if(G.theme&&r){var v='<div class="blockUI blockMsg blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+p+';display:none;position:fixed"><div class="ui-widget-header ui-dialog-titlebar blockTitle">'+(G.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>';w=f(v)}else{w=r?f('<div class="blockUI blockMsg blockPage" style="z-index:'+p+';display:none;position:fixed"></div>'):f('<div class="blockUI blockMsg blockElement" style="z-index:'+p+';display:none;position:absolute"></div>')}if(L){if(G.theme){w.css(K);w.addClass("ui-widget-content")}else{w.css(M)}}if(!G.applyPlatformOpacityRules||!(f.browser.mozilla&&/Linux/.test(navigator.platform))){H.css(G.overlayCSS)}H.css("position",r?"fixed":"absolute");if(f.browser.msie||G.forceIframe){D.css("opacity",0)}var N=[D,H,w],x=r?f("body"):f(O);f.each(N,function(){this.appendTo(x)});if(G.theme&&G.draggable&&f.fn.draggable){w.draggable({handle:".ui-dialog-titlebar",cancel:"li"})}var P=m&&(!f.boxModel||f("object,embed",r?null:O).length>0);if(i||P){if(r&&G.allowBodyStretch&&f.boxModel){f("html,body").css("height","100%")}if((i||!f.boxModel)&&!r){var B=g(O,"borderTopWidth"),E=g(O,"borderLeftWidth");var F=B?"(0 - "+B+")":0;var u=E?"(0 - "+E+")":0}f.each([D,H,w],function(R,z){var t=z[0].style;t.position="absolute";if(R<2){r?t.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+G.quirksmodeOffsetHack+') + "px"'):t.setExpression("height",'this.parentNode.offsetHeight + "px"');r?t.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):t.setExpression("width",'this.parentNode.offsetWidth + "px"');if(u){t.setExpression("left",u)}if(F){t.setExpression("top",F)}}else{if(G.centerY){if(r){t.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}t.marginTop=0}else{if(!G.centerY&&r){var Q=(G.css&&G.css.top)?parseInt(G.css.top):0;var S="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+Q+') + "px"';t.setExpression("top",S)}}}})}if(L){if(G.theme){w.find(".ui-widget-content").append(L)}else{w.append(L)}if(L.jquery||L.nodeType){f(L).show()}}if((f.browser.msie||G.forceIframe)&&G.showOverlay){D.show()}if(G.fadeIn){var q=G.onBlock?G.onBlock:l;var C=(G.showOverlay&&!L)?q:l;var I=L?q:l;if(G.showOverlay){H._fadeIn(G.fadeIn,C)}if(L){w._fadeIn(G.fadeIn,I)}}else{if(G.showOverlay){H.show()}if(L){w.show()}if(G.onBlock){G.onBlock()}}o(1,O,G);if(r){n=w[0];e=f(":input:enabled:visible",n);if(G.focusInput){setTimeout(k,20)}}else{b(w[0],G.centerX,G.centerY)}if(G.timeout){var J=setTimeout(function(){r?f.unblockUI(G):f(O).unblock(G)},G.timeout);f(O).data("blockUI.timeout",J)}}function h(s,p){var q=(s==window);var r=f(s);var v=r.data("blockUI.history");var t=r.data("blockUI.timeout");if(t){clearTimeout(t);r.removeData("blockUI.timeout")}p=f.extend({},f.blockUI.defaults,p||{});o(0,s,p);var u;if(q){u=f("body").children().filter(".blockUI").add("body > .blockUI")}else{u=f(".blockUI",s)}if(q){n=e=null}if(p.fadeOut){u.fadeOut(p.fadeOut);setTimeout(function(){d(u,v,p,s)},p.fadeOut)}else{d(u,v,p,s)}}function d(s,r,p,q){s.each(function(u,t){if(this.parentNode){this.parentNode.removeChild(this)}});if(r&&r.el){r.el.style.display=r.display;r.el.style.position=r.position;if(r.parent){r.parent.appendChild(r.el)}f(q).removeData("blockUI.history")}if(typeof p.onUnblock=="function"){p.onUnblock(q,p)}}function o(u,s,p){var q=s==window,r=f(s);if(!u&&(q&&!n||!q&&!r.data("blockUI.isBlocked"))){return}if(!q){r.data("blockUI.isBlocked",u)}if(!p.bindEvents||(u&&!p.showOverlay)){return}var t="mousedown mouseup keydown keypress";u?f(document).bind(t,p,c):f(document).unbind(t,c)}function c(r){if(r.keyCode&&r.keyCode==9){if(n&&r.data.constrainTabKey){var s=e;var q=!r.shiftKey&&r.target==s[s.length-1];var p=r.shiftKey&&r.target==s[0];if(q||p){setTimeout(function(){k(p)},10);return false}}}if(f(r.target).parents("div.blockMsg").length>0){return true}return f(r.target).parents().children().filter("div.blockUI").length==0}function k(p){if(!e){return}var q=e[p===true?e.length-1:0];if(q){q.focus()}}function b(u,q,r){var z=u.parentNode,w=u.style;var A=((z.offsetWidth-u.offsetWidth)/2)-g(z,"borderLeftWidth");var v=((z.offsetHeight-u.offsetHeight)/2)-g(z,"borderTopWidth");if(q){w.left=A>0?(A+"px"):"0"}if(r){w.top=v>0?(v+"px"):"0"}}function g(q,r){return parseInt(f.css(q,r))||0}})(jQuery);function isDef(a){return typeof(a)!="undefined"&&a!=null}Date.prototype.add=function(c,a){var b=this;if(!c||a==0){return b}switch(c.toLowerCase()){case"ms":b.setMilliseconds(b.getMilliseconds()+a);break;case"s":b.setSeconds(b.getSeconds()+a);break;case"mi":b.setMinutes(b.getMinutes()+a);break;case"h":b.setHours(b.getHours()+a);break;case"d":b.setDate(b.getDate()+a);break;case"m":b.setMonth(b.getMonth()+a);break;case"y":b.setFullYear(b.getFullYear()+a);break}return b};Date.prototype.fromYMD=function(b,a,e){var c=new Date();c.setFullYear(b,a,e);c.setHours(0,0,0,0);return c};function randomString(b){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var b=(typeof(b)=="undefined"?8:b);var c="";for(var a=0;a<b;a++){var d=Math.floor(Math.random()*e.length);c+=e.substring(d,d+1)}return c}var MapHelper;if(!MapHelper){MapHelper={}}var mapHelper_MarkerBaseIcon=null,mapHelper_SelectedHotelMarkerIcon=null;MapHelper.GetBaseMarkerIcon=function(){if(mapHelper_MarkerBaseIcon==null){mapHelper_MarkerBaseIcon=new GIcon();mapHelper_MarkerBaseIcon.iconSize=new GSize(14,24);mapHelper_MarkerBaseIcon.iconAnchor=new GPoint(14,24);mapHelper_MarkerBaseIcon.shadowSize=new GSize(32,24);mapHelper_MarkerBaseIcon.shadow="http://www.google.com/mapfiles/shadow50.png"}return mapHelper_MarkerBaseIcon};MapHelper.GetHotelDetailsMarkerIcon=function(){var a=new GIcon(null,"http://google-maps-icons.googlecode.com/files/hotel.png");a.iconSize=new GSize(32,37);a.iconAnchor=new GPoint(32,37);return a};MapHelper.GetSelectedHotelMarkerIcon=function(){if(mapHelper_SelectedHotelMarkerIcon==null){mapHelper_SelectedHotelMarkerIcon=new GIcon(null,"http://maps.google.com/mapfiles/ms/micons/pink-dot.png");mapHelper_SelectedHotelMarkerIcon.iconSize=new GSize(32,32);mapHelper_SelectedHotelMarkerIcon.iconAnchor=new GPoint(22,32)}return mapHelper_SelectedHotelMarkerIcon};MapHelper.GetHotelMarkerIcon=function(b,a){return a?MapHelper.GetSelectedHotelMarkerIcon():new GIcon(MapHelper.GetBaseMarkerIcon(),"http://www.google.com/mapfiles/marker"+String.fromCharCode("A".charCodeAt(0)+b)+".png")};function geo_GetCityInfo(cityID,languageCode){var o=$.ajax({async:false,type:"GET",url:"/"+(typeof(languageCode)=="undefined"?"en":languageCode)+"/WebService.mvc/GetCityAsSelectListItem?CityID="+cityID,contentType:"application/json; charset=utf-8",dataType:"json"});var city=eval("("+o.responseText+")");if(city.Message){alert("Ajax Error:\n"+city.Message);return -1}return city}function openPopupWindow(c,d){var a={height:600,width:600,toolbar:0,scrollbars:0,status:0,resizable:1,left:0,top:0,center:0,createnew:0,location:0,menubar:0,name:""};var d=$.extend(a,d);var e=this;if(d.center==1){d.top=(screen.height-(d.height+110))/2;d.left=(screen.width-d.width)/2}var b="location="+d.location+",menubar="+d.menubar+",height="+d.height+",width="+d.width+",toolbar="+d.toolbar+",scrollbars="+d.scrollbars+",status="+d.status+",resizable="+d.resizable+",left="+d.left+",screenX="+d.left+",top="+d.top+",screenY="+d.top;return window.open(c,d.name,b)}function SiteEngine(a){var b={languageCode:"en",defaultLanguageCode:"en",tooltipSeparator:"|",menuId:"",workingHtml:"<p>Working ...</p>",contactUsUrl:null,webService:"webservice.mvc"};var e=$.extend({},b,a||{});var d={message:$("#dialogWorking"),css:{top:"100px",width:"250px",margin:"auto"},fadeIn:0,fadeOut:0,centerY:false};var c={message:e.workingHtml,css:{top:"100px",width:"210px",left:"43%",padding:"15px"},fadeIn:0,fadeOut:0};$(e.menuId).addClass("active");$("#menu-lang a").click(function(){engine.Working()});$(".trigger-contact-us").click(function(){openPopupWindow(e.contactUsUrl,{name:"wContactUs",width:430,height:550,center:1});return false}).attr("href","javascript:void(0);");$(document).ready(function(){engine.ToolTipsInit();if(isDef($.fn.media)){engine.VideoPlayerInit();$("a.media").media()}});this.LanguageCode=e.languageCode;this.BlockUIWorking=c;this.BlockUIDialog=d;this.Weather=new Array();this.Working=function(f){$.blockUI(isDef(f)?$.extend({},c,f||{}):c)};this.WorkingDialog=function(f,g){if(g==false){$(f).unblock()}else{$(f).block(d)}};this.ToolTipsInit=function(f){$("span.tt, img.tt, a.tt, td.tt",!isDef(f)?document.body:f).not("[tooltipText]").tooltip({delay:100,showURL:false,showBody:e.tooltipSeparator})};this.WeatherLoad=function(h,i,f){var g=$("#containerWeather");if(g.length<1){return}f=!isDef(f)?engine.Weather[h+"_"+i]:f;if(isDef(f)){g.html(f);$("#Weather_CityID, #SelectedCity_CityID").show();$("img.ajax-loading").hide();engine.WeatherTranslate(g)}else{$.get("/"+e.languageCode+"/"+e.webService+"/weather",{longitude:h,latitude:i,count:8},function(j){engine.Weather[h+"_"+i]=j;engine.WeatherLoad(null,null,j)})}};this.WeatherTranslate=function(f,g){if(!isDef(f)){f=document.body}if(!isDef(g)){g=e.languageCode}engine.ToolTipsInit(f);if(g!=e.defaultLanguageCode){$("div.weather img",f).each(function(h){var j=$(this).attr("tooltipText").split(e.tooltipSeparator);google.language.translate(j[1],"en",g,function(k){var i=$("div.weather img."+h);i.attr("tooltipText",j[0]+e.tooltipSeparator+k.translation)})})}};this.VideoPlayerInit=function(f){if(!isDef($.fn.media)){return}$.fn.media.defaults.flvPlayer="/content/gadgets/mediaplayer/mediaplayer.swf";$(".videoPlayerTrigger",!isDef(f)?document.body:f).click(function(){$("#divVideoPlayer").dialog("option","data",$(this).metadata({type:"class"})).dialog("open")});$("#divVideoPlayer").dialog({bgiframe:true,draggable:true,resizable:false,modal:true,position:new Array("center",60),autoOpen:false,width:345,buttons:{Ok:function(){$(this).dialog("close")}},open:function(h,g){var i=$(this).dialog("option","data");$("#ui-dialog-title-divVideoPlayer").text(i.hotelName);$("#videoFrame").attr("src","/en/hoteldetails.mvc/videoplayer?hotelID="+i.hotelID).show()},close:function(h,g){$("#videoFrame").hide().attr("src","/empty.htm")}})}};