var oUnitThemestage={init:function(){this.setEvents('.unitthemestage');this.setTabContent('.unitthemestage')},setEvents:function(sCssPath){sCssPath=(sCssPath!=undefined&&sCssPath!=''?sCssPath+' ':'');$(sCssPath+'[data-unit-event]:not([data-unit-event=""])').each($.proxy(function(lIndex,oElement){var sParams,sFunction;sFunction=$(oElement).attr('data-unit-event-function');sParams=$(oElement).attr('data-unit-event-params');if(sFunction=='')return;$(oElement).on($(oElement).attr('data-unit-event'),$.proxy(function(){sParams=sParams.replace('this','oElement');eval('this.'+sFunction+'('+sParams+')')},this))},this))},setTabContent:function(sCssPath){sCssPath=(sCssPath!=undefined&&sCssPath!=''?sCssPath+' ':'');$(sCssPath+'[data-tab-content]:not([data-tab-content=""])').each($.proxy(function(lIndex,oElement){var oContainer=$(sCssPath+'[data-tab-container='+$(oElement).attr('data-tab-content')+']').html($(oElement).html())},this))},toggleTab:function(lCurrent,oEvent){oTab=$('.unitthemestage .tabs .tab').eq(lCurrent);var oMain=oTab.closest('[data-unit-layoutkey]');var sLayoutKey=oMain.attr('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].toggleTab)=='function'){}else{oTab.siblings('.tab').removeClass('active').find('.tabContent').slideUp();oTab.addClass('active').find('.tabContent').slideDown()}},getOffset:function(){return 0},next:function(oElement){oElement=$(oElement);var oMain=oElement.closest('[data-unit-layoutkey]');var sLayoutKey=oMain.attr('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].next)=='function'){this[sLayoutKey].next(oElement)}else{var oNext=$('[data-unit-scroll-to]',oMain).first();if(!oNext.length)return;$('body, html').animate({scrollTop:oNext.offset().top+this.getOffset(oNext)})}}};onScrMngrLoaded(function(){$(document).ready(function(){oUnitThemestage.init()})});var oUnitContent={init:function(){this.setEvents('.unitintro');this.initSocialShares()},setEvents:function(sCssPath){sCssPath=(sCssPath!=''?sCssPath+' ':sCssPath);if(typeof(Prototype)=='undefined'){$(sCssPath+' [data-unit-event]:not([data-unit-event=""])').each($.proxy(function(lIndex,oElement){var sParams,sFunction;sFunction=$(oElement).attr('data-unit-event-function');sParams=$(oElement).attr('data-unit-event-params');if(sFunction=='')return;$(oElement).on($(oElement).attr('data-unit-event'),$.proxy(function(){sParams=sParams.replace('this','oElement');eval('this.'+sFunction+'('+sParams+')')},this))},this))}else{$$(sCssPath+' [data-unit-event]:not([data-unit-event=""])').each(function(oElement,lIndex){var sParams,sFunction;sFunction=oElement.readAttribute('data-unit-event-function');sParams=oElement.readAttribute('data-unit-event-params');if(sFunction=='')return;$(oElement).on($(oElement).attr('data-unit-event'),function(){sParams=sParams.replace('this','oElement');eval('this.'+sFunction+'('+sParams+')')}.bind(this))}.bind(this))}},initSocialShares:function(){if(typeof(Prototype)=='undefined'){$('.unitbycodedetail div.authorbox div.share a[data-share]').each(function(i,oElement){oElement=$(oElement);var sKey=oElement.attr('data-share');oElement.on('click',function(){var oOpenGraph={title:undefined,description:undefined,url:undefined,site_name:undefined,image:undefined};$("meta[property^='og:']").each(function(){oOpenGraph[$(this).attr('property').substr(3)]=$(this).attr('content')});if(sKey=='facebook'){var sUrl='https://www.facebook.com/sharer/sharer.php?u='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='twitter'){var sUrl='https://twitter.com/share?url='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='pinterest'){var sUrl='https://www.pinterest.com/pin/create/button/?url='+encodeURI(oOpenGraph.url)+'&media='+encodeURI(oOpenGraph.image)+'&description='+encodeURI(oOpenGraph.title).replace('&','%26')+' '+encodeURI(oOpenGraph.description).replace('&','%26')+' '+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='googleplus'){var sUrl='https://plus.google.com/share?url='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}})})}else{$$('.unitbycodedetail div.authorbox div.share a[data-share]').each(function(oElement,i){var sKey=oElement.readAttribute('data-share');oElement.on('click',function(){var oOpenGraph={title:undefined,description:undefined,url:undefined,site_name:undefined,image:undefined};$$("meta[property^='og:']").each(function(){oOpenGraph[$(this).attr('property').substr(3)]=$(this).attr('content')});if(sKey=='facebook'){var sUrl='https://www.facebook.com/sharer/sharer.php?u='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='twitter'){var sUrl='https://twitter.com/share?url='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='pinterest'){var sUrl='https://www.pinterest.com/pin/create/button/?url='+encodeURI(oOpenGraph.url)+'&media='+encodeURI(oOpenGraph.image)+'&description='+encodeURI(oOpenGraph.title).replace('&','%26')+' '+encodeURI(oOpenGraph.description).replace('&','%26')+' '+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}else if(sKey=='googleplus'){var sUrl='https://plus.google.com/share?url='+encodeURI(oOpenGraph.url);openWin(sUrl,sKey+'window','height=570, width=600, toolbar=0, location=0, menubar=0, directories=0, scrollbars=0')}})})}},next:function(oElement){if(typeof(Prototype)=='undefined'){oElement=$(oElement);var sLayoutKey=oElement.closest('[data-unit-layoutkey]').attr('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].next)=='function'){this[sLayoutKey].next(oElement)}else{}}else{var sLayoutKey=oElement.up('[data-unit-layoutkey]').readAttribute('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].next)=='function'){this[sLayoutKey].next(oElement)}else{}}}};onScrMngrLoaded(function(){if(typeof(Prototype)=='undefined'){$(document).ready(function(){oUnitContent.init()})}else{document.observe('dom:loaded',function(){oUnitContent.init()})}});var oUnitList={init:function(){this.setEvents('.unitlist');this.drawIcons();this.checkAndSetDetailLink();this.moveIntro();$('.unitlist.list').each($.proxy(function(i,o){var sLayoutKey=$(o).attr('data-unit-layoutkey');if(sLayoutKey!==undefined&&this[sLayoutKey]&&typeof(this[sLayoutKey].onInit)=='function'){this[sLayoutKey].onInit(o)}},this))},setEvents:function(sCssPath){sCssPath=(sCssPath!=''?sCssPath+' ':sCssPath);$(sCssPath+'[data-unit-event]:not([data-unit-event=""])').each($.proxy(function(lIndex,oElement){var sParams,sFunction;sFunction=$(oElement).attr('data-unit-event-function');sParams=$(oElement).attr('data-unit-event-params');if(sFunction=='')return;$(oElement).on($(oElement).attr('data-unit-event'),$.proxy(function(){sParams=sParams.replace('this','oElement');eval('this.'+sFunction+'('+sParams+')')},this))},this))},drawIcons:function(){$('.unitlist.list .elementicon[data-unit-icon]:not([data-unit-icon=""])').each($.proxy(function(lIndex,oElement){this.drawIcon($(oElement),eval($(oElement).attr('data-unit-icon')))},this))},drawIcon:function(oElement,oIcon){if(!oElement||!oElement.length||!oIcon)return;$(oElement).html('');if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],$(oElement).width(),$(oElement).height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}oIcon.setViewBox(oPaper);var oIconSet;if(typeof(oIcon.types)=='function'){oIconSet=oPaper.add(oIcon.types(oElement))}else{oIconSet=oPaper.add(oIcon.types)}return{'oIcon':oPaper,'oIconSet':oIconSet}},next:function(oElement){oElement=$(oElement);var sLayoutKey=oElement.closest('[data-unit-layoutkey]').attr('data-unit-layoutkey');if(this[sLayoutKey]&&typeof(this[sLayoutKey].next)=='function'){this[sLayoutKey].next(oElement)}else{}},checkAndSetDetailLink:function(){$('.unitlist.list[data-unit-elementlinked="true"]').each(function(){$('[data-unit-detaillink]:not([data-unit-detaillink=""])',$(this)).each(function(lIndex,oElement){oElement=$(oElement);oElement.addClass('hover');$$(oElement).find('a[class!="liveedit"]').each(function(){$(this).removeAttr("href")});oElement.click(function(o){if(!$(o.target).closest('div.liveedit').length){if($(oElement).attr('data-unit-detaillink-target')!=undefined&&$(oElement).attr('data-unit-detaillink-target')!=''){window.open(oElement.attr('data-unit-detaillink'),$(oElement).attr('data-unit-detaillink-target'))}else{window.location.href=oElement.attr('data-unit-detaillink')}}})})})},moveIntro:function(){$$('.unitlist.filter').each(function(){if($(this).find('.mainintro').size()>0){$(this).prepend($(this).find('.mainintro'))}})},filter:{init:function(options){if(this.bInit!=true){this.options=$.extend({sSharedKey:'',sAjaxUrl:'',sAjaxContainer:'unitlist',sLabelBox:'unitlistlabelbox',sLabelIDs:'',sSearchTerm:'',oCheckBoxAll:undefined,onChangeIcon:function(){},bFormClass:false},options||{});this.oLoading=$('#unitlistfilterloading');this.options.onChangeIcon()}this.bInit=true},checkBox:function(oElement){oElement=$(oElement);var sValue=oElement.val();if(oElement.prop("checked")==true){if(this.options.sLabelIDs!='')this.options.sLabelIDs+=',';this.options.sLabelIDs+=sValue}else{this.options.sLabelIDs=(','+this.options.sLabelIDs).replace(','+sValue,'');if(this.options.sLabelIDs.substr(0,1)==','){this.options.sLabelIDs=this.options.sLabelIDs.slice(1,this.options.sLabelIDs.length)}if(this.options.sLabelIDs.substr(this.options.sLabelIDs.length-1,this.options.sLabelIDs.length)==','){this.options.sLabelIDs=this.options.sCategoryIDs.slice(0,this.options.sLabelIDs.length-1)}}if(this.options.bFormClass){this.setCheckboxValue(oElement,oElement.prop("checked"));this.options.onChangeIcon()}if(this.options.oCheckBoxAll){if(this.options.sLabelIDs==''){this.setCheckboxValue(this.options.oCheckBoxAll,true)}else{this.setCheckboxValue(this.options.oCheckBoxAll,false)}this.options.onChangeIcon()}this.loadAjax()},searchText:function(oElement,oEvent){if(oEvent.keyCode==13){this.options.sSearchTerm=$(oElement).val();this.loadAjax()}},resetCheckBox:function(){this.options.sLabelIDs='';if($('#unitlistlabelbox')){var oCheckBox=this.options.oCheckBoxAll;var oThat=this;$('#unitlistlabelbox input[type="checkbox"]').each(function(i,o){if(o==oCheckBox[0]){oThat.setCheckboxValue(o,true)}else{oThat.setCheckboxValue(o,false)}})}this.options.onChangeIcon();this.loadAjax()},setCheckboxValue:function(oElement,bChecked){oElement=$(oElement);oElement.prop("checked",bChecked);if(this.options.bFormClass){if(bChecked){$(oElement).prev('span').addClass('checked')}else{$(oElement).prev('span').removeClass('checked')}}},setLabelID:function(oElement,lLabelID){var oSelect;oElement=$(oElement);this.options.sLabelIDs=lLabelID;$('#'+this.options.sLabelBox+' div.active').removeClass('active');oSelect=$('#UnitListFilterFormlistlabels');if(oSelect.length){if(lLabelID==-1)lLabelID='All';oSelect.val(lLabelID);oSelect.next('span.select').html(oSelect.children(':selected').text())}oElement.addClass('active');this.loadAjax()},setLabelIdBySelect:function(oElement){this.options.sLabelIDs=$F(oElement);var sValue=this.options.sLabelIDs;if(sValue=='All')sValue=-1;$('#'+this.options.sLabelBox+' div.active').removeClass('active');$('#unitlistlabelbox [data-unit-list-labelid='+sValue+']').addClass('active');this.loadAjax()},loadAjax:function(){if($(this.oLoading).size()>0){$(this.oLoading).show()}var ua=window.navigator.userAgent;var msie=ua.indexOf("MSIE ");var sAjaxCont=this.options.sAjaxContainer;var oLoad=this.oLoading;$.ajax(msie>0?encodeURI(this.options.sAjaxUrl):this.options.sAjaxUrl,{data:{sLabelIDs:this.options.sLabelIDs,sSharedKey:this.options.sSharedKey,sSearchTerm:this.options.sSearchTerm,sPageKey:'Select',sUnitKey:'UnitList'},type:"POST",success:function(data){if(oLoad){oLoad.hide()}$('#'+sAjaxCont).html(data).find("script").each(function(){eval($(this).text())});$('#'+sAjaxCont+" picture").each(function(){if(typeof(Prototype)=='undefined'){if(typeof $.fn.convertPictureToImg!='undefined')$(this).convertPictureToImg()}else{$(this).convertPictureToImg()}});$('[data-carousel="true"]').each(function(lIndex,oElement){initCarousel(this)});var oContainer=$('#'+sAjaxCont).find('[data-unit-layoutkey]');if(oContainer.length){var sLayoutKey=$(oContainer).attr('data-unit-layoutkey');if(sLayoutKey!==undefined&&oUnitList[sLayoutKey]&&typeof(oUnitList[sLayoutKey].onInit)=='function'){oUnitList[sLayoutKey].onInit(oContainer)}}if(typeof($.fn.convertVideo)=='function'){$('div.ajaxlist video[data-resize="true"]').convertVideo()}var oMainIntroElement=$('.unitlist.list .mainintro');if(oMainIntroElement.size()>0){oMainIntroElement.hide()}oUnitList.checkAndSetDetailLink()}})}}};onScrMngrLoaded(function(){$(document).ready(function(){oUnitList.init()})});oUnitList.layout8={oIcon:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,38,15,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M 27.0713 15 L 19.1704 3.4305 L 11.6193 14.9454 L 6.2999 8.1213 L 1.6416 13.9548 C 1.3047 14.3749 0.7163 14.4257 0.3264 14.0643 C -0.0653 13.7048 -0.1108 13.0737 0.2244 12.6537 L 6.3163 5.0227 L 11.4918 11.6632 L 19.1376 0 L 27.0677 11.6085 L 31.5328 5.0326 L 37.7667 12.6439 C 38.1092 13.0602 38.0691 13.691 37.6829 14.0564 C 37.2968 14.4198 36.7064 14.3788 36.3677 13.9646 L 31.6712 8.2286 L 27.0713 15 Z',fill:oElement.css('color'),stroke:'none'}]}}};var unitOffers={oGallery:null,oLastOpenClose:{},setOffset:function(){},lIconsVersion:1,oIcons:{servicelist:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,23,23,true)},types:[{type:'circle',cx:11.5,cy:11.5,r:10.5,fill:'#353535',stroke:'none'},{type:'path',path:'M8,9.5 l-2,2 4.5,5 7.5,-7 -2,-2 -5.5,5z',fill:'#FFFFFF',stroke:'none'}]},request:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,32,45,true)},types:[{type:'path',path:'M 32 5.1428 L 32 2.5714 C 32 1.1514 30.8538 0 29.44 0 L 24.32 0 C 22.9063 0 21.76 1.1514 21.76 2.5714 L 21.76 5.1428 L 32 5.1428 Z',fill:'#000000',stroke:'none'},{type:'path',path:'M 23.04 39.8572 L 30.72 39.8572 L 26.88 45 L 23.04 39.8572 Z',fill:'#000000',stroke:'none'},{type:'path',path:'M 21.76 37.2858 L 32 37.2858 L 32 6.4286 L 21.76 6.4286 L 21.76 37.2858 ZM 26.88 10.2858 C 26.88 9.5757 27.4525 9 28.16 9 L 28.16 9 C 28.8675 9 29.44 9.5757 29.44 10.2858 L 29.44 33.4286 C 29.44 34.1385 28.8675 34.7142 28.16 34.7142 L 28.16 34.7142 C 27.4525 34.7142 26.88 34.1385 26.88 33.4286 L 26.88 10.2858 Z',fill:'#000000',stroke:'none'},{type:'path',path:'M 0 43.7142 C 0 44.4243 0.5725 45 1.28 45 L 20.48 45 C 21.1875 45 21.76 44.4243 21.76 43.7142 L 21.76 43.7142 C 21.76 43.0043 21.1875 42.4286 20.48 42.4286 L 1.28 42.4286 C 0.5725 42.4286 0 43.0043 0 43.7142 L 0 43.7142 Z',fill:'#000000',stroke:'none'}]},phone:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,39,45,true)},types:[{type:'path',path:'M 35.1853 35.0864 C 36.4247 37.3121 37.4073 40.0508 36.5653 42.287 C 35.8356 44.2258 33.8832 45.1827 31.8195 44.9711 C 29.2012 44.7015 27.0595 42.8141 26.0087 40.5504 C 25.4333 39.3025 27.4107 38.447 27.9852 39.6957 C 28.7189 41.2745 30.2014 42.6943 32.0479 42.8846 C 33.1146 42.9938 34.144 42.5983 34.5302 41.5707 C 35.1306 39.9777 34.2422 37.7748 33.2554 36.03 C 33.9129 35.7524 34.5624 35.4335 35.1853 35.0864 L 35.1853 35.0864 ZM 26.1193 43.4503 C 26.7838 44.6576 24.8738 45.6426 24.2101 44.4363 L 22.1049 40.6165 C 21.4412 39.4102 23.3485 38.4232 24.0135 39.6295 L 26.1193 43.4503 L 26.1193 43.4503 ZM 22.1563 43.4503 C 22.8199 44.6576 20.9103 45.6426 20.2471 44.4363 L 18.1419 40.6165 C 17.4773 39.4102 19.3856 38.4232 20.0506 39.6295 L 22.1563 43.4503 L 22.1563 43.4503 ZM 18.1933 43.4503 C 18.8579 44.6566 16.9478 45.6426 16.2841 44.4363 L 14.1788 40.6165 C 13.5151 39.4102 15.4239 38.4232 16.0875 39.6295 L 18.1933 43.4503 L 18.1933 43.4503 ZM 14.2302 43.4503 C 14.8949 44.6566 12.9857 45.6426 12.3211 44.4363 L 10.2159 40.6165 C 9.5518 39.4102 11.46 38.4232 12.1249 39.6295 L 14.2302 43.4503 L 14.2302 43.4503 ZM 8.3586 44.4363 L 6.2534 40.6165 C 5.5892 39.4102 7.4974 38.4232 8.1621 39.6295 L 10.2677 43.4503 C 10.9323 44.6566 9.0223 45.6426 8.3586 44.4363 L 8.3586 44.4363 ZM 6.3047 43.4503 C 6.9694 44.6566 5.0593 45.6426 4.3955 44.4363 L 2.2903 40.6165 C 1.6268 39.4102 3.534 38.4225 4.1991 39.6295 L 6.3047 43.4503 L 6.3047 43.4503 ZM 1.3082 42.4563 C 2.0306 42.4563 2.6174 43.0237 2.6174 43.7235 C 2.6174 44.4231 2.0311 44.9913 1.3082 44.9913 C 0.5859 44.9913 0 44.4231 0 43.7235 C 0 43.0237 0.5864 42.4563 1.3082 42.4563 L 1.3082 42.4563 Z',fill:'#000000',stroke:'none'},{type:'path',path:'M 2.95 9.5248 C 3.1688 6.6786 5.4518 3.2095 6.9325 1.7969 L 10.3092 0.078 C 12.368 -0.9717 18.2492 8.901 16.2964 10.1213 L 13.0721 12.0952 C 11.7106 12.7676 11.2643 15.1395 12.8784 16.7026 L 21.7568 25.3019 C 23.3707 26.866 25.819 26.4332 26.5146 25.1143 L 28.5497 21.9896 C 29.7906 20.0881 40.0014 25.7954 38.9199 27.7894 L 37.1462 31.0594 C 35.6882 32.4948 32.1064 34.7057 29.1684 34.918 C 17.0356 30.0267 8.0002 21.2758 2.95 9.5248 L 2.95 9.5248 Z',fill:'#000000',stroke:'none'}]},email:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,51,38,true)},types:[{type:'path',path:'M 0 0 L 51 0 L 51 38 L 0 38 L 0 0 L 0 0 Z M 1.668 1.7004 L 1.668 2.7004 L 1.668 36.2996 L 49.3331 36.2996 L 49.3331 1.7004 L 1.668 1.7004 Z M 5.3338 6.6151 L 25.498 22.3508 L 45.6671 6.6047 L 45.6671 8.6714 L 26.2882 25.6827 C 25.8196 26.1201 25.0916 26.0942 24.6536 25.63 L 5.3338 8.6746 L 5.3338 6.6151 L 5.3338 6.6151 Z',fill:'#000000',stroke:'none'},{type:'path',path:'M 5.3338 30.3953 L 17.729 23.3235 L 15.8018 21.8638 L 5.3338 28.3844 L 5.3338 31.3953 L 5.3338 30.3953 ZM 33.269 23.3265 L 45.6671 30.4055 L 45.6671 28.3844 L 35.1963 21.8657 L 33.269 23.3265 L 33.269 23.3265 Z',fill:'#000000',stroke:'none'}]},close:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,20,20,true)},types:[{type:'circle',cx:10,cy:10,r:10,fill:'#FFFFFF',stroke:'none'},{type:'path',path:'M7,6 l-1,1 3,3 -3,3 1,1 3,-3 3,3 1,-1 -3,-3 3,-3 -1,-1 -3,3',fill:'#353535',stroke:'none'}]},calendarnext:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,13,21,true)},types:[{type:'path',path:'M2,0 l-2,2 9,8.5 -9,8.5 2,2 11,-10.5z',fill:'#FFFFFF',stroke:'none'}]},calendarprev:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,13,21,true)},types:[{type:'path',path:'M11,0 l2,2 -9,8.5 9,8.5 -2,2 -11,-10.5z',fill:'#FFFFFF',stroke:'none'}]},closebooking:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,21,13,true)},types:[{type:'path',path:'M2,0 l-2,2 10.5,11 10.5,-11 -2,-2 -8.5,9z',fill:'#FFFFFF',stroke:'none'}]},openbooking:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,21,13,true)},types:[{type:'path',path:'M2,13 l-2,-2 10.5,-11 10.5,11 -2,2 -8.5,-9z',fill:'#FFFFFF',stroke:'none'}]},xcalendar:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,21,21,true)},types:[{type:'path',path:'M 1 1 L 22 22 M 1 22 L 22 1',fill:'none',stroke:'#000000'}]},selectcalendar:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,49,41,true)},types:[{type:'rect',x:7.5,y:3.5,width:34,height:34,r:2,fill:'#000000',stroke:'none'}]},resetdays:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,20,20,true)},types:[{type:'circle',cx:10,cy:10,r:10,fill:'#DDDBDB',stroke:'none'},{type:'path',path:'M7,6 l-1,1 3,3 -3,3 1,1 3,-3 3,3 1,-1 -3,-3 3,-3 -1,-1 -3,3',fill:'#353535',stroke:'none'}]},addToHolidayPlanner:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,17,17,true)},types:[{type:'path',path:'M 1 8.5 C 1 4.3578 4.3579 1 8.5 1 C 12.6421 1 16 4.3578 16 8.5 C 16 12.6422 12.6421 16 8.5 16 C 4.3579 16 1 12.6422 1 8.5 Z',fill:'#353535',stroke:'none',opacity:0.502},{type:'path',path:'M 2 8.5 C 2 4.9102 4.9102 2 8.5 2 C 12.0898 2 15 4.9102 15 8.5 C 15 12.0898 12.0898 15 8.5 15 C 4.9102 15 2 12.0898 2 8.5 Z',fill:'#353535',stroke:'#FFFFFF'},{type:'rect',x:8,y:6,width:1,height:5,fill:'#FFFFFF',stroke:'none'},{type:'rect',x:6,y:8,width:5,height:1,fill:'#FFFFFF',stroke:'none'}]},addedToHolidayPlanner:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,17,17,true)},types:[{type:'path',path:'M 1 8.5 C 1 4.3578 4.3579 1 8.5 1 C 12.6421 1 16 4.3578 16 8.5 C 16 12.6422 12.6421 16 8.5 16 C 4.3579 16 1 12.6422 1 8.5 Z',fill:'#353535',stroke:'none',opacity:0.502},{type:'path',path:'M 2 8.5 C 2 4.9102 4.9102 2 8.5 2 C 12.0898 2 15 4.9102 15 8.5 C 15 12.0898 12.0898 15 8.5 15 C 4.9102 15 2 12.0898 2 8.5 Z',fill:'#353535',stroke:'#FFFFFF'},{type:'path',path:'M 6.2868 7.8485 L 8.1688 9.5703 L 10.8517 6.0465 L 11.6126 6.7273 L 8.1288 10.9719 L 5.6061 8.5693 L 6.2868 7.8485 Z',fill:'#FFFFFF',stroke:'#FFFFFF'}]}},setIcons:function(oIcons){$.extend(this.oIcons,oIcons||{})},init:function(){this.checkAndSetDetailLink()},drawIcon:function(oElement,sKey,oParam){if(oElement==undefined||this.oIcons[sKey]==undefined){return}oParam=$.extend({attr:undefined},oParam||{});$(oElement).html('');if(Raphael.vml||Raphael.canvas){var oIcon=new Raphael(oElement,$(oElement).width(),$(oElement).height())}else{var oIcon=new Raphael(oElement,'100%','100%')}this.oIcons[sKey].setViewBox(oIcon);var oIconSet=oIcon.add(this.oIcons[sKey].types);if(oParam.attr!=undefined){oIconSet.attr(oParam.attr)}return{'oIcon':oIcon,'oIconSet':oIconSet}},postToPage:function(sUrl,oPost){var oForm=$('#unitoffersdataform');oForm.attr('action',sUrl);if(typeof(oPost)=='object'){$.each(oPost,function(key,value){$(oForm).find('input[name="'+key+'"]').val(value)})}oForm.first().submit()},filter:{init:function(options){if(this.bInit!=true){this.options=$.extend({sSharedKey:'',sAjaxUrl:'',sAjaxContainer:'unitoffersofferlist',sCategoryIDs:'',dtFrom:'',dtTo:'',oCheckBoxAll:undefined,onChancheIcon:function(){},bFormClass:false},options||{});this.oLoading=$('#unitoffersfilterloading')}this.bInit=true},checkBox:function(oElement){oElement=$(oElement);var sValue=oElement.val();if(oElement.prop("checked")==true){if(this.options.sCategoryIDs!='')this.options.sCategoryIDs+=',';this.options.sCategoryIDs+=sValue}else{this.options.sCategoryIDs=(','+this.options.sCategoryIDs).replace(','+sValue,'');if(this.options.sCategoryIDs.substr(0,1)==','){this.options.sCategoryIDs=this.options.sCategoryIDs.slice(1,this.options.sCategoryIDs.length)}if(this.options.sCategoryIDs.substr(this.options.sCategoryIDs.length-1,this.options.sCategoryIDs.length)==','){this.options.sCategoryIDs=this.options.sCategoryIDs.slice(0,this.options.sCategoryIDs.length-1)}}if(this.options.bFormClass){this.setCheckboxValue(oElement,oElement.prop("checked"));this.options.onChancheIcon()}if(this.options.oCheckBoxAll){if(this.options.sCategoryIDs==''){this.setCheckboxValue(this.options.oCheckBoxAll,true)}else{this.setCheckboxValue(this.options.oCheckBoxAll,false)}this.options.onChancheIcon()}this.loadAjax()},setCategory:function(lCategoty){this.options.sCategoryIDs=lCategoty;this.loadAjax()},month:function(oElement,dtFrom,dtTo){this.options.dtFrom=dtFrom;this.options.dtTo=dtTo;var oAktiv=$('#unitoffersmonthbox a.month.active').first();var oAllMonths=$('#unitoffersmonthbox a.allmonths');if(oAktiv!=undefined){oAktiv.removeClass('active')}$(oElement).addClass('active');oAllMonths.removeClass('active');this.loadAjax()},monthBySelectBox:function(oElement){var aValue=$(oElement).val().split('|');if(aValue.length==2){this.options.dtFrom=aValue[0];this.options.dtTo=aValue[1]}else{this.options.dtFrom='';this.options.dtTo=''}this.loadAjax()},resetMonth:function(oElement){this.month(oElement,'','');var oAllMonths=$('#unitoffersmonthbox a.allmonths');oAllMonths.addClass('active')},resetCheckBox:function(){this.options.sCategoryIDs='';if($('#unitofferscategotybox')){var oCheckBox=this.options.oCheckBoxAll;var oThat=this;$('#unitofferscategotybox input[type="checkbox"]').each(function(i,o){if(o==oCheckBox[0]){oThat.setCheckboxValue(o,true)}else{oThat.setCheckboxValue(o,false)}})}this.options.onChancheIcon();this.loadAjax()},setCheckboxValue:function(oElement,bChecked){oElement=$(oElement);oElement.prop("checked",bChecked);if(this.options.bFormClass){if(bChecked){$(oElement).prev('span').addClass('checked')}else{$(oElement).prev('span').removeClass('checked')}}},setGallery:function(lNumber,sSender){var lEffectPosition=0;var lFromToNumber=0;var lWidth=$('#'+this.sElement).width();var oBtnBack=$('#unitoffersmonthbox a.btnback').first();var oBtnNext=$('#unitoffersmonthbox a.btnnext').first();unitOffers.filter.setWidth(lNumber,sSender,this.sInternalId,this.sElement);if(oBtnBack!=undefined&&oBtnNext!=undefined){if(lNumber>1&&lNumber<this.aIDs.length){oBtnBack.removeClass('hidden');oBtnNext.removeClass('hidden')}else if(lNumber==1){oBtnBack.addClass('hidden')}else if(lNumber==this.aIDs.length){oBtnNext.addClass('hidden')}}if(sSender=='clickPrev'){$('#'+this.sInternalId+lNumber).css({'left':(lWidth*-1)+'px'});lEffectPosition=lWidth;lFromToNumber=lNumber+1;if(lFromToNumber>this.aIDs.length){lFromToNumber=1}}else if(sSender=='clickNext'){$('#'+this.sInternalId+lNumber).css({'left':lWidth+'px'});lEffectPosition=lWidth*-1;lFromToNumber=lNumber-1;if(lFromToNumber==0){lFromToNumber=this.aIDs.length}}this.oEffect=function(lActual,oParams,lLastImage){$('#'+this.sInternalId+lFromToNumber).animate({left:"+="+lEffectPosition},oParams);$('#'+this.sInternalId+lActual).animate({left:"+="+lEffectPosition},oParams)}},setGalleryBack:function(lNumber,sSender){$('#'+this.sInternalId+lNumber).css({'left':'auto'})},setFirstWidth:function(lNumber,sSender){if(lNumber==1){unitOffers.filter.setWidth(lNumber,sSender,this.sInternalId,this.sElement)}},setWidth:function(lNumber,sSender,sInternalId,sElement){var oElement=$('#'+sInternalId+lNumber);var lWidth=($('#'+sElement).width()/oElement.children().length)-1;oElement.children().each(function(lNumber,oChildElement){if($(oChildElement).css('width')!=lWidth+'px'){$(oChildElement).css('width',lWidth+'px')}})},loadAjax:function(){if($(this.oLoading).size()>0){$(this.oLoading).show()}var ua=window.navigator.userAgent;var msie=ua.indexOf("MSIE ");var sAjaxCont=this.options.sAjaxContainer;var oLoad=this.oLoading;$.ajax(msie>0?encodeURI(this.options.sAjaxUrl):this.options.sAjaxUrl,{data:{sCategoryIDs:this.options.sCategoryIDs,dtFrom:this.options.dtFrom,dtTo:this.options.dtTo,sSharedKey:this.options.sSharedKey,sPageKey:'List',sUnitKey:'UnitOffers'},type:"POST",success:function(data){if(oLoad){oLoad.hide()}$('#'+sAjaxCont).html(data).find("script").each(function(){eval($(this).text())});if(typeof $.fn.convertPictureToImg!='undefined'){$('#'+sAjaxCont+" picture").each(function(){$(this).convertPictureToImg()})}unitOffers.checkAndSetDetailLink()}})}},oCalender:{calender:null,dtLastFrom:false,dtLastTo:false,bInit:false,bLoadAjax:false,init:function(oOptions){if(this.bInit){return}this.bInit=true;if(unitOffers.lIconsVersion==1){unitOffers.drawNextPrevIcon('unitoffersnexticon','next');unitOffers.drawNextPrevIcon('unitoffersprevicon','prev')}},openClose:function(oElement,oOptions){oElement=$(oElement);unitOffers.openClose(oElement,'unitofferbookingbox');if(oElement.hasClass('btnclose')){this.RespHelperDesktop.stop();this.RespHelperMobile.stop()}else{unitOffers.oCalender.open('',oOptions)}},open:function(oElement,oOptions){if($(oElement)){unitOffers.open(oElement,'unitofferbookingbox');oOptions=$.extend({bScroll:true,},oOptions||{});if(oOptions.bScroll){unitOffers.scrollTo('unitofferbookingbox')}}var oThat=this;this.init();this.RespHelperDesktop=RespHelper.one('resize:change',function(){this.calender=new Arrivaldeparturecalendar(this.getCalenderConfig({'lVisibleMonths':2}));this.calender.init()}.bind(this),{lMinWidth:650});this.RespHelperMobile=RespHelper.one('resize:change',function(){this.calender=new Arrivaldeparturecalendar(this.getCalenderConfig({'lVisibleMonths':1}));this.calender.init()}.bind(this),{lMaxWidth:649});var lWindowWidth=window.innerWidth||$(window).width();oOptions=$.extend({lVisibleMonths:2},oOptions||{});if(lWindowWidth<=649){oOptions.lVisibleMonths=1}this.calender=new Arrivaldeparturecalendar(this.getCalenderConfig(oOptions));this.calender.init();if(this.oOptions.bFixedPeriod){this.loadRoomList(this.oOptions.dtFrom,this.oOptions.dtTo,oOptions)}else if(this.dtLastFrom!=false){this.calender.resetdays()}},loadRoomList:function(arrivalday,departureday,oOptions){var oThat=this;oOptions=$.extend($.extend(true,{},this.oOptions),oOptions||{});$('#unitoffersroomlist').html('').hide();this.bLoadAjax=true;var ua=window.navigator.userAgent;var msie=ua.indexOf("MSIE ");$.ajax(msie>0?encodeURI(oOptions.sAjaxUrl):oOptions.sAjaxUrl,{data:{lHotelID:oOptions.lHotelID,lOfferID:oOptions.lOfferID,dtFrom:arrivalday,dtTo:departureday,sSharedKey:oOptions.sSharedKey,sPageKey:'Rooms',sUnitKey:'UnitOffers'},type:"POST",success:function(data){$("#unitoffersroomlist").html(data);oThat.dtLastFrom=arrivalday;oThat.dtLastTo=departureday;$('#unitoffersroomlist').show();$('#unitofferscalenderloading').hide();if(!oOptions.bFixedPeriod){unitOffers.scrollTo('unitoffersroomlist')}if(typeof $.fn.convertPictureToImg!='undefined')$('#unitoffersroomlist picture').convertPictureToImg();oLightbox.reloadImages();oThat.bLoadAjax=false}})},setCalenderOptions:function(oOptions){this.oOptions=$.extend({lVisibleMonths:2},oOptions||{})},getCalenderConfig:function(oOptions){var oThat=this;oOptions=$.extend($.extend(true,{},this.oOptions),oOptions||{});this.bLoadAjax=false;return{'hotelids':oOptions.lHotelID,'portalid':oOptions.lPortalID,'calendardiv':'calendercontent','monthbgclass':'bgbar','spanClass':'text','departurecalendardiv':false,'bResetDayInSpan':false,'arrivalday':function(){if(oOptions.bFixedPeriod&&oOptions.dtFrom!=''){return oOptions.dtFrom}return oThat.dtLastFrom}(),'departureday':function(){if(oOptions.bFixedPeriod&&oOptions.dtTo!=''){return oOptions.dtTo}return oThat.dtLastTo}(),'startmonat':function(){return document.getElementById("sel_month").value},'onremovearrivalday':function(){oThat.dtLastFrom=false;$('#unitoffersroomlist').html('').hide()},'onremovedepartureday':function(){oThat.dtLastTo=false;$('#unitoffersroomlist').html('').hide()},'onresetdays':function(){oThat.dtLastFrom=false;oThat.dtLastTo=false;$('#unitoffersroomlist').html('').hide()},'ondeparturedayselected':function(arrivalday,departureday){oThat.loadRoomList(arrivalday,departureday,oOptions)},'wievielemonate':oOptions.lVisibleMonths,'onbeforeload':function(){$('#unitofferscalenderloading').show()},'onafterload':function(){oThat.drawCalenderIcons();if(!oThat.bLoadAjax){$('#unitofferscalenderloading').hide()}},'serviceurl':oOptions.sServiceUrl,'offerids':oOptions.lOfferID,'autosubmit':false}},drawCalenderIcons:function(){$('#calendercontent table tr td a.resetdays').each(function(i,oElement){$(this).html('');if(unitOffers.lIconsVersion>1){$(oElement).createSvg('icon-cross-round-inv')}else{if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael($(this)[0],$(this).width(),$(this).height())}else{var oPaper=new Raphael($(this)[0],'100%','100%')}oPaper.add(unitOffers.oIcons.resetdays.types);unitOffers.oIcons.resetdays.setViewBox(oPaper)}})},back:function(){this.calender.monthback()},next:function(){this.calender.monthforward()},reset:function(bScrollTo){this.calender.resetdays();if(bScrollTo){unitOffers.scrollTo('unitofferbookinghead')}}},openClose:function(oThis,sId,sKey){if(this.oLastOpenClose[sKey]!=undefined&&sKey!=undefined){if(this.oLastOpenClose[sKey].element!=$('#'+sId)){this.oLastOpenClose[sKey].element.addClass('closed');this.oLastOpenClose[sKey].btn.removeClass('btnopen');this.oLastOpenClose[sKey].btn.addClass('btnclose');if(this.lIconsVersion==1){this.drawOpneCloseIcon(this.oLastOpenClose[sKey].btn.children('div.icon'),'close')}}}if($('#'+sId).hasClass('closed')){unitOffers.open(oThis,sId,sKey);if(this.lIconsVersion==1){this.drawOpneCloseIcon(oThis.children('div.icon'),'open')}else{var sSvgIcon=oThis.children('svg.icon');if(sSvgIcon.size()>0){var sSvgIconUse=sSvgIcon.find('use');sSvgIcon.addClass("icon-up");sSvgIcon.removeClass("icon-down");sSvgIconUse.attr("xlink:href","#icon-up")}}}else{$('#'+sId).addClass('closed');$(oThis).removeClass('btnopen');$(oThis).addClass('btnclose');this.oLastOpenClose[sKey]=undefined;if(this.lIconsVersion==1){this.drawOpneCloseIcon($(oThis).children('div.icon'),'close')}else{var sSvgIcon=oThis.children('svg.icon');if(sSvgIcon.size()>0){var sSvgIconUse=sSvgIcon.find('use');sSvgIcon.addClass("icon-down");sSvgIcon.removeClass("icon-up");sSvgIconUse.attr("xlink:href","#icon-down")}}}},open:function(oThis,sId,sKey){$('#'+sId).removeClass('closed');$(oThis).removeClass('btnclose');$(oThis).addClass('btnopen');this.oLastOpenClose[sKey]={element:$('#'+sId),btn:$(oThis)};if(this.lIconsVersion>1){$(oThis).children('span.icon').addClass("icon-up");$(oThis).children('span.icon').removeClass("icon-down")}},drawRequestIcon:function(){var oElement=$('#unitoffersrequesticon');if(!oElement.length){return}if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}$.each(unitOffers.oIcons.request.types,function(oIndex,oValue){oValue.fill=$('#requesticoncolor').css('color')});oPaper.add(unitOffers.oIcons.request.types);unitOffers.oIcons.request.setViewBox(oPaper)},drawPhoneIcon:function(){var oElement=$('#unitoffersphoneicon');if(!oElement.length){return}if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}$.each(unitOffers.oIcons.phone.types,function(oIndex,oValue){oValue.fill=$('#requesticoncolor').css('color')});oPaper.add(unitOffers.oIcons.phone.types);unitOffers.oIcons.phone.setViewBox(oPaper)},drawEMailIcon:function(){var oElement=$('#unitoffersemailicon');if(!oElement.length){return}if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}$.each(unitOffers.oIcons.email.types,function(oIndex,oValue){oValue.fill=$('#requesticoncolor').css('color')});oPaper.add(unitOffers.oIcons.email.types);unitOffers.oIcons.email.setViewBox(oPaper)},drawPhoneIconsHotels:function(){$('div.unitoffers.hotellist div.hotels div.hotel span.phone span').each(function(i,oElement){if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement,$(oElement).width(),$(oElement).height())}else{var oPaper=new Raphael(oElement,'100%','100%')}oPaper.add(unitOffers.oIcons.phone.types);unitOffers.oIcons.phone.setViewBox(oPaper)})},drawEMailIconsHotels:function(){$('div.unitoffers.hotellist div.hotels div.hotel span.email span').each(function(i,oElement){if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement,$(oElement).width(),$(oElement).height())}else{var oPaper=new Raphael(oElement,'100%','100%')}oPaper.add(unitOffers.oIcons.email.types);unitOffers.oIcons.email.setViewBox(oPaper)})},drawCloseIcon:function(oElement){oElement=$('#'+oElement);if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}oPaper.add(unitOffers.oIcons.close.types);unitOffers.oIcons.close.setViewBox(oPaper)},drawNextPrevIcon:function(oElement,sIcon){var oElement=$('#'+oElement);if(oElement.length){oElement.html('');if(sIcon=='prev'){if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}oPaper.add(unitOffers.oIcons.calendarprev.types);unitOffers.oIcons.calendarprev.setViewBox(oPaper)}else{if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}oPaper.add(unitOffers.oIcons.calendarnext.types);unitOffers.oIcons.calendarnext.setViewBox(oPaper)}}},drawOpneCloseIcon:function(oElement,sStatus){var oElement=$(oElement);if(oElement.length){oElement.html('');if(sStatus=='open'){if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}oPaper.add(unitOffers.oIcons.openbooking.types);unitOffers.oIcons.openbooking.setViewBox(oPaper)}else{if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}oPaper.add(unitOffers.oIcons.closebooking.types);unitOffers.oIcons.closebooking.setViewBox(oPaper)}}},scrollTo:function(sElement){var oElement=$('#'+sElement);if(oElement!=undefined){var lOffset=this.setOffset(oElement);if(!$.isNumeric(lOffset)){lOffset=0}$('html, body').animate({scrollTop:oElement.offset().top+lOffset})}},scrollToOpenClose:function(sElement,sOpenClose){var oElement=$(sElement);if(oElement.hasClass('btnclose')){this.oCalender.openClose(oElement)}this.scrollTo(sElement)},addCssClass:function(aElements,sCssClass){if(!aElements instanceof Array){aElements=Array(aElements)}$.each(aElements,function(i,oElement){$(oElement).addClass(sCssClass)})},removeCssClass:function(aElements,sCssClass){if(!aElements instanceof Array){aElements=Array(aElements)}$.each(aElements,function(i,oElement){$(oElement).removeClass(sCssClass)})},setSelectedHotels:function(){var sHotelIDs="";$('div.hotels div.hotel form div.checkboxfield input').each(function(i,e){if($(e).prop("checked")){if(sHotelIDs!=''){sHotelIDs=sHotelIDs+','};sHotelIDs=sHotelIDs+$(e).val()}});$('#sHotelIDs').val(sHotelIDs)},setHoverClass:function(oElement){if(oElement==undefined){return}var oElementTextbox;if(typeof(Prototype)=='undefined'){oElementTextbox=$(oElement).children("div.textbox")}else{oElementTextbox=oElement.down('div.textbox')}if(oElementTextbox==undefined){return}$(oElementTextbox).addClass('hover')},removeHoverClass:function(oElement){if(oElement==undefined){return}var oElementTextbox;if(typeof(Prototype)=='undefined'){oElementTextbox=$(oElement).children("div.textbox")}else{oElementTextbox=oElement.down('div.textbox')}if(oElementTextbox==undefined){return}$(oElementTextbox).removeClass('hover')},checkAndSetDetailLink:function(){if($('.unitoffers.list[data-unit-elementlinked=true]').length){$('.unitoffers.list [data-unit-detaillink]:not([data-unit-detaillink=""])').each(function(lIndex,oElement){oElement=$(oElement);oElement.addClass('hover');oElement.click(function(){window.location.href=oElement.attr('data-unit-detaillink')})})}}};onScrMngrLoaded(function(){$(document).ready(function(){unitOffers.init()})});var unitRooms={setOffset:function(){},oIcons:{panoramaview:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,68.013641,68.013641,true)},types:[{type:'path',path:'m 46.658143,34.514715 c 0,-1.82 -0.06,-4.381 -2.301,-4.381 -2.16,0 -2.28,2.561 -2.28,4.381 0,1.82 0.12,4.401 2.28,4.401 2.241,-10e-4 2.301,-2.581 2.301,-4.401 z',fill:'#FFFFFF',stroke:'none'},{type:'path',path:'M 40.828321,0.69832102 C 22.430321,-3.069679 4.466321,8.787321 0.69832102,27.185321 -3.069679,45.583321 8.787321,63.54732 27.185321,67.31532 c 18.398,3.768 36.362,-8.089 40.13,-26.486999 3.768,-18.398 -8.089,-36.362 -26.487,-40.12999998 z m 17.368,44.01199998 c -0.042,0.141 -4.453,14.081999 -21.138,15.541999 -2.892,0.253 -5.547,0.059 -7.961,-0.436 -9.032,-1.85 -14.667,-7.883 -16.688,-10.411999 l -0.347,3.749999 c -0.051,0.55 -0.538,0.955 -1.087,0.904 -0.038,-0.004 -0.075,-0.009 -0.11,-0.017 -0.493,-0.101 -0.841,-0.559 -0.794,-1.071 l 0.621,-6.721999 c 0.025,-0.269 0.157,-0.515 0.366,-0.685 0.209,-0.17 0.478,-0.248 0.745,-0.216 l 6.441,0.747 c 0.55,0.053 0.942,0.561 0.878,1.108 -0.063,0.549 -0.56,0.942 -1.108,0.878 l -4.509,-0.523 c 1.522,2.072 9.531,11.912999 23.379,10.701999 15.304,-1.339 19.239,-13.608999 19.399,-14.129999 0.162,-0.527 0.717,-0.826 1.248,-0.664 0.527,0.161 0.825,0.718 0.665,1.245 z m -39.399,-9.363 c -0.3,0 -0.6,0.02 -0.9,0.04 v -2.361 c 0.3,-0.02 0.6,0.04 0.9,0.02 1,0 2.26,-0.26 2.26,-1.46 0,-0.9 -0.9,-1.4 -2,-1.4 -1.38,0 -2.18,0.72 -2.16,1.98 h -3.181 c 0.08,-3.121 2.341,-4.741 5.321,-4.741 2.42,0 5.201,1.02 5.201,3.861 0,1.22 -0.66,2.5 -1.94,2.721 v 0.04 c 1.601,0.42 2.38,1.56 2.38,3.201 0,3.161 -2.88,4.481 -5.641,4.481 -3.261,0 -5.901,-1.661 -5.701,-5.241 h 3.181 c -0.04,1.66 0.78,2.48 2.5,2.48 1.16,0 2.261,-0.5 2.261,-1.72 -10e-4,-1.541 -1.121,-1.901 -2.481,-1.901 z m 10.659,-1.881 c 0.7,-1.161 1.94,-1.48 3.26,-1.48 2.561,0 4.521,2.061 4.521,4.601 0,3.321 -2.541,5.141 -5.581,5.141 -4.121,0 -5.561,-3.501 -5.561,-7.062 0,-3.901 1.88,-7.242 6.101,-7.242 2.48,0 4.421,1.26 4.861,3.801 h -3.181 c -0.12,-0.56 -0.38,-0.88 -0.7,-1.08 -0.32,-0.18 -0.68,-0.22 -0.98,-0.22 -1.96,0 -2.7,1.96 -2.78,3.541 h 0.04 z m 9.239,1.101 c 0,-3.721 1.5,-7.142 5.461,-7.142 4.081,0 5.681,3.421 5.681,7.142 0,3.721 -1.6,7.162 -5.681,7.162 -3.96,-10e-4 -5.461,-3.442 -5.461,-7.162 z m 12.66,-3.941 c 0,-1.76 1.44,-3.201 3.201,-3.201 1.761,0 3.201,1.44 3.201,3.201 0,1.761 -1.44,3.201 -3.201,3.201 -1.761,0 -3.201,-1.441 -3.201,-3.201 z m 6.474,-8.051 c -0.025,0.268 -0.157,0.515 -0.366,0.685 -0.209,0.17 -0.478,0.248 -0.745,0.216 l -6.441,-0.747 c -0.55,-0.053 -0.942,-0.561 -0.878,-1.108 0.063,-0.549 0.56,-0.942 1.108,-0.878 l 4.509,0.523 c -1.522,-2.072 -9.531,-11.913 -23.379,-10.702 -15.304,1.339 -19.239,13.609 -19.399,14.13 -0.162,0.527 -0.717,0.826 -1.248,0.664 -0.527,-0.161 -0.825,-0.718 -0.666,-1.246 0.042,-0.141 4.454,-14.082 21.139,-15.542 2.892,-0.253 5.547,-0.059 7.961,0.436 9.032,1.85 14.667,7.883 16.688,10.412 l 0.346,-3.75 c 0.051,-0.55 0.538,-0.955 1.088,-0.904 0.038,0.004 0.075,0.009 0.11,0.017 0.493,0.101 0.841,0.559 0.794,1.071 l -0.621,6.723 z',fill:'#FFFFFF',stroke:'none'},{type:'path',path:'m 56.156321,30.626321 c 0,-0.98 -0.62,-1.78 -1.6,-1.78 -0.98,0 -1.601,0.8 -1.601,1.78 0,0.98 0.62,1.78 1.601,1.78 0.98,0 1.6,-0.8 1.6,-1.78 z',fill:'#FFFFFF',stroke:'none'},{type:'path',path:'m 31.696321,38.78875 c 1.42,0 2.36,-1 2.36,-2.141 0,-1.3 -0.84,-2.34 -2.38,-2.34 -1.28,0 -2.18,1.04 -2.18,2.32 0,1.201 0.88,2.161 2.2,2.161 z',fill:'#FFFFFF',stroke:'none'}]},roommap:{setViewBox:function(oPaper){oPaper.setViewBox(5,5,55,55,true)},types:[{type:'path',path:'M 12.5 33 C 12.5 22 21.5 13 32.5 13 C 43.5 13 52.5 22 52.5 33 C 52.5 44 43.5 53 32.5 53 C 21.5 53 12.5 44 12.5 33Z M 5 32.5 C 5 47.7 17.3 60 32.5 60 C 47.7 60 60 47.7 60 32.5 C 60 17.3 47.7 5 32.5 5 C 17.3 5 5 17.3 5 32.5Z',fill:'#FFFFFF',stroke:'none'},{type:'path',path:'M 42.5 38 L 40.5 38 L 40.5 27 L 43.9 27 C 45.2 27 46 27.1 46.4 27.2 C 47 27.4 47.5 27.8 47.9 28.3 C 48.3 28.9 48.5 29.6 48.5 30.5 C 48.5 31.2 48.4 31.7 48.1 32.2 C 47.9 32.7 47.6 33 47.2 33.3 C 46.9 33.6 46.5 33.8 46.1 33.8 C 45.6 34 44.9 34 43.9 34 L 42.5 34 L 42.5 38Z M 35.4 27 L 38.9 38 L 36.5 38 L 36 35 L 32 35 L 31.6 38 L 29.3 38 L 32.5 27 L 35.4 27Z M 18.5 38 L 16.5 38 L 16.5 27 L 19.4 27 L 22 34.5 L 24.6 27 L 27.5 27 L 27.5 38 L 25.5 38 L 25.5 29.3 L 22.8 38 L 21.2 38 L 18.5 29.3 L 18.5 38Z M 13.5 33 C 13.5 43.5 22 52 32.5 52 C 43 52 51.5 43.5 51.5 33 C 51.5 22.5 43 14 32.5 14 C 22 14 13.5 22.5 13.5 33Z M 43.6 29 L 42.5 29 L 42.5 32 L 43.7 32 C 44.6 32 45.2 32 45.5 31.8 C 45.8 31.7 46.1 31.6 46.2 31.3 C 46.4 31.1 46.5 30.8 46.5 30.5 C 46.5 30.1 46.4 29.8 46.1 29.5 C 45.9 29.3 45.6 29.1 45.2 29.1 C 45 29 44.4 29 43.6 29Z M 32.8 33 L 35.3 33 L 34 29 L 32.8 33Z',fill:'#FFFFFF',stroke:'none'}]},addToHolidayPlanner:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,17,17,true)},types:[{type:'path',path:'M 1 8.5 C 1 4.3578 4.3579 1 8.5 1 C 12.6421 1 16 4.3578 16 8.5 C 16 12.6422 12.6421 16 8.5 16 C 4.3579 16 1 12.6422 1 8.5 Z',fill:'#353535',stroke:'none',opacity:0.502},{type:'path',path:'M 2 8.5 C 2 4.9102 4.9102 2 8.5 2 C 12.0898 2 15 4.9102 15 8.5 C 15 12.0898 12.0898 15 8.5 15 C 4.9102 15 2 12.0898 2 8.5 Z',fill:'#353535',stroke:'#FFFFFF'},{type:'rect',x:8,y:6,width:1,height:5,fill:'#FFFFFF',stroke:'none'},{type:'rect',x:6,y:8,width:5,height:1,fill:'#FFFFFF',stroke:'none'}]},addedToHolidayPlanner:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,17,17,true)},types:[{type:'path',path:'M 1 8.5 C 1 4.3578 4.3579 1 8.5 1 C 12.6421 1 16 4.3578 16 8.5 C 16 12.6422 12.6421 16 8.5 16 C 4.3579 16 1 12.6422 1 8.5 Z',fill:'#353535',stroke:'none',opacity:0.502},{type:'path',path:'M 2 8.5 C 2 4.9102 4.9102 2 8.5 2 C 12.0898 2 15 4.9102 15 8.5 C 15 12.0898 12.0898 15 8.5 15 C 4.9102 15 2 12.0898 2 8.5 Z',fill:'#353535',stroke:'#FFFFFF'},{type:'path',path:'M 6.2868 7.8485 L 8.1688 9.5703 L 10.8517 6.0465 L 11.6126 6.7273 L 8.1288 10.9719 L 5.6061 8.5693 L 6.2868 7.8485 Z',fill:'#FFFFFF',stroke:'#FFFFFF'}]}},init:function(){this.checkAndSetDetailLink();if($('.unitrooms .offerbox a.moreoffers')&&$('.unitrooms .offerbox div.element').length<2){$('.unitrooms .offerbox a.moreoffers').hide()}},drawIcon:function(oElement,sKey,oParam){oElement=$(oElement);if(oElement.size()==0||this.oIcons[sKey]==undefined){return}oParam=$.extend({attr:undefined},oParam||{});oElement.html('');if(Raphael.vml||Raphael.canvas){var oIcon=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oIcon=new Raphael(oElement[0],'100%','100%')}this.oIcons[sKey].setViewBox(oIcon);var oIconSet=oIcon.add(this.oIcons[sKey].types);if(oParam.attr!=undefined){oIconSet.attr(oParam.attr)}return{'oIcon':oIcon,'oIconSet':oIconSet}},postToPage:function(sFormID,sUrl,oPost){var oForm=$('#'+sFormID);oForm.get(0).setAttribute('action',sUrl);if(typeof(oPost)=='object'){$.each(oPost,function(key,value){$('#'+sFormID+' [name='+key+']').val(value)})}oForm[0].submit()},openClose:function(oThis,sId){if($('#'+sId).hasClass('closed')){$('#'+sId).removeClass('closed');$(oThis).removeClass('btnclose');$(oThis).addClass('btnopen');this.drawOpneCloseIcon(oThis.down('div.icon'),'open')}else{$('#'+sId).addClass('closed');$(oThis).removeClass('btnopen');$(oThis).addClass('btnclose');this.drawOpneCloseIcon(oThis.down('div.icon'),'close')}},galleryList:{p:{},init:function(lRoomID,sCssPath){if(this.p[lRoomID]==undefined){this.p[lRoomID]={}}if(this.p[lRoomID].bInit){return}this.p[lRoomID].sCssPath=sCssPath;this.p[lRoomID].lElementWidth=0;this.p[lRoomID].lScrollWidth=0;this.p[lRoomID].bUseCreateStyle=false;this.p[lRoomID].lCount=$(this.p[lRoomID].sCssPath).children('div.element').size();if(document.createStyleSheet){this.p[lRoomID].bUseCreateStyle=true;this.p[lRoomID].oStyle=document.createStyleSheet()}else{this.p[lRoomID].oStyle=$('<style></style>',{'type':'text/css'});$(document.body).insert(this.p[lRoomID].oStyle)}this.p[lRoomID].oNextBtn=$('unitroomsscrollbtnnext'+lRoomID);this.p[lRoomID].oPrevBtn=$('unitroomsscrollbtnprev'+lRoomID);this.p[lRoomID].bInit=true},set:function(lRoomID,lVisible){this.p[lRoomID].lVisible=lVisible;this.setStyles(lRoomID);$(this.p[lRoomID].sCssPath).css("margin-left","0px");this.p[lRoomID].oNextBtn.show();this.p[lRoomID].oPrevBtn.show();this.p[lRoomID].oGallery=new clsMultiScrollGallery(this.p[lRoomID].sCssPath,100/this.p[lRoomID].lVisible,this.p[lRoomID].lCount-this.p[lRoomID].lVisible+1,{sUnit:'%',oNextBtn:this.p[lRoomID].oNextBtn,oPrevBtn:this.p[lRoomID].oPrevBtn});if(this.p[lRoomID].lCount<=this.p[lRoomID].lVisible){this.p[lRoomID].oNextBtn.hide();this.p[lRoomID].oPrevBtn.hide()}},setAll:function(lVisible){Object.keys(this.p).each(function(sKey){this.set(this.p[sKey],lVisible)}.bind(this))},setStyles:function(lRoomID){var sCss='';var lElementWidth=(100/this.p[lRoomID].lCount)+0.0001; var lScrollWidth=(100/this.p[lRoomID].lVisible)*this.p[lRoomID].lCount;if(this.p[lRoomID].bUseCreateStyle){this.p[lRoomID].oStyle.addRule(this.p[lRoomID].sCssPath,'width: '+lScrollWidth+'%;');this.p[lRoomID].oStyle.addRule(this.p[lRoomID].sCssPath+' div.element','width: '+lElementWidth+'%;')}else{sCss+=this.p[lRoomID].sCssPath+' { width: '+lScrollWidth+'%; }';sCss+=this.p[lRoomID].sCssPath+' div.element { width: '+lElementWidth+'%; }';this.p[lRoomID].oStyle.update(sCss)}},goTo:function(lRoomID,lIndex){this.p[lRoomID].oGallery.goToElement(lIndex)},prev:function(lRoomID){this.p[lRoomID].oGallery.prev()},next:function(lRoomID){this.p[lRoomID].oGallery.next()}},gallery:{oGallery:undefined,bInit:false,oNextBtn:undefined,oPrevBtn:undefined,init:function(sCssPath,options){if(this.bInit){return}this.options=$.extend({sOpenCloseElement:'',onInit:function(){},bDrawIcons:false},options||{});this.sCssPath=sCssPath;this.lElementWidth=0;this.lScrollWidth=0;this.bUseCreateStyle=false;this.aScroll=$(this.sCssPath);this.aElements=$('div.element',this.aScroll[0]);this.lCount=this.aElements.length;if(document.createStyleSheet){this.bUseCreateStyle=true;this.oStyle=document.createStyleSheet()}else{this.oStyle=document.createElement('style');this.oStyle.setAttribute('type','text/css');$('body').append(this.oStyle)}this.oMarginElement=document.createElement('div');this.oMarginElement.setAttribute('class','elementmargin');this.aScroll.first().append(this.oMarginElement);if(this.options.sOpenCloseElement!=''){this.oOpenCloseElement=$(this.options.sOpenCloseElement)}this.oNextBtn=$('#unitroomsnext');this.oPrevBtn=$('#unitroomsprev');if(this.options.bDrawIcons){this.drawScrollButtons()}$(this.aElements).each(function(lNumber,oElement){if($(oElement).find('div.offer').attr('data-url')!=undefined){$(oElement).find('div.offer').click(function(){location.href=$(this).attr('data-url')})}});this.bInit=true},set:function(lVisible){this.bClose=false;if(this.oOpenCloseElement!=undefined){if(this.oOpenCloseElement.hasClass('closed')){this.bClose=true;this.oOpenCloseElement.removeClass('closed')}}this.lVisible=lVisible;this.lMarginRight=$(this.oMarginElement).css('margin-right').replace('px','');this.lScrollMarginRight=this.lMarginRight/this.aScroll.first().width()*100;this.setStyles();if(this.oGallery!=undefined){this.oGallery.resetTransition()}$(this.sCssPath).css('margin-left','0px');this.oNextBtn.show();this.oPrevBtn.show();this.oGallery=new clsMultiScrollGallery(this.sCssPath,(100+this.lScrollMarginRight)/this.lVisible,this.lCount,{lInterval:this.lVisible,sUnit:'%',oNextBtn:this.oNextBtn,oPrevBtn:this.oPrevBtn,bUseTransition:true});if(this.lCount<=this.lVisible){this.oNextBtn.hide();this.oPrevBtn.hide()}if(this.bClose){this.oOpenCloseElement.addClass('closed')}},openClose:function(oThis,sId){$('#'+sId).toggleClass('closed')},scrollTo:function(sBtn,sId){var oElement=$('#'+sBtn);var lOffset=unitRooms.setOffset(oElement);if(!$.isNumeric(lOffset)){lOffset=0}if(oElement.hasClass('btnclose')){this.openClose(oElement,sId)}$('html, body').animate({scrollTop:oElement.offset().top+parseInt(lOffset,10)})},setStyles:function(){var sCss='';this.lElementWidth=100/this.lCount;this.lScrollWidth=(100+this.lScrollMarginRight)/this.lVisible*this.lCount;if(this.bUseCreateStyle){this.oStyle.addRule(this.sCssPath,'width: '+this.lScrollWidth+'%;');this.oStyle.addRule(this.sCssPath+' div.element','width: '+this.lElementWidth+'%;')}else{sCss+=this.sCssPath+' { width: '+this.lScrollWidth+'%; }';sCss+=this.sCssPath+' div.element { width: '+this.lElementWidth+'%; }';$(this.oStyle).html(sCss)}},drawScrollButtons:function(){if(unitRooms.oIcons.prev!=undefined){this.oPrevBtn.html('');if(Raphael.vml||Raphael.canvas){var oPrevPapter=new Raphael(this.oPrevBtn[0],this.oPrevBtn.width(),this.oPrevBtn.height())}else{var oPrevPapter=new Raphael(this.oPrevBtn[0],'100%','100%')}oPrevPapter.add(unitRooms.oIcons.prev.types);unitRooms.oIcons.prev.setViewBox(oPrevPapter)}if(unitRooms.oIcons.next!=undefined){this.oNextBtn.html('');if(Raphael.vml||Raphael.canvas){var oNextPapter=new Raphael(this.oNextBtn[0],this.oNextBtn.width(),this.oNextBtn.height())}else{var oNextPapter=new Raphael(this.oNextBtn[0],'100%','100%')}oNextPapter.add(unitRooms.oIcons.next.types);unitRooms.oIcons.next.setViewBox(oNextPapter)}}},drawPanoramaIcon:function(oElement){oElement=$('#'+oElement);if(oElement.size()>0){oElement.html('');if(Raphael.vml||Raphael.canvas){var oPapter=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPapter=new Raphael(oElement[0],'100%','100%')}oPapter.add(this.oIcons.panoramaview.types);this.oIcons.panoramaview.setViewBox(oPapter)}},drawRoomMapIcon:function(oElement){oElement=$('#'+oElement);if(oElement.size()>0){oElement.html('');if(Raphael.vml||Raphael.canvas){var oPapter=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPapter=new Raphael(oElement[0],'100%','100%')}oPapter.add(this.oIcons.roommap.types);this.oIcons.roommap.setViewBox(oPapter)}},drawLabelIcons:function(sLabel,sElement){if(this.oIcons[sLabel]){var oElement=$(sElement);if(oElement.size()>0){oElement.html('');if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement[0],oElement.width(),oElement.height())}else{var oPaper=new Raphael(oElement[0],'100%','100%')}oPaper.add(this.oIcons[sLabel].types);this.oIcons[sLabel].setViewBox(oPaper)}}},addLabelIcons:function(sLabel,sElement){if(this.oIcons[sLabel]){var oElement=$('#'+sElement);if(oElement.length>0){var oLabelIconContainer=document.createElement('div');oLabelIconContainer.setAttribute('id',sElement+'icon');oLabelIconContainer.setAttribute('class','labelicon');$(oLabelIconContainer).insertAfter(oElement);oLabelIconContainer.html('');if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oLabelIconContainer,$(oLabelIconContainer).width(),$(oLabelIconContainer).height())}else{var oPaper=new Raphael(oLabelIconContainer,'100%','100%')}oPaper.add(this.oIcons[sLabel].types);this.oIcons[sLabel].setViewBox(oPaper)}}},filter:{count:0,sRoomListCssSelector:'div.unitrooms.list',oLoading:undefined,hideallRooms:function(){$('div.unitrooms.list div.room').each(function(i,oElement){$(oElement).hide();unitRooms.filter.count=0})},showallRooms:function(){$('div.unitrooms.list div.room').each(function(i,oElement){$(oElement).show();unitRooms.filter.count++})},showRoomsBySelector:function(sSelektor,aRequiredClassNames){this.oLoading=$('#unitroomsfilterloading');this.oLoading.show();var bShow;if(aRequiredClassNames.length>0){$(sSelektor).each(function(j,oElement){bShow=false;for(var i=0;i<aRequiredClassNames.length;i++){if($(oElement).hasClass(aRequiredClassNames[i])){bShow=true}else{bShow=false;break}}if(bShow){$(oElement).show();unitRooms.filter.count++}})}else{$(sSelektor).each(function(i,oElement){$(oElement).show();unitRooms.filter.count++})}window.setTimeout(function(){unitRooms.filter.oLoading.hide()},300)},filterRooms:function(sFormName,oThis){if($('#norooms').length>0){$('#norooms').hide()}if($('#labelbox').length>0){var i=0;var aCheckedLabelClasses=Array();var aRequiredClassNames=Array();unitRooms.filter.hideallRooms();if($('#personbox').length>0){if($('#'+sFormName+'Personen')){if($('#'+sFormName+'Personen').val()!=''){aRequiredClassNames.push($('#'+sFormName+'Personen').val())}}}if($('#qmbox').length>0){if($('#'+sFormName+'QM')){if($('#'+sFormName+'QM').val()!=''){aRequiredClassNames.push($('#'+sFormName+'QM').val())}}}if($(oThis).attr('name')=='roomlabel'&&$(oThis).prop('checked')){$('div.labelbox input').each(function(i,oElement){if($(oElement).prop('checked')&&$F(oElement)!='on'){$(oElement).prop('checked',false);eval(sFormName).generateIcons({'sFormName':sFormName})}});unitRooms.filter.showRoomsBySelector(this.sRoomListCssSelector+' div.room',aRequiredClassNames)}else{$('#'+sFormName+'roomlabel').prop('checked',false);eval(sFormName).generateIcons({'sFormName':sFormName});$('div.labelbox input').each(function(j,oElement){if($(oElement).prop('checked')&&$F(oElement)!='on'){aCheckedLabelClasses[i]=$F(oElement);i++}});if(aCheckedLabelClasses.length>0){for(var i=0;i<aCheckedLabelClasses.length;i++){unitRooms.filter.showRoomsBySelector(this.sRoomListCssSelector+' div.'+aCheckedLabelClasses[i],aRequiredClassNames)}}else{$('#'+sFormName+'roomlabel').prop('checked',true);eval(sFormName).generateIcons({'sFormName':sFormName});unitRooms.filter.showRoomsBySelector(this.sRoomListCssSelector+' div.room',aRequiredClassNames)}}}if(unitRooms.filter.count==0){if($('#norooms')){$('#norooms').show()}}}},scrollTo:function(sElement,sOpenId){var oElement=$('#'+sElement);if(oElement.size()>0){if(sOpenId!=undefined){if($('#'+sOpenId).hasClass('closed')){this.openClose(oElement,sOpenId)}}var lOffset=this.setOffset(oElement);if(!$.isNumeric(lOffset)){lOffset=0}$('html, body').animate({scrollTop:oElement.offset().top+lOffset})}},pricebox:{init:function(options){this.options=$.extend({sPageKey:'DetailPrice',sUnitKey:'UnitRooms',sSharedKey:'',sAjaxUrl:'',lHotelID:'',lRoomID:''},options||{});this.oTable=$('#unitroomspricebox').find('div.table');RespHelper.one('resize:change',function(){unitRooms.pricebox.resetTypeFilter()},{lMaxWidth:770});RespHelper.one('resize:change',function(){unitRooms.pricebox.resetFilterResponsive();if($('#UnitRoomsPriceForm').find('div.selecttype select').length>0){unitRooms.pricebox.changeSelect($('#UnitRoomsPriceForm').find('div.selecttype select'))}},{lMinWidth:771})},changeSelect:function(oElement){this.options[$(oElement).attr('name')]=$(oElement).val();this.loadAjax()},loadAjax:function(oTable){if(oTable==undefined){oTable=this.oTable}oTable.addClass('loading');if(oTable.closest('.pricebox').find('input[name="sSeasonKey"]').length){this.options['sSeasonKey']=oTable.closest('.pricebox').find('input[name="sSeasonKey"]').val()}var ua=window.navigator.userAgent;var msie=ua.indexOf('MSIE ');var sAjaxCont=oTable;$.ajax(msie>0?encodeURI(this.options.sAjaxUrl):this.options.sAjaxUrl,{data:this.options,type:'POST',success:function(data){$(sAjaxCont).html(data);$(sAjaxCont).removeClass('loading');if(RespHelper.isValidRange(0,770)){unitRooms.pricebox.filterResponsive()}}})},resetTypeFilter:function(){var oElement=$('div.unitrooms.detail div.pricebox div.selecttype');if(!oElement.length){oElement=$('#UnitRoomsPriceForm').find('div.selecttype')}if(oElement.length>0){$(oElement).each($.proxy(function(i,o){if($(o).find('select').val()!='null'){this.options['sTypeSelect']='null';unitRooms.pricebox.loadAjax($(o).closest('div.pricebox').find('div.table'))}else{unitRooms.pricebox.filterResponsive()}},this))}else{unitRooms.pricebox.filterResponsive()}},filterResponsive:function(oElement){if($(oElement).length>0){var oElement=$(oElement).parents('div.selectresponsive')}else{var oElement=$('div.unitrooms.detail div.pricebox div.selectresponsive');if(!oElement.length){oElement=$('#UnitRoomsPriceForm').find('div.selectresponsive')}}if(oElement.length>0){$(oElement).each(function(){var sClass='cell'+$(this).find('select').val();$(this).parents('div.pricebox').find('.cell:not(.cell1)').each(function(i,o){if($(o).hasClass(sClass)){$(o).show();$(o).css('float','left')}else{$(o).hide();$(o).css('float','right')}})})}},resetFilterResponsive:function(){var oElement=$('div.unitrooms.detail div.pricebox div.selectresponsive');if(!oElement.length){oElement=$('#UnitRoomsPriceForm').find('div.selectresponsive')}if(oElement.length>0){$(oElement).each(function(){$('.cell:not(.cell1)',oElement.closest('div.pricebox')).each(function(lNumber,o){$(o).show()})})}}},checkAndSetDetailLink:function(){if($('.unitrooms .offerbox[data-unit-elementlinked=true]').length){$('.unitrooms .offerbox [data-unit-detaillink]:not([data-unit-detaillink=""])').each(function(lIndex,oElement){oElement=$(oElement);oElement.addClass('hover');oElement.click(function(){window.location.href=oElement.attr('data-unit-detaillink')})})}},showHideOffers:function(sTextShow,sTextHide){var oMoreOffersButton=$('.unitrooms .offerbox a.moreoffers');$('.unitrooms .offerbox div.element').each(function(lIndex,oElement){if(lIndex>1){$(oElement).slideToggle("slow",function(){if($(oElement).is(":visible")){oMoreOffersButton.html(sTextHide)}else{oMoreOffersButton.html(sTextShow)}})}})}};onScrMngrLoaded(function(){$(document).ready(function(){unitRooms.init()})});var oUnitHeader={lMenuOpenTimer:-1,lMenuCloseTimer:-1,oMenuBoxResizer:undefined,lTabletWidth:0,bEffectBinded:false,lTimeout:null,bScrollStart:false,sStatus:'default',lScrollStartTop:0,init:function(){this.oMainMenu=$('.unitsheader.mainmenu');this.lMenuOpenTimeout=parseInt(this.oMainMenu.attr('unit-header-mainmenu-opentimeout'),10);if(isNaN(this.lMenuOpenTimeout)){this.lMenuOpenTimeout=-1}this.lMenuCloseTimeout=parseInt(this.oMainMenu.attr('unit-header-mainmenu-closetimeout'),10);if(isNaN(this.lMenuCloseTimeout)){this.lMenuCloseTimeout=700}this.oMenuBoxResizer=new clsBoxResizer('.unitsheader.mainmenu ul.submenu > li');if($('div.unitsheader.header').attr('data-tabletWidth')>0){this.lTabletWidth=$('div.unitsheader.header').attr('data-tabletWidth')}this.checkFixMenuEffect()},openMenuBoxTimer:function(oThis){if($('> ul > li.open',this.oMainMenu).length==0&&this.lMenuOpenTimeout>0){this.lMenuOpenTimer=setTimeout($.proxy(function(){this.openMenuBox(oThis)},this),this.lMenuOpenTimeout)}else{this.openMenuBox(oThis)}},openMenuBox:function(oThis){oThis=$(oThis);$('> ul > li.open',this.oMainMenu).removeClass('open');oThis.parent().addClass('open');this.oMenuBoxResizer.resize()},closeMenuBoxTimer:function(){this.lMenuCloseTimer=setTimeout($.proxy(function(){this.closeMenuBox()},this),this.lMenuCloseTimeout)},closeMenuBox:function(){$('> ul > li.open',this.oMainMenu).removeClass('open');this.lMenuOpenTimer=-1},menuBoxStop:function(){clearTimeout(this.lMenuCloseTimer)},checkFixMenuEffect:function(){var sFixedHeaderEffect=$('div.unitsheader.header').attr('data-fixedheader-effect');if(sFixedHeaderEffect!=''){RespHelper.one('resize:change',function(){if(!this.bEffectBinded){this.bEffectBinded=true;switch(sFixedHeaderEffect){case'fixedOnScrollUp':this.bindFixedOnScrollUp();break;case"fixed":$(window).on('scroll.UnitHeaderScroll',function(){var scrollTop=$(window).scrollTop();oUnitHeader.fixMenu(scrollTop)});break}}}.bind(this),{lMinWidth:oUnitHeader.lTabletWidth});RespHelper.one('resize:change',function(){$('div.unitsheader.innerHeader').removeClass('fixed');$('div.unitsheader.innerHeader').removeClass('notfixed');$('div.unitsheader.innerHeader').removeClass('notfixedtop');$('div.unitsheader.header').css('height','');$(window).off('scroll.UnitHeaderScroll');this.bEffectBinded=false}.bind(this),{lMaxWidth:oUnitHeader.lTabletWidth})}},bindFixedOnScrollUp:function(){$(window).on('scroll.UnitHeaderScroll',function(){if(!this.bScrollStart){this.bScrollStart=true;this.lScrollStartTop=$(window).scrollTop()}if(isMobileDevice())clearTimeout(this.lTimeout);this.lTimeout=window.setTimeout(function(){var lScrollTop=$(window).scrollTop();if(lScrollTop<0){lScrollTop=0}if((this.sStatus!='default'&&lScrollTop>this.lScrollStartTop&&lScrollTop>0)||lScrollTop==0){if($('div.unitsheader.innerHeader').hasClass('fixed')){$('div.unitsheader.innerHeader').removeClass('notfixed');$('div.unitsheader.innerHeader').removeClass('fixed');$('div.unitsheader.innerHeader').removeClass('notfixedtop')}this.sStatus='default'}else if(lScrollTop==this.lScrollStartTop&&lScrollTop>0){}else if(this.sStatus!='fixed'&&lScrollTop<=this.lScrollStartTop&&lScrollTop>0){this.fixMenu(lScrollTop);this.sStatus='fixed'}this.bScrollStart=false}.bind(this),250)}.bind(this))},fixMenu:function(lScrollTop){if(lScrollTop>$('div.unitsheader.header').height()){if(this.sStatus!='fixed'){$('div.unitsheader.header').css('height',$('div.unitsheader.innerHeader').outerHeight()+'px')}$('div.unitsheader.innerHeader').addClass('fixed');$('div.unitsheader.innerHeader').removeClass('notfixed');$('div.unitsheader.innerHeader').removeClass('notfixedtop')}else{if(this.sStatus!='fixed'){$('div.unitsheader.header').css('height','')}$('div.unitsheader.innerHeader').removeClass('fixed');$('div.unitsheader.innerHeader').addClass('notfixedtop')}}};onScrMngrLoaded(function(){$(document).ready(function(){oUnitHeader.init()})});var oUnitCookies={lCookieExpires:365,init:function(){if(GetCookie('bCookieBarClosed')!='true'){if($('section.unitcookieonpage').attr('data-cookieexpires')>0){this.lCookieExpires=$('section.unitcookieonpage').attr('data-cookieexpires').toString()}$(window).click($.proxy(function(oEvent){if(!$.contains($('unitcookieonpageBar')[0],oEvent.target)){this.closeBarAndSetCookie()}},this))}},closeBarAndSetCookie:function(){$('unitcookieonpageBar').hide();SetCookie('bCookieBarClosed','true',this.lCookieExpires)}};onScrMngrLoaded(function(){$(document).ready(function(){oUnitCookies.init()})});function setMobileFooter(){RespHelper.on('resize:change',function(){$$('footer.pagefooter div.footerBlock .innerFooter').each(function(){if($(this).is(":visible")){$(this).hide()}});$$('footer.pagefooter div.footerBlock.close .innerFooter').each(function(){if($(this).is(":visible")){$(this).hide()}});$('footer.pagefooter div.footerBlock span.headline').unbind();$('footer.pagefooter div.footerBlock span.headline').click(function(){var oInnerElement=$(this).next('div.innerFooter');if(oInnerElement.size()>0){if(oInnerElement.is(":visible")){oInnerElement.hide()}else{oInnerElement.show()}}})},{lMaxWidth:801});RespHelper.on('resize:change',function(){$$('footer.pagefooter div.footerBlock .innerFooter').each(function(){if(!$(this).is(":visible")){$(this).show()}})},{lMinWidth:801})}function positionSubmenu(){var oSubMenu=$('nav.unitsheader.submenu');oSubMenu.css('visibility','visible');var oContainer=$('[data-submenu="true"]').first().find('[data-submenu-container="true"]');if(!oContainer.length)return;if(!oSubMenu.length){oContainer.html('<span class="space">&nbsp;</span>')}else{oContainer.html(oSubMenu[0].outerHTML);oSubMenu.remove()}}function positionBreadcrumb(){var oBreadcrumb=$('[itemprop="breadcrumb"]');if(!oBreadcrumb.length)return;var oContainer=$('[data-breadcrumb="true"]').first().find('[data-breadcrumb-container="true"]');if(!oContainer.length)return;oContainer.html(oBreadcrumb[0].outerHTML);oBreadcrumb.remove()}function fixSubMenuOnScroll(){var oSubMenuContainer=$('[data-submenu="true"]');var oInnerSubMenuContainer=$('[data-submenu="true"]').first().find('[data-submenu-container="true"]');if(!oSubMenuContainer.length)return;if(!oInnerSubMenuContainer.length)return;$(window).on('scroll.UnitHeaderScroll',function(){if(oSubMenuContainer.length){if(oSubMenuContainer.offset().top-($(window).scrollTop()+$('div.unitsheader.innerHeader').outerHeight())>0){oInnerSubMenuContainer.removeClass('fixed')}else{oInnerSubMenuContainer.addClass('fixed')}}})}function renderDefaultIcons(sParent){sParent=sParent==undefined?'':sParent+' ';$(sParent+"*.icon1 ul li, "+sParent+"ul.icon1 li").each(function(){var oElement=$('> svg.icon-next bgicon',this);if(oElement.length){$(oElement).html('')}else{$(this).html('<svg class="icon icon-next bgicon"><use xlink:href="#icon-next"></use></svg>'+$(this).html());oElement=$('> svg.icon-next bgicon',this)}})}function initObjectFit(sType,oContext){oContext=oContext||document;var oObjects=$('[data-object-fit="'+sType+'"]',$(oContext));oObjects.each(function(i,o){var oPicture,oVideo,oImg;var oElement=$(o);var bUseCssObjectFit=oElement.attr('data-object-fit-css');if(bUseCssObjectFit=='true'){bUseCssObjectFit=true}else if(bUseCssObjectFit=='false'){bUseCssObjectFit=false}else{bUseCssObjectFit=undefined}if(oElement.is('img'))oElement=oElement.parent();if(oElement.data('bInitObjectFit')==true){oElement.objectFit(sType,bUseCssObjectFit)}else{oElement.data('bInitObjectFit',true);if(oElement.is('picture')||oElement.find('picture').length||oElement.is('video')||oElement.find('video').length){if(oElement.is('picture')){oPicture=oElement}else if(oElement.is('video')){oVideo=oElement}else{oPicture=oElement.find('picture');oVideo=oElement.find('video')}oPicture.each(function(){oImg=$(this).find('img');if(oImg.length){$('<img />').load(function(){oElement.objectFit(sType,bUseCssObjectFit)}).attr('src',oImg.attr('src'))}else{$(this).on('image:load',function(){$(this).closest('[data-object-fit="'+sType+'"]').objectFit(sType,bUseCssObjectFit)})}});oVideo.each(function(){if($(this).attr('bVideoConverted')=='true'){oElement.objectFit(sType,bUseCssObjectFit)}else{$(this).one('video:converted',$.proxy(function(){$(this).closest('[data-object-fit="'+sType+'"]').objectFit(sType,bUseCssObjectFit)},this))}})}else if(oElement.find('img').length){oElement.find('img').each(function(){$('<img />').load(function(){oElement.objectFit(sType,bUseCssObjectFit)}).attr('src',$(this).find('img').attr('src'))})}}})}function initAdaptHeight(oContext){oContext=oContext||document;$('[data-adapt-height="true"]',$(oContext)).each(function(i,o){var oElement=$(this);if(oElement.data('bInitAdaptHeight')!==true){oElement.data('bInitAdaptHeight',true);var lMinWidth=parseInt(oElement.attr('data-adapt-height-min-width'),10)||0;var lMinHeight=parseInt(oElement.attr('data-adapt-height-min-height'),10)||0;RespHelper.on('resize:change',$.proxy(function(){var oElem=$(this);var sSelector=oElement.attr('data-adapt-height-selector');var lHeight=$(window).height();var lLastHeight=oElem.data('lLastAdaptedHeight')||-1;var lMultiplier=parseInt(oElement.attr('data-adapt-height-multiplier'),10)||1;lHeight=lHeight*lMultiplier;if(sSelector!=undefined&&sSelector!=''){$(sSelector).each(function(){lHeight-=$(this).outerHeight()})}if(lHeight>$(window).width()&&lMinHeight>0){lHeight=lMinHeight}if(lLastHeight==lHeight&&oElement.hasClass('adapted-height'))return;oElem.data('lLastAdaptedHeight',lHeight);oElem.css('height',lHeight);oElem.addClass('adapted-height');initObjectFit('cover',oElem.parent())},this),{lMinWidth:lMinWidth+1,lMinHeight:lMinHeight+1,sOperator:'and'});if(lMinWidth>0||lMinHeight>0){RespHelper.on('resize:change',$.proxy(function(){var oElem=$(this);if(!oElem.hasClass('adapted-height'))return;oElem.css('height','');oElem.removeClass('adapted-height');initObjectFit('cover',oElem.parent())},this),{lMaxWidth:lMinWidth,lMaxHeight:lMinHeight})}}});RespHelper.fire('resize:change')}$(function(){positionBreadcrumb();positionSubmenu();fixSubMenuOnScroll();initAdaptHeight();initObjectFit('cover');var resizeTimer;$(window).resize(function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){$('[data-object-fit="cover"]').objectFit('cover')},200)});renderDefaultIcons();var aFeatures=['transition','transform'];var sPrefix;for(var i=0;i<aFeatures.length;i++){sPrefix='no';if(detectCSSFeature(aFeatures[i]))sPrefix='with';$(document.body).addClass(sPrefix+aFeatures[i])}});function detectCSSFeature(sFeatureName){var bFeature=false;var aDomPrefixes='Webkit Moz ms O'.split(' ');var oBody=document.body;var sFeatureNameCapital;sFeatureName=sFeatureName.toLowerCase();if(oBody.style[sFeatureName]!==undefined){bFeature=true}if(bFeature===false){sFeatureNameCapital=sFeatureName.charAt(0).toUpperCase()+sFeatureName.substr(1);for(var i=0;i<aDomPrefixes.length;i++){if(oBody.style[aDomPrefixes[i]+sFeatureNameCapital]!==undefined){bFeature=true;break}}}return bFeature}function setColorLuminance(sColor,fLum){if(sColor.substr(0,3)=='rgb'){eval('sColor = rgb2hex'+sColor.substr(3))}sColor=String(sColor).replace(/[^0-9a-f]/gi,'');if(sColor.length<6){sColor=sColor[0]+sColor[0]+sColor[1]+sColor[1]+sColor[2]+sColor[2]}fLum=fLum||0;var sRgb="#",c,i;for(i=0;i<3;i++){c=parseInt(sColor.substr(i*2,2),16);c=Math.round(Math.min(Math.max(0,c+(c*fLum)),255)).toString(16);sRgb+=("00"+c).substr(c.length)}return sRgb}function rgb2hex(r,g,b){return'#'+r.toString(16)+g.toString(16)+b.toString(16)}var oUnitThemestageT1={init:function(){this.insertSvgIcon()},insertSvgIcon:function(){var oInnerIntro=$('section.unitthemestage article.element div.text');if(oInnerIntro.size()>0){oInnerIntro.prepend('<div class="flower"></div>');var oElement=$('section.unitthemestage article.element div.text div.flower');oElement.prepend('<div class="innerflower"></div>');var oInnerElement=$('section.unitthemestage article.element div.text div.flower div.innerflower');oInnerElement.createSvg('icon-flower')}}};onScrMngrLoaded(function(){$(document).ready(function(){oUnitThemestageT1.init()})});var oOverlayT1={init:function(bLocal){if(bLocal=='true'||GetCookie('Page_bOverlayHidden')!='true'){setTimeout(function(){$('[data-module="OverlayT1"]').fadeIn();$('[data-module="OverlayT1"]').on('click',function(e){if($(e.target).closest('.elements').length)return;if($(e.target).closest('.textbox').length)return;$('[data-module="OverlayT1"]').fadeOut();$('body').removeClass('overflow')});$('[data-module="OverlayT1"] .closer').on('click',function(e){$('[data-module="OverlayT1"]').fadeOut();$('body').removeClass('overflow')});$('body').addClass('overflow');var oOwl=$('[data-module="OverlayT1"] .elements');initCarousel(oOwl,oOwl.attr('data-carousel-config'));oOverlayT1.checkSize();$(window).on('resize',function(){oOverlayT1.checkSize()})},2500);SetCookie('Page_bOverlayHidden','true',1)}},checkSize:function(){if($('[data-module="OverlayT1"] .overlay-container').height()<$('[data-module="OverlayT1"] .overlay-content').height()){$('[data-module="OverlayT1"] .overlay-container').css({'display':'block'})}else{$('[data-module="OverlayT1"] .overlay-container').css({'display':'flex'})}}};var oUnitIntroT1Web={init:function(){this.insertSvgIcon()},insertSvgIcon:function(){var oInnerIntro=$('section.unitintro article.innerIntro');if(oInnerIntro.size()>0){oInnerIntro.prepend('<div class="flower"></div>');var oElement=$('section.unitintro article.innerIntro div.flower');oElement.prepend('<div class="innerflower"></div>');var oInnerElement=$('section.unitintro article.innerIntro div.flower div.innerflower');oInnerElement.createSvg('icon-flower')}}};onScrMngrLoaded(function(){$(document).ready(function(){oUnitIntroT1Web.init()})});var oBycodeT8Web={init:function(){this.insertSvgIcon()},insertSvgIcon:function(){var oInnerIntro=$('div.unitbycodedetail.layout8.cssversion1 div.innerIntroBox');if(oInnerIntro.size()>0){oInnerIntro.prepend('<div class="flower"></div>');var oElement=$('div.unitbycodedetail.layout8.cssversion1 div.innerIntroBox div.flower');oElement.prepend('<div class="innerflower"></div>');var oInnerElement=$('div.unitbycodedetail.layout8.cssversion1 div.innerIntroBox div.flower div.innerflower');oInnerElement.createSvg('icon-flower')}}};onScrMngrLoaded(function(){$(document).ready(function(){oBycodeT8Web.init()})});