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 unitInlineApi={setOffset:function(){},oLastOpenClose:{},sCancellationInsuranceOverlayText:'',sCalendarStyleVersion:'V1',lVersion:1,lIconsVersion:1,aRoomPreviewParams:'',aRoomResizer:[],lVisibleRooms:1,lMaxVisibleRooms:3,bRoomCloseEventBinded:false,lLastOpenedRoomIndex:undefined,sFormId:'',init:function(){if($('div.unitinlineapi').attr('data-iconsversion')>0){this.lIconsVersion=$('div.unitinlineapi').attr('data-iconsversion')}this.lMaxVisibleRooms=$('div.unitinlineapi.request div.requestdata div.roomtypebox').length},oIcons:{close:{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'}]},calendarnext:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,13,21,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M2,0 l-2,2 9,8.5 -9,8.5 2,2 11,-10.5z',fill:oElement.css('color'),stroke:'none'}]}},calendarprev:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,13,21,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M11,0 l2,2 -9,8.5 9,8.5 -2,2 -11,-10.5z',fill:oElement.css('color'),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'}]},tab1:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,15,46,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M-100,0 l100,0 15,23 -15,23 -100,0z',fill:oElement.up('div.withicon').css('backgroundColor'),stroke:'none'}]}},tab2:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,15,46,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M-100,0 l100,0 15,23 -15,23 -100,0z',fill:oElement.up('div.withicon').css('backgroundColor'),stroke:'none'}]}},agb:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,40,40,true)},types:[{type:'path',path:'M20,1c10.477,0,19,8.523,19,19s-8.523,19-19,19S1,30.477,1,20S9.523,1,20,1 M20,0C8.95,0,0,8.95,0,20 s8.95,20,20,20s20-8.95,20-20S31.05,0,20,0L20,0z',fill:'#707070',stroke:'none'},{type:'path',path:'M21.5,29v-3h-3v3H21.5z M20.8,24l0.7-8.89V11h-3v4.11L19.22,24 H20.8z',fill:'#707070',stroke:'none'}]},openadditional:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,21,13,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M2,0 l-2,2 10.5,11 10.5,-11 -2,-2 -8.5,9z',fill:oElement.css('color'),stroke:'none'}]}},child:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,99.999,103.132,true)},types:function(oElement){oElement=$(oElement);var sColor=oElement.css('color');if(sColor==''){sColor='#888888'}return[{type:'path',path:'M99.998,79.736c0,12.953-10.5,23.449-23.453,23.449c-12.955,0-23.455-10.496-23.455-23.449 c0-12.955,10.5-23.457,23.455-23.457C89.498,56.28,99.998,66.781,99.998,79.736z',fill:sColor,stroke:'none'},{type:'path',path:'M45.102,79.736c0-7.541,2.658-14.453,7.082-19.871c-3.955-4.656-9.775-7.68-16.352-7.68H21.553 C9.666,52.186,0,61.859,0,73.742v17.467l0.045,0.277l1.199,0.375c11.344,3.537,21.195,4.721,29.307,4.721 c7.732,0,13.846-1.08,18.176-2.211C46.422,89.998,45.102,85.023,45.102,79.736z',fill:sColor,stroke:'none'},{type:'circle',cx:28.693,cy:34.211,r:16.832,fill:sColor,stroke:'none'},{type:'rect',x:61.129,y:77.314,width:30.83,height:4.834,fill:'#ffffff',stroke:'none'},{type:'rect',x:74.127,y:64.316,width:4.834,height:30.83,fill:'#ffffff',stroke:'none'},{type:'path',path:'M63.682,34.812h-9.279c-0.109,4.561-1.395,8.825-3.582,12.505c2.951,1.699,5.637,3.902,7.936,6.551 c5.061-3.498,11.172-5.576,17.789-5.576c2.539,0,5,0.332,7.369,0.902C80.943,40.844,73.037,34.812,63.682,34.812z',fill:sColor,stroke:'none'},{type:'path',path:'M56.539,0c-7.396,0-13.598,4.807-15.854,11.439c7.952,4.203,13.428,12.447,13.719,21.982  c0.709,0.092,1.4,0.24,2.135,0.24c9.295,0,16.83-7.535,16.83-16.83C73.369,7.535,65.834,0,56.539,0z',fill:sColor,stroke:'none'}]}},room:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,100,73.627,true)},types:function(oElement){oElement=$(oElement);var sColor=oElement.css('color');if(sColor==''){sColor='#888888'}return[{type:'rect',x:6.985,y:62.464,width:6.368,height:6.367,fill:sColor,stroke:'none'},{type:'path',path:'M76.87,30.634c-0.791-5.017-6.085-8.913-12.573-8.913c-6.482,0-11.777,3.896-12.569,8.913H76.87z',fill:sColor,stroke:'none'},{type:'path',path:'M46.314,30.634c-0.792-5.017-6.085-8.913-12.574-8.913c-6.487,0-11.779,3.896-12.57,8.913H46.314z',fill:sColor,stroke:'none'},{type:'path',path:'M13.314,30.634V15.936h14.284l0.545-1.899C29.382,9.715,37.529,5.24,49.02,5.24s19.64,4.475,20.879,8.797 l0.546,1.899h14.281v14.698h5.239V10.696H74.182C70.923,4.31,61.002,0,49.02,0C37.039,0,27.121,4.31,23.857,10.696H8.077v19.938 H13.314z',fill:sColor,stroke:'none'},{type:'path',path:'M100,55.258c0,10.146-8.229,18.369-18.372,18.369c-10.146,0-18.365-8.224-18.365-18.369 c0-10.143,8.22-18.367,18.365-18.367C91.77,36.891,100,45.116,100,55.258z',fill:sColor,stroke:'none'},{type:'path',path:'M57.005,55.258c0-6.978,7.008-16.932,7.008-16.932c0.317-0.45,0.126-0.818-0.424-0.818H1 c-0.55,0-1,0.45-1,1v25.246c0,0.55,0.45,1,1,1h56.909c0.55,0,0.866-0.43,0.703-0.955C58.612,63.799,57.005,58.625,57.005,55.258z',fill:sColor,stroke:'none'},{type:'rect',x:69.556,y:53.366,width:24.146,height:3.785,fill:'#FFFFFF',stroke:'none'},{type:'rect',x:79.735,y:43.186,width:3.785,height:24.144,fill:'#FFFFFF',stroke:'none'}]}},roomremove:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,100,73.627,true)},types:function(oElement){oElement=$(oElement);var sColor=oElement.css('color');if(sColor==''){sColor='#888888'}return[{type:'rect',x:6.985,y:62.464,width:6.368,height:6.367,fill:sColor,stroke:'none'},{type:'path',path:'M76.87,30.634c-0.791-5.017-6.085-8.913-12.573-8.913c-6.482,0-11.777,3.896-12.569,8.913H76.87z',fill:sColor,stroke:'none'},{type:'path',path:'M46.314,30.634c-0.792-5.017-6.085-8.913-12.574-8.913c-6.487,0-11.779,3.896-12.57,8.913H46.314z',fill:sColor,stroke:'none'},{type:'path',path:'M13.314,30.634V15.936h14.284l0.545-1.899C29.382,9.715,37.529,5.24,49.02,5.24s19.64,4.475,20.879,8.797 l0.546,1.899h14.281v14.698h5.239V10.696H74.182C70.923,4.31,61.002,0,49.02,0C37.039,0,27.121,4.31,23.857,10.696H8.077v19.938 H13.314z',fill:sColor,stroke:'none'},{type:'path',path:'M100,55.258c0,10.146-8.229,18.369-18.372,18.369c-10.146,0-18.365-8.224-18.365-18.369 c0-10.143,8.22-18.367,18.365-18.367C91.77,36.891,100,45.116,100,55.258z',fill:sColor,stroke:'none'},{type:'path',path:'M57.005,55.258c0-6.978,7.008-16.932,7.008-16.932c0.317-0.45,0.126-0.818-0.424-0.818H1 c-0.55,0-1,0.45-1,1v25.246c0,0.55,0.45,1,1,1h56.909c0.55,0,0.866-0.43,0.703-0.955C58.612,63.799,57.005,58.625,57.005,55.258z',fill:sColor,stroke:'none'},{type:'rect',x:69.556,y:53.366,width:24.146,height:3.785,fill:'#FFFFFF',stroke:'none'}]}},completeYourData:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,99.998,109.684,true)},types:function(oElement){oElement=$(oElement);var sColor=oElement.css('color');if(sColor==''){sColor='#888888'}return[{type:'path',path:'M99.998,81.354c0,14.603-11.833,26.441-26.437,26.441c-14.603,0-26.443-11.839-26.443-26.441 c0-14.598,11.841-26.441,26.443-26.441C88.165,54.913,99.998,66.756,99.998,81.354z',fill:sColor,stroke:'none'},{type:'path',path:'M25.67,37.928c1.107,9.185,9.01,18.706,16.184,18.706c8.244,0,16.078-10.007,17.301-18.706 c0.462-0.331,1.223-1.129,1.503-2.941c0,0,1.763-6.3-0.569-5.625c0.814-2.431,3.506-11.89-1.719-17.77c0,0-2.438-3.334-8.387-5.102 c-0.204-0.177-0.417-0.349-0.658-0.518c0,0,0.13,0.15,0.322,0.415c-0.334-0.096-0.695-0.179-1.048-0.265 c-0.324-0.334-0.688-0.688-1.098-1.056c0,0,0.363,0.368,0.796,0.987c-0.165-0.037-0.31-0.078-0.474-0.105 c-0.27-0.41-0.599-0.837-1.019-1.267c0,0,0.18,0.331,0.405,0.856c-1.098-0.808-3.3-2.668-3.3-4.75c0,0-1.367,0.646-2.175,1.817 C42.048,1.64,42.581,0.739,43.445,0c0,0-0.903,0.464-1.743,1.471c-0.65,0.368-2.128,1.379-2.629,3.179l-0.469-0.24 c0.231-0.509,0.555-1.049,1-1.591c0,0-0.648,0.572-1.208,1.492L37.44,3.83c0.287-0.528,0.658-1.081,1.166-1.616 c0,0-0.516,0.393-1.056,1.059c0.149-0.619,0.128-1.326-1.8,0.783c0,0-8.681,3.764-11.19,11.561c0,0-1.478,3.523,0.479,13.876 c-2.782-1.313-0.884,5.49-0.884,5.49C24.44,36.799,25.201,37.594,25.67,37.928z M25.499,34.244L25.499,34.244L25.499,34.244z M41.444,1.817c-0.422,0.587-0.785,1.316-0.962,2.214l-0.305-0.115C40.416,3.16,40.813,2.438,41.444,1.817z',fill:sColor,stroke:'none'},{type:'path',path:'M38.113,81.354c0-5.617,1.343-10.91,3.67-15.629c-7.564,0.034-12.459-12.622-12.459-12.622 c-1.009,3.854-15.926,8.382-15.926,8.382c-4.35,1.674-6.196,4.186-6.196,4.186C0.751,75.231,0,96.506,0,96.506 c0.086,4.856,2.172,5.357,2.172,5.357c14.834,6.623,38.081,7.797,38.081,7.797c4.063,0.084,7.92-0.068,11.554-0.363 C43.487,102.816,38.113,92.721,38.113,81.354z',fill:sColor,stroke:'none'},{type:'rect',x:56.179,y:78.628,width:34.759,height:5.45,fill:'#FFFFFF',stroke:'none'},{type:'rect',x:70.836,y:63.977,width:5.445,height:34.754,fill:'#FFFFFF',stroke:'none'}]}},closeadditional:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,21,13,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M2,13 l-2,-2 10.5,-11 10.5,11 -2,2 -8.5,-9z',fill:oElement.css('color'),stroke:'none'}]}},edit:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,25,24.75,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M18.1,0.203l-0.35,0.35c0.12-0.12,0.25-0.22,0.4-0.3L18.1,0.203z M23.1,5.203l-0.05-0.05c-0.08,0.15-0.18,0.28-0.3,0.4L23.1,5.203z M7.7,20.603l15.05-15.05c0.12-0.12,0.22-0.25,0.3-0.4 c0.57-1.03,0.16-2.64-1.05-3.85s-2.82-1.62-3.85-1.05c-0.15,0.08-0.28,0.18-0.4,0.3L2.7,15.603l-0.7,0.7l0.42,0.42L1,22.303 l5.58-1.42L7,21.303L7.7,20.603z M18.5,4.803l-12.6,12.6l-0.83-0.83l12.69-12.7C17.96,4.193,18.21,4.513,18.5,4.803z',fill:oElement.css('color'),stroke:'none'},{type:'path',path:'M24.5,24.803h-24c-0.276,0-0.5-0.224-0.5-0.5s0.224-0.5,0.5-0.5h24c0.276,0,0.5,0.224,0.5,0.5 S24.776,24.803,24.5,24.803z',fill:oElement.css('color'),stroke:'none'}]}},oCalendarIcon:{opener:{standard:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,21,19,true)},types:[{type:'rect',x:1,y:5,width:19,height:13,fill:'#ffffff',stroke:'none'},{type:'path',path:'M0,2 l1,0 0,-1 2,0 0,2 3,0 0,-2 9,0 0,2 3,0 0,-2 2,0 0,1 1,0 0,16 -1,0 0,1 -19,0 0,-1 -1,0z M1,5 l0,12 1,0 0,1 17,0 0,-1 1,0 0,-12z M4,0 l1,0 0,2 -1,0z M16,0 l1,0 0,2 -1,0zM6,7l 1,0 0,1 -1,0zM8,7l 1,0 0,1 -1,0zM10,7l 1,0 0,1 -1,0zM12,7l 1,0 0,1 -1,0zM14,7l 1,0 0,1 -1,0zM16,7l 1,0 0,1 -1,0zM4,9l 1,0 0,1 -1,0zM6,9l 1,0 0,1 -1,0zM8,9l 1,0 0,1 -1,0zM10,9l 1,0 0,1 -1,0zM12,9l 1,0 0,1 -1,0zM14,9l 1,0 0,1 -1,0zM16,9l 1,0 0,1 -1,0zM4,11l 1,0 0,1 -1,0zM6,11l 1,0 0,1 -1,0zM8,11l 1,0 0,1 -1,0zM10,11l 1,0 0,1 -1,0zM12,11l 1,0 0,1 -1,0zM14,11l 1,0 0,1 -1,0zM16,11l 1,0 0,1 -1,0zM4,13l 1,0 0,1 -1,0zM6,13l 1,0 0,1 -1,0zM8,13l 1,0 0,1 -1,0zM10,13l 1,0 0,1 -1,0zM12,13l 1,0 0,1 -1,0zM14,13l 1,0 0,1 -1,0zM16,13l 1,0 0,1 -1,0zM4,15l 1,0 0,1 -1,0zM6,15l 1,0 0,1 -1,0zM8,15l 1,0 0,1 -1,0zM10,15l 1,0 0,1 -1,0zM12,15l 1,0 0,1 -1,0zM14,15l 1,0 0,1 -1,0zM16,15l 1,0 0,1 -1,0z',fill:'#888888',stroke:'none'}]}}},request:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,32,45,true)},types:function(oElement){if($('#requesticoncolor').length){oElement=$('#requesticoncolor')}else{oElement=$(oElement)}return[{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:oElement.css('color'),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:oElement.css('color'),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:oElement.css('color'),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:oElement.css('color'),stroke:'none'}]}},phone:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,39,45,true)},types:function(oElement){if($('#requesticoncolor').length){oElement=$('#requesticoncolor')}else{oElement=$(oElement)}return[{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:oElement.css('color'),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:oElement.css('color'),stroke:'none'}]}},email:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,51,38,true)},types:function(oElement){if($('#requesticoncolor').length){oElement=$('#requesticoncolor')}else{oElement=$(oElement)}return[{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:oElement.css('color'),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:oElement.css('color'),stroke:'none'}]}}},setIcons:function(oIcons){$.extend(this.oIcons,oIcons||{})},search:{oCalender:undefined,oLoading:undefined,oError:undefined,oResult:undefined,bAjaxLoadFinish:true,bScrollDown:true,sFormName:'BpDataForm',setOffset:function(oElement){return unitInlineApi.setOffset(oElement)},init:function(){this.setFormDefault();this.setChildren();$('#'+this.sFormName+' select').each(function(lIndex,oElement){this.resetSelectLayout(oElement)}.bind(this))},setFormDefault:function(){$('#'+this.sFormName+'sPageKey').val('booking-result');if($('#'+this.sFormName+'bPreisKalkulator')){$('#'+this.sFormName+'bPreisKalkulator').val('true');$('#'+this.sFormName+'bShowOnlyFreeRooms').val('false')}},setArrivalDeparture:function(arrivalday,departureday){this.bAjaxLoadFinish=false;$('#'+this.sFormName+'dtFrom').val(arrivalday);$('#'+this.sFormName+'dtTo').val(departureday);this.submitForm()},submitForm:function(){this.oLoading.show();eval(this.sFormName+'.checkFormular('+this.sFormName+'Data);')},onAjaxUpdate:function(){unitInlineApi.search.bAjaxLoadFinish=true;if(typeof $.fn.convertPictureToImg!='undefined')$('picture',unitInlineApi.search.oResult).convertPictureToImg();unitInlineApi.search.oLoading.hide();unitInlineApi.search.oResult.show();if(typeof myLightbox!='undefined'){myLightbox.updateImageList()}var lOffset=unitInlineApi.search.setOffset(unitInlineApi.search.oResult);if(!Object.isNumber(lOffset)){lOffset=0}if(unitInlineApi.search.bScrollDown){Effect.ScrollTo(unitInlineApi.search.oResult,{offset:lOffset})}else{unitInlineApi.search.bScrollDown=true}},getPersonCount:function(){var personCount=$F('#'+this.sFormName+'lAdultsCount');for(var i=1;i<=parseInt($F('#'+this.sFormName+'lChildrenCount'));i++){if($('#'+this.sFormName+'lAgeChild'+i)){if($F('#'+this.sFormName+'lAgeChild'+i)!=''){personCount++}}}return personCount},resetCalendar:function(bScrollTo){if(this.oCalender!=undefined){this.oCalender.resetdays();if(bScrollTo==true){var lOffset=unitInlineApi.search.setOffset($('#unitinlineapicalenderbox'));if(!Object.isNumber(lOffset)){lOffset=0}Effect.ScrollTo($('#unitinlineapicalenderbox'),{offset:lOffset})}}},setChildren:function(lChildrenCount){if(lChildrenCount==undefined){lChildrenCount=parseInt($F('#'+this.sFormName+'lChildrenCount'))}$('div.peaplebox div.agechild').each(function(lCount,oElement){oElement=$(oElement);var oSelect=oElement.down('select');if(lCount<lChildrenCount){this.setSelectValue(oSelect,oSelect[0].options[oSelect[0].selectedIndex].value);oElement.show()}else{this.setSelectValue(oSelect,'-1');oElement.hide()}}.bind(this));this.resetCalendar()},oMaxPeopleOptions:{},setPeopleOptions:function(oOptions){this.oMaxPeopleOptions=$.extend({oRooms:{},bChildrenRequired:false,lMaxChilds:'',sDicAdult:'',sDicAdults:'',sDicNoChild:'',sDicChild:'',sDicChildren:''},oOptions||{})},setMaxPeople:function(bChangeAdults){var oRoomSelect=$('#'+this.sFormName+'lRoomSelectBox');var oAdultSelect=$('#'+this.sFormName+'lAdultsCount');var oChildrenSelect=$('#'+this.sFormName+'lChildrenCount');if((!oRoomSelect.length&&(!Object.isNumber(this.oMaxPeopleOptions.lSelectedRoomID)))||!oAdultSelect.length||!oChildrenSelect.length){return}var lRoomID;if(oRoomSelect.length){lRoomID=$F(oRoomSelect)}else{lRoomID=this.oMaxPeopleOptions.lSelectedRoomID}var lAdultsCount=$F(oAdultSelect);var lMaxAdults=this.oMaxPeopleOptions.oRooms[lRoomID][0];var lMinAdults=this.oMaxPeopleOptions.oRooms[lRoomID][1];var lChildBeds=0;if(bChangeAdults){var sAdultOptions;if(lMinAdults<=1){sAdultOptions='<option value="1">1 '+this.oMaxPeopleOptions.sDicAdult+'</option>'}for(var i=2;i<=lMaxAdults;i++){sAdultOptions+='<option value="'+i+'">'+i+' '+this.oMaxPeopleOptions.sDicAdults+'</option>'}oAdultSelect.html(sAdultOptions);this.setSelectValue(oAdultSelect,lAdultsCount)}var lSelectedChild=$F(oChildrenSelect);lChildBeds=lMaxAdults-lAdultsCount;if(lChildBeds>this.oMaxPeopleOptions.lMaxChilds){lChildBeds=this.oMaxPeopleOptions.lMaxChilds};if(!this.oMaxPeopleOptions.bChildrenRequired){var sChildrenOptions='<option value=""> '+this.oMaxPeopleOptions.sDicNoChild+'</option>'}for(var i=1;i<=lChildBeds;i++){sChildrenOptions+='<option value="'+i+'">'+i+' '+(i==1?this.oMaxPeopleOptions.sDicChild:this.oMaxPeopleOptions.sDicChildren)+'</option>'}oChildrenSelect.html(sChildrenOptions);this.setSelectValue(oChildrenSelect,lSelectedChild)},setSelectValue:function(oElement,sValue){oElement=$(oElement);oElement.val(sValue);this.resetSelectLayout(oElement);oElement=oElement[0];oElement.onchange()},resetSelectLayout:function(oElement){oElement=$(oElement);var oTempElement=oElement[0];oElement.next('span.select').update(oTempElement.options[oTempElement.selectedIndex].innerHTML)},showOnlyFreeRooms:function(){this.oResult.hide();this.oResult.update();this.bScrollDown=false;$('#'+this.sFormName+'bShowOnlyFreeRooms').val('true');this.submitForm()},initCalender:function(oOptions){this.oLoading=$('#unitinlineapicalenderloading');this.oError=$('#unitinlineapicalendererror');this.oResult=$('#unitinlineapibookingresult');Event.observe(window,'load',function(){this.reloadCalender(oOptions)}.bind(this));if(document.loaded){this.reloadCalender(oOptions)}},reloadCalender:function(oOptions){this.setFormDefault();this.oCalender=new Arrivaldeparturecalendar(this.getCalendarConfig(oOptions));this.oCalender.init();if($F(this.sFormName+'dtFrom')!=''&&$F(this.sFormName+'dtTo')!=''){this.bScrollDown=false;this.submitForm();this.drawCalenderIcons()}},setCalenderOptions:function(oOptions){this.oOptions=Object.extend({priceconf:0,priceconf_nomin:0,priceconf_noarrdepdays:0,arrivalday:false,departureday:false,lRoomID:false,lVisibleMonths:2},oOptions)},getCalendarConfig:function(oOptions){oOptions=$.extend(Object.clone(this.oOptions),oOptions||{});var dtNow=new Date();var lMonth=dtNow.getMonth()+1;var sMonth=lMonth;if(lMonth<10){sMonth='0'+sMonth}return{'hotelids':oOptions.lHotelId,'serviceurl':oOptions.sServiceUrl,'calendardiv':'unitinlineapicalendercontent','monthbgclass':'bgbar','spanClass':'text','departurecalendardiv':false,'bResetDayInSpan':false,'startmonat':function(){return sMonth+'.'+dtNow.getFullYear()},'personen':this.getPersonCount.bind(this),'arrivalday':function(){if($F('#'+this.sFormName+'dtFrom')!=''){return $F('#'+this.sFormName+'dtFrom')}if(oOptions.arrivalday=='false'){return false}return oOptions.arrivalday}.bind(this)(),'departureday':function(){if($F('#'+this.sFormName+'dtTo')!=''){return $F('#'+this.sFormName+'dtTo')}if(oOptions.departureday=='false'){return false}return oOptions.departureday}.bind(this)(),'priceconf':oOptions.priceconf,'priceconf_nomin':oOptions.priceconf_nomin,'priceconf_noarrdepdays':oOptions.priceconf_nomin,'onresetdays':function(){this.oResult.hide();this.oResult.update();this.oOptions.arrivalday=false;this.oOptions.departureday=false;$('#'+this.sFormName+'dtFrom').val('');$('#'+this.sFormName+'dtTo').val('');$('#'+this.sFormName+'sMealCode').val('');if($('#'+this.sFormName+'bShowOnlyFreeRooms').length){$('#'+this.sFormName+'bShowOnlyFreeRooms').val('false')}}.bind(this),'onbeforeload':function(){this.oLoading.show()}.bind(this),'onafterload':function(){this.drawCalenderIcons();this.checkChildAge();if(this.bAjaxLoadFinish){this.oLoading.hide()}}.bind(this),'ondeparturedayselected':function(arrivalday,departureday){this.bScrollDown=true;this.setArrivalDeparture(arrivalday,departureday)}.bind(this),'zimmertypen_id':function(){var lRoomID=-1;if(Object.isNumber(oOptions.lRoomID)){lRoomID=oOptions.lRoomID}if($('#BpDataFormlRoomSelectBox').length){lRoomID=$('#BpDataFormlRoomSelectBox').val()}if(lRoomID>0){return lRoomID}else{return false}}(),'autosubmit':false,'wievielemonate':oOptions.lVisibleMonths}},drawCalenderIcons:function(){if(unitInlineApi.sCalendarStyleVersion=='V1'){$('#unitinlineapicalendercontent').find('table tr td').each(function(lIndex,oTd){oTd=$(oTd);if(!oTd.children('span.xicon').length&&(oTd.hasClass('offerday')||oTd.hasClass('arrivaldaynoclick')||(oTd.hasClass('nix')&&!oTd.hasClass('beforenow')))){var oSpan=$('<span class="icon xicon"></span>');oTd.append(oSpan);if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oSpan[0],oSpan.width(),oSpan.height())}else{var oPaper=new Raphael(oSpan[0],'100%','100%')}oPaper.add(unitInlineApi.oIcons.xcalendar.types);unitInlineApi.oIcons.xcalendar.setViewBox(oPaper)}if(!oTd.children('span.selecticon').length&&!oTd.hasClass('wrongmonth')){var oSpan=$('<span class="icon selecticon"></span>');oTd.append(oSpan);if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oSpan[0],oSpan.width(),oSpan.height())}else{var oPaper=new Raphael(oSpan[0],'100%','100%')}oPaper.add(unitInlineApi.oIcons.selectcalendar.types);unitInlineApi.oIcons.selectcalendar.setViewBox(oPaper)}})}$('#unitinlineapicalendercontent').find('table tr td a.resetdays').each(function(lIndex,oElement){$(oElement).update();if(unitInlineApi.lIconsVersion>1){$(oElement).createSvg('icon-cross-round-inv')}else{if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement,$(oElement).width(),$(oElement).height())}else{var oPaper=new Raphael(oElement,'100%','100%')}oPaper.add(unitInlineApi.oIcons.resetdays.types);unitInlineApi.oIcons.resetdays.setViewBox(oPaper)}})},checkChildAge:function(){this.oError.hide();for(var i=1;i<=parseInt($F('#'+this.sFormName+'lChildrenCount'));i++){if($('#'+this.sFormName+'lAgeChild'+i)){if(parseInt($F('#'+this.sFormName+'lAgeChild'+i),10)<=0){this.oError.show()}}}}},confirm:{oServiceForm:undefined,oServiceRowEntry:undefined,lBasicPrice:0,lTravelCancellationInsurancePrice:0,sServiceRowHtml:'',init:function(options){this.options=$.extend({lDecimalPlace:2,sDecimalSeparator:',',sThousandsSeparator:'.',sCurrencyHtmlCode:'&euro;'},options||{});this.oServiceForm=$('#BpServicesForm');this.oServiceRowEntry=$('#singlezusatzentry');this.sServiceRowHtml='<div class="servicerow"><div class="number element"></div><div class="name element"></div><div class="price element"></div><div class="clear">&nbsp;</div></div>';Event.observe(window,'load',function(){this.oServiceForm.find('input.service').each(function(index,name){$(name).observe('keyup',this.keyUp.bind(this))}.bind(this))}.bind(this))},formatNumber:function(num,dec,thou,pnt,curr1,curr2,n1,n2){var x=Math.round(num*Math.pow(10,dec));if(x>=0)n1=n2='';var y=(''+Math.abs(x)).split('');var z=y.length-dec;if(z<0)z--;for(var i=z;i<0;i++)y.unshift('0');y.splice(z,0,pnt);if(y[0]==pnt)y.unshift('0');while(z>3){z-=3;y.splice(z,0,thou)}var r=curr1+n1+y.join('')+n2+curr2;return r},keyUp:function(event){var oThisInput=$(event.target);var lTotalPrice=0;var lServicePrice=parseFloat(oThisInput.up('div.ukinnen').find('input.serviceprice')[0].value,10);var lServiceRowIndex=-1;var sServiceName=oThisInput.up('div.ukinnen').find('span.servicename')[0].innerHTML;var sThisValue=oThisInput.val();if(isNaN(parseInt(sThisValue,10))){sThisValue=''}else{if(sThisValue.length>2){sThisValue=sThisValue.substring(0,sThisValue.length-1)}sThisValue=Math.abs(parseInt(sThisValue,10))}oThisInput.value=sThisValue;this.setTotalPrice();this.oServiceRowEntry.find('div.servicerow').each(function(lIndex,oElement){if($(oElement).find('div.name')[0].innerHTML==sServiceName){lServiceRowIndex=lIndex}});if(sThisValue>0){if(lServiceRowIndex==-1){this.oServiceRowEntry.insert(this.sServiceRowHtml);this.oServiceRowEntry.find('div.number').last().update(sThisValue+'x');this.oServiceRowEntry.find('div.name').last().update(sServiceName);this.oServiceRowEntry.find('div.price').last().update(this.formatNumber(lServicePrice*sThisValue,this.options.lDecimalPlace,this.options.sThousandsSeparator,this.options.sDecimalSeparator,'',this.options.sCurrencyHtmlCode,'n1','n2'))}else{this.oServiceRowEntry.find('div.number').eq(lServiceRowIndex).update(sThisValue+'x');this.oServiceRowEntry.find('div.name').eq(lServiceRowIndex).update(sServiceName);this.oServiceRowEntry.find('div.price').eq(lServiceRowIndex).update(this.formatNumber(lServicePrice*sThisValue,this.options.lDecimalPlace,this.options.sThousandsSeparator,this.options.sDecimalSeparator,'',this.options.sCurrencyHtmlCode,'n1','n2'))}}else{if(lServiceRowIndex>-1){this.oServiceRowEntry.find('div.servicerow').eq(lServiceRowIndex).remove()}}if(this.oServiceRowEntry.find('div.servicerow').length>0){this.oServiceRowEntry.removeClass('closed')}else{this.oServiceRowEntry.addClass('closed')}},setServiceFields:function(sFormName){var oFormDiv;var oFormData=window[sFormName+'Data'];var aServices=[];var oAllServices=$('#'+sFormName+'aAllServices');oFormDiv=$(sFormName).children('div').first();$('form#BpServicesForm input.service').each(function(lIndex,oInput){var sName=oInput.name;oInput=$(oInput);var oHidden=$(sFormName+'sService_'+sName);if(oInput.val()>0){if(!oHidden.length){oHidden=$('<input />',{'type':'hidden','name':'sService_'+sName,'id':sFormName+'sService_'+sName,'value':''});oFormDiv.insert(oHidden)}oHidden.val(oInput.val());oFormData.FF['sService_'+sName]=oInput.val();aServices.push(sName)}else if(oHidden.length){oHidden.remove();delete oFormData.FF['sService_'+sName]}});if(aServices.length>0){if(!oAllServices.length){oAllServices=$('<input />',{'type':'hidden','name':'aAllServices','id':sFormName+'aAllServices','value':''});oFormDiv.insert(oAllServices)}oAllServices.val(aServices.join(','));oFormData.FF['aAllServices']=aServices.join(',')}else if(oAllServices.length){oAllServices.remove();delete oFormData.FF['aAllServices']}},setTravelCancellationInsurancePrice:function(oElement,lTravelCancellationInsurancePrice){oElement=$(oElement);if(oElement[0].checked){this.lTravelCancellationInsurancePrice=lTravelCancellationInsurancePrice}else{this.lTravelCancellationInsurancePrice=0}this.setTotalPrice()},setTotalPrice:function(){var aServiceInput=[];var aServicePriceInput=[];var lServicesPrice=0;if(this.oServiceForm){aServiceInput=this.oServiceForm.find('input.service');aServicePriceInput=this.oServiceForm.find('input.serviceprice');aServiceInput.each(function(lIndex,oElement){if(!isNaN(parseInt(oElement.value,10))){lServicesPrice+=parseInt(oElement.value,10)*parseFloat(aServicePriceInput.eq(lIndex).val(),10)}})}if($('#zusatzpreis').length){$('#zusatzpreis').html(this.formatNumber(lServicesPrice,this.options.lDecimalPlace,this.options.sThousandsSeparator,this.options.sDecimalSeparator,'',this.options.sCurrencyHtmlCode,'n1','n2'))}$('#totalprice').html(this.formatNumber(this.lBasicPrice+this.lTravelCancellationInsurancePrice+lServicesPrice,this.options.lDecimalPlace,this.options.sThousandsSeparator,this.options.sDecimalSeparator,'',this.options.sCurrencyHtmlCode,'n1','n2'))},aAllServices:[],aTotalPriceServiceElement:[],aTotalPriceElement:[],lServicesTotalPrice:0,init2:function(totalprice){this.totalprice=totalprice;this.oServiceList=undefined;this.oServiceListBase=undefined;Event.observe(document,'dom:loaded',function(){this.oServiceList=$('#singlezusatzentry');this.oServiceListBase=this.oServiceList.down('div.row').remove();this.aTotalPriceServiceElement.push($('#zusatzpreistop'));this.aTotalPriceServiceElement.push($('#zusatzpreis'));this.aTotalPriceElement.push($('#totalprice'));this.aTotalPriceElement.push($('#totalpricetop'))}.bind(this));this.service=function(base,id,price){this.base=base;this.id=id;this.price=price;this.oRows={};this.rowcount=0;this.totalPrice=0;this.name=$('servicename'+this.id).innerHTML;this.oBaseBox=$('service'+this.id);this.oRowBox=this.oBaseBox.down('div.databox');this.oTotalPriceBox=this.oBaseBox.down('div.totalpricebox');this.oTotalPriceBox.hide();this.oBtnAdd=this.oRowBox.down('a.add');this.oBtnAdd.observe('click',this.addRow.bind(this));var oRow=this.oRowBox.down('div.baserow');this.oBaseRow=oRow.clone(true);this.oBaseRow.down('a.add').remove();oRow.remove();this.oMessage=this.oBaseBox.down('textarea.message');this.oBaseBox.observe('unitInlineapi:updateTotalPrice',this.updateTotalPrice.bind(this));this.oBaseBox.observe('unitInlineapi:updateTotalPrice',this.base.updateTotalPrice.bind(this.base));this.row=function(base){this.base=base;this.price=0;this.element=this.base.oBaseRow.clone(true);this.oPriceCell=this.element.down('div.price');this.key=this.element.identify();this.element.down('div.controls').insert(this.base.oBtnAdd);this.element.down('a.delete').observe('click',this.remove.bind(this));this.base.oRowBox.insert(this.element);this.oCountCell=this.element.down('div.count');if(this.oCountCell!=undefined){this.oCountInput=this.oCountCell.down('input');new SpinnerControl(this.oCountInput,this.oCountCell.down('a.up'),this.oCountCell.down('a.down'),{interval:1,round:0,min:0,afterUpdate:function(){this.element.fire('unitInlineapi:updateRowPrice')}.bind(this)})};this.oDaysCell=this.element.down('div.days');if(this.oDaysCell!=undefined){this.oDaysInput=this.oDaysCell.down('input');new SpinnerControl(this.oDaysInput,this.oDaysCell.down('a.up'),this.oDaysCell.down('a.down'),{interval:1,round:0,min:0,afterUpdate:function(){this.element.fire('unitInlineapi:updateRowPrice')}.bind(this)})};this.oDateCell=this.element.down('div.date');if(this.oDateCell!=undefined){this.oDateInput=this.oDateCell.down('input');new Calendar(this.oDateInput.identify(),{bOnlyAfterToday:true,bCloseButton:true,bRepositionOnOpen:true,'sCalendarClass':'unitinlineapi default kalender','lEffectDuration':0,bSvgIcon:true,oSvgIcon:unitInlineApi.oIcons.oCalendarIcon,aDays:['Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag','Sonntag'],aMonths:['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],bVisableOnLoad:false});Event.observe(this.oDateInput,'input:change',function(){this.element.trigger('unitInlineapi:updateRowPrice')}.bind(this))};this.oPeopleCell=this.element.down('div.people');if(this.oPeopleCell!=undefined){this.oPeopleInput=this.oPeopleCell.down('input');new SpinnerControl(this.oPeopleInput,this.oPeopleCell.down('a.up'),this.oPeopleCell.down('a.down'),{interval:1,round:0,min:0,afterUpdate:function(){this.element.trigger('unitInlineapi:updateRowPrice')}.bind(this)})};this.element.observe('unitInlineapi:updateRowPrice',function(){this.price=this.base.price*this.oCountInput.getValue();if(this.oDaysInput!=undefined){this.price=this.price*this.oDaysInput.getValue()}if(this.oPeopleInput!=undefined){this.price=this.price*this.oPeopleInput.getValue()}this.oPriceCell.update(unitInlineApi.confirm.formatNumber(this.price,unitInlineApi.confirm.options.lDecimalPlace,unitInlineApi.confirm.options.sThousandsSeparator,unitInlineApi.confirm.options.sDecimalSeparator,'',unitInlineApi.confirm.options.sCurrencyHtmlCode,'n1','n2'));this.base.oBaseBox.trigger('unitInlineapi:updateTotalPrice')}.bind(this));this.base.rowcount++};this.row.prototype.getKey=function(){return this.key};this.row.prototype.getPrice=function(){return this.price};this.row.prototype.getJson=function(){var json=null;if(this.price>0){json={};if(this.oCountInput!=undefined){json.count=this.oCountInput.val()}if(this.oDaysInput!=undefined){json.days=this.oDaysInput.val()}if(this.oPeopleInput!=undefined){json.people=this.oPeopleInput.val()}}return json};this.row.prototype.remove=function(){this.base.rowcount--;if(this.base.rowcount<=0){this.base.addRow()}else if(this.element.down('a.add')){this.element.previous().down('div.controls').insert(this.base.oBtnAdd)}this.element.remove();delete(this.base.oRows[this.key]);this.base.oBaseBox.trigger('unitInlineapi:updateTotalPrice')};this.addRow()};this.service.prototype.updateTotalPrice=function(){this.totalPrice=0;$.each(Object.values(this.oRows),function(lIndex,oRow){this.totalPrice+=oRow.getPrice()}.bind(this));if(this.oListElement==undefined){this.oListElement=this.base.oServiceListBase.clone(true);this.oListElement.down('div.name').update(this.name);this.base.oServiceList.insert(this.oListElement)}if(this.totalPrice>0){this.oTotalPriceBox.show();var sPrice=unitInlineApi.confirm.formatNumber(this.totalPrice,unitInlineApi.confirm.options.lDecimalPlace,unitInlineApi.confirm.options.sThousandsSeparator,unitInlineApi.confirm.options.sDecimalSeparator,'',unitInlineApi.confirm.options.sCurrencyHtmlCode,'n1','n2');this.oTotalPriceBox.update(sPrice);this.oListElement.down('div.price').update(sPrice);this.oListElement.show()}else{this.oTotalPriceBox.hide();this.oTotalPriceBox.update();this.oListElement.hide()}};this.service.prototype.getTotalPrice=function(){return this.totalPrice};this.service.prototype.getJson=function(){var json=null;if(this.totalPrice>0){json={};json.message=this.oMessage.val();json.rows=[];$.each(Object.values(this.oRows),function(lIndex,oRow){var temp=oRow.getJson();if(temp!=null){json.rows.push(temp)}})}return json};this.service.prototype.addRow=function(){var oRow=new this.row(this);this.oRows[oRow.getKey()]=oRow}},addService:function(id,price){this.aAllServices.push(new this.service(this,id,price))},getTotalPrice:function(){return this.lServicesTotalPrice},updateTotalPrice:function(){this.lServicesTotalPrice=0;$.each(this.aAllServices,function(lIndex,oService){this.lServicesTotalPrice+=oService.getTotalPrice()}.bind(this));var sPrice=this.formatNumber(this.lServicesTotalPrice,this.options.lDecimalPlace,this.options.sThousandsSeparator,this.options.sDecimalSeparator,'',this.options.sCurrencyHtmlCode,'n1','n2');$.each(this.aTotalPriceServiceElement,function(lIndex,oElement){$(oElement).html(sPrice)});sPrice=this.formatNumber(this.totalprice+this.lServicesTotalPrice,this.options.lDecimalPlace,this.options.sThousandsSeparator,this.options.sDecimalSeparator,'',this.options.sCurrencyHtmlCode,'n1','n2');$.each(this.aTotalPriceElement,function(lIndex,oElement){$(oElement).html(sPrice)})},getServiceJson:function(){var json=null;if(this.lServicesTotalPrice>0){json={};$.each(this.aAllServices,function(lIndex,oService){var temp=oService.getJson();if(temp!=null){json[oService.id]=oService.getJson()}})}return json}},drawTabsIcon:function(){$('div.unitinlineapi.search div.tabs div.icon').each(function(lIndex,oElement){this.drawIcon(oElement,'tab1')}.bind(this));$('div.unitinlineapi.confirm div.tabs div.icon').each(function(lIndex,oElement){this.drawIcon(oElement,'tab2')}.bind(this))},postToPage:function(sPageKey,options){options=Object.extend({sFormId:'BpDataForm',sFormAction:'',oPost:{}},options||{});var oForm=$(options.sFormId);oForm=oForm[0];if(oForm==undefined){return}if(options.sFormAction!=''){$(oForm).attr('action',options.sFormAction)}$(oForm.sPageKey).val(sPageKey);for(var key in options.oPost){$(oForm[key]).val(options.oPost[key])}window.setTimeout(function(){oForm.submit()},500)},showChild:function(oThis,sFormName,sId){if(!$(sId).visible()){$(sId).show();$(oThis).hide()}},showHideElement:function(oThis,sFormName,sId){if(!$(sId).visible()){$(sId).show()}else{$(sId).hide()}},openCloseForm:function(oThis,sFormName,sId,options){var aTemp=[];if(Object.isArray(sId)){aTemp=sId}else{aTemp=$(sId)}aTemp.each(function(lIndex,oElement){oElement=$(oElement);if(!oElement.hasClass('closed')){if(unitInlineApi.lIconsVersion>1){var sRoomIcon=$('#roomicon');sRoomIcon.addClass('icon-add-room');sRoomIcon.removeClass('icon-remove-room');var sRoomIconUse=sRoomIcon.find('use');$(sRoomIconUse).attr('xlink:href','#icon-add-room')}oElement.find('input').each(function(lIndex,oInput){$(oInput).val('')});oElement.find('select').each(function(lIndex,oSelect){$(oSelect).val('');$(oSelect).next('span.select').update(oSelect.options[0].innerHTML)})}else{if(unitInlineApi.lIconsVersion>1){var sRoomIcon=$('#roomicon');sRoomIcon.addClass('icon-remove-room');sRoomIcon.removeClass('icon-add-room');var sRoomIconUse=sRoomIcon.find('use');$(sRoomIconUse).attr('xlink:href','#icon-remove-room')}}});if(Object.isArray(sId)){this.openCloseArray(oThis,sId)}else{this.openClose(oThis,sId,options)}eval(sFormName).generateIcons({'sFormName':sFormName})},openCloseArray:function(oThis,aElements){$(oThis).toggleClass('btnclose');$(oThis).toggleClass('btnopen');aElements.each(function(lIndex,oElement){$(oElement).toggleClass('closed')})},openClose:function(oThis,sId,options){options=$.extend({sGroupKey:'',onOpen:function(){}},options||{});if(this.oLastOpenClose[options.sGroupKey]!=undefined&&options.sGroupKey!=''){if(this.oLastOpenClose[options.sGroupKey].element!=$(sId)){this.oLastOpenClose[options.sGroupKey].element.addClass('closed');this.oLastOpenClose[sKey].btn.removeClass('btnopen');this.oLastOpenClose[sKey].btn.addClass('btnclose')}}if($(sId).hasClass('closed')){$(sId).removeClass('closed');$(oThis).removeClass('btnclose');$(oThis).addClass('btnopen');if(unitInlineApi.lIconsVersion==1){this.drawCloseAdditionalIcon($(oThis).down('span.openclose'))}else{var oSvg=$(oThis).down('svg.openclose');if(oSvg.size()>0){var oSvgUse=oSvg.find('use');oSvg.removeClass('icon-down');oSvg.addClass('icon-up');oSvgUse.attr("xlink:href","#icon-up")}}this.oLastOpenClose[options.sGroupKey]={element:$(sId),btn:$(oThis)};options.onOpen(oThis,$(sId))}else{$(sId).addClass('closed');$(oThis).removeClass('btnopen');$(oThis).addClass('btnclose');if(unitInlineApi.lIconsVersion==1){this.drawOpenAdditionalIcon($(oThis).down('span.openclose'))}else{var oSvg=$(oThis).down('svg.openclose');if(oSvg.size()>0){var oSvgUse=oSvg.find('use');oSvg.removeClass('icon-up');oSvg.addClass('icon-down');oSvgUse.attr("xlink:href","#icon-down")}}this.oLastOpenClose[options.sGroupKey]=undefined}},openCloseAdditionalLayer:function(sId){var oUnitInlineApiAdditionalOverlayDiv=$('unitinlinapiadditionaloverlay')[0];var oUnitInlineApiAdditionalOverlayLayerDiv=$('unitinlinapiadditionaloverlaylayer')[0];if(sId==''){if(oUnitInlineApiAdditionalOverlayLayerDiv){new Effect.Fade('unitinlinapiadditionaloverlaylayer',{afterFinish:function(){$('unitinlinapiadditionaloverlaylayer').update();if(oUnitInlineApiAdditionalOverlayDiv){new Effect.Fade('unitinlinapiadditionaloverlay',{duration:0.5})}},duration:0.5})}}else{if(oUnitInlineApiAdditionalOverlayDiv==undefined){$(document.body).insert({bottom:'<div class="unitinlinapiadditionaloverlay" id="unitinlinapiadditionaloverlay" style="display: none;"></div>'})}new Effect.Appear('unitinlinapiadditionaloverlay',{duration:0.5,afterFinish:function(){if(oUnitInlineApiAdditionalOverlayLayerDiv==undefined){$(document.body).insert({bottom:'<div class="unitinlineapiserviceoverlay confirm default" id="unitinlinapiadditionaloverlaylayer" style="display: none;"></div>'})}new Effect.Appear('unitinlinapiadditionaloverlaylayer',{});var oTempLayer=$(sId).clone(true);$('unitinlinapiadditionaloverlaylayer').update(oTempLayer);var lHeight=$('unitinlinapiadditionaloverlaylayer').getHeight();$('unitinlinapiadditionaloverlaylayer').setStyle({'margin-top':(0-lHeight/2)+'px'});if(unitInlineApi.lIconsVersion==1){unitInlineApi.drawCloseIcon($$('div.unitinlineapiserviceoverlay div.layer a.layerx')[0])}}});$('unitinlinapiadditionaloverlay').observe('click',function(){this.openCloseAdditionalLayer('')}.bind(this),'')}},toggleChildAgeBox:function(sSelectId,lBox){if($('#unitinlineapiChildrenAgeBox'+lBox).hasClass('open')){$('#unitinlineapiChildrenAgeBox'+lBox).toggleClass('open')}else{this.openCloseChildAgeBox(sSelectId,lBox)}},openCloseChildAgeBox:function(sSelectId,lBox){var oSelect=$('#'+sSelectId);var oAgeBox=$('#unitinlineapiChildrenAgeBox'+lBox);var oEditButton=$('unitinlineapiEditButton');oAgeBox.removeClass('open');$('div.row.select',oAgeBox).hide();if(oSelect.val()>0){oEditButton.show();for(var i=0;i<oSelect.val();i++){$('div.row.select',oAgeBox).eq(i).show()}oAgeBox.addClass('open')}else{oEditButton.hide()}},toggleRoomSelect:function(sFormName,lIndex){if(this.bLock)return;this.bLock=true;if($('#'+sFormName+'rooms'+lIndex).hasClass('open')){$('#'+sFormName+'rooms'+lIndex).removeClass('open');this.unbindRoomCloseEvent(sFormName,lIndex);this.lLastOpenedRoomIndex=undefined}else{$('#'+sFormName+'rooms'+lIndex).addClass('open');if(this.bRoomCloseEventBinded){this.unbindRoomCloseEvent(sFormName,this.lLastOpenedRoomIndex);this.lLastOpenedRoomIndex=undefined}this.bindRoomCloseEvent(sFormName,lIndex);var oResize=this.aRoomResizer[lIndex];if(oResize!=undefined){oResize.resize()}else{oResize=new clsBoxResizer('#'+sFormName+'rooms'+lIndex+' div.inside div.room',{bGrid:true,lMinWidth:620})}window[sFormName].loschen(window[sFormName+'Data'],$('#'+sFormName+'RoomSelectID'+lIndex))}window.setTimeout(function(){this.bLock=false}.bind(this),150)},bindRoomCloseEvent:function(sFormName,lIndex){if(!this.bRoomCloseEventBinded){this.bRoomCloseEventBinded=true;this.lLastOpenedRoomIndex=lIndex;$(window).on('click.RoomListToggleT1',function(oEvent){var bContains=$.contains($('div.unitinlineapi.request div.requestdata div.formcontent div.customselect#'+sFormName+'rooms'+lIndex)[0],oEvent.target);if(!bContains){this.unbindRoomCloseEvent(sFormName,lIndex)}}.bind(this))}},unbindRoomCloseEvent:function(sFormName,lIndex){if(this.bRoomCloseEventBinded){this.bRoomCloseEventBinded=false;$(window).off('click.RoomListToggleT1');if(sFormName!=undefined&&lIndex!=undefined){this.toggleRoomSelect(sFormName,lIndex)}}},setRoomId:function(sRoomId,sFormName,lIndex){var sCustomSelectId=sFormName+'rooms'+lIndex;if($('#'+sCustomSelectId+' div.rooms div.room').length){$('#'+sCustomSelectId+' div.rooms div.room').removeClass('activebg');if($('#'+sFormName+'lRoomID'+lIndex).length){$('#'+sFormName+'lRoomID'+lIndex).val(sRoomId)}if($('#'+sCustomSelectId+' div.rooms div.room[data-lRoomID="'+sRoomId+'"]').length){$('#'+sCustomSelectId+' div.rooms div.room[data-lRoomID="'+sRoomId+'"]').addClass('activebg');$('#'+sCustomSelectId+' div.selectfield span.select').html($('#'+sCustomSelectId+' div.room[data-lRoomID="'+sRoomId+'"] [data-roomname]').html());if($('#room'+lIndex+'preview').length){$('#room'+lIndex+'preview').show();var oRoom=$('#'+sCustomSelectId+' div.rooms div.room[data-lRoomID="'+sRoomId+'"]');$('#room'+lIndex+'preview [data-roomimage]').html(oRoom.find('div[data-roomimage]').html());$('#room'+lIndex+'preview [data-roomnamesize]').html(oRoom.find('div.roomname span[data-roomname]').html()+(oRoom.find('div.size span[data-roomsize]').html()!=''?' - '+oRoom.find('div.size span[data-roomsize]').html():''));$('#room'+lIndex+'preview [data-roompriceinfotext]').html(oRoom.find('div.priceinfotext span[data-roompriceinfotext]').html())}if(this.lVersion>1){if(oLightbox.oImages['room'+sRoomId+'-'+lIndex]!=undefined){$('#room'+lIndex+'preview [data-roomlightbox]').closest('li').show();$('#room'+lIndex+'preview [data-roomlightbox]').attr('onclick','oLightbox.openLightbox(\'room'+sRoomId+'-'+lIndex+'\')')}else{$('#room'+lIndex+'preview [data-roomlightbox]').closest('li').hide()}if(oLightbox.oImages['roomplan'+sRoomId+'-'+lIndex]!=undefined){$('#room'+lIndex+'preview [data-roomplanlightbox]').closest('li').show();$('#room'+lIndex+'preview [data-roomplanlightbox]').attr('onclick','oLightbox.openLightbox(\'roomplan'+sRoomId+'-'+lIndex+'\')')}else{$('#room'+lIndex+'preview [data-roomplanlightbox]').closest('li').hide()}}else{if(oLightbox.oImages['room'+sRoomId+'-'+lIndex]!=undefined){$('#room'+lIndex+'preview [data-roomlightbox]').closest('li').show();$('#room'+lIndex+'preview [data-roomlightbox]').attr('onclick','myLightbox.start($$(\'[rel="lightbox[room'+sRoomId+'-'+lIndex+']"]\')[0]);')}else{$('#room'+lIndex+'preview [data-roomlightbox]').closest('li').hide()}if(oLightbox.oImages['roomplan'+sRoomId+'-'+lIndex]!=undefined){$('#room'+lIndex+'preview [data-roomplanlightbox]').closest('li').show();$('#room'+lIndex+'preview [data-roomplanlightbox]').attr('onclick','myLightbox.start($$(\'[rel="lightbox[roomplan'+sRoomId+'-'+lIndex+']"]\')[0]);')}else{$('#room'+lIndex+'preview [data-roomplanlightbox]').closest('li').hide()}}}else{$('#room'+lIndex+'preview').hide();$('#'+sCustomSelectId+' div.selectfield span.select').html($('#'+sCustomSelectId+' div.selectfield span.select').attr('data-defaultvalue'))}this.unbindRoomCloseEvent();$('#'+sCustomSelectId).removeClass('open')}},addRoom:function(sFormName){if(this.lVisibleRooms<=this.lMaxVisibleRooms){$('#roomtypebox'+(this.lVisibleRooms+1)).show();this.lVisibleRooms++}if(this.lVisibleRooms>1){$('#unitInlineApiRemoveRoom').show()}if(this.lVisibleRooms==this.lMaxVisibleRooms){$('#unitInlineApiAddRoom').hide()}},removeRoom:function(sFormName){this.setRoomId('',sFormName,this.lVisibleRooms);if(this.lVisibleRooms>0){$('#roomtypebox'+this.lVisibleRooms).hide();this.lVisibleRooms--}if(this.lVisibleRooms<=this.lMaxVisibleRooms){$('#unitInlineApiAddRoom').show()}if(this.lVisibleRooms==1){$('#unitInlineApiRemoveRoom').hide()}},drawNextPrevIcon:function(oElement,sIcon){if(sIcon=='prev'){this.drawIcon(oElement,'calendarprev')}else{this.drawIcon(oElement,'calendarnext')}},drawCloseIcon:function(oElement){this.drawIcon(oElement,'close')},drawAgbIcon:function(sCssPath){var oElement=$(sCssPath)[0];this.drawIcon(oElement,'agb')},drawOpenAdditionalIcons:function(sCssPath){$(sCssPath).each(function(lIndex,oElement){this.drawIcon(oElement,'openadditional')}.bind(this))},drawOpenAdditionalIcon:function(oElement){this.drawIcon(oElement,'openadditional')},drawCloseAdditionalIcon:function(oElement){this.drawIcon(oElement,'closeadditional')},drawChildIcon:function(oElement){this.drawIcon(oElement,'child')},drawRoomAddIcon:function(oElement){this.drawIcon(oElement,'room')},drawRoomRemoveIcon:function(oElement){this.drawIcon(oElement,'roomremove')},drawCompleteYourDataIcon:function(oElement){this.drawIcon(oElement,'completeYourData')},drawRequestIcon:function(oElement){this.drawIcon(oElement,'request')},drawPhoneIcon:function(oElement){this.drawIcon(oElement,'phone')},drawEMailIcon:function(oElement){this.drawIcon(oElement,'email')},drawIcon:function(oElement,sType){if(unitInlineApi.lIconsVersion==1){oElement=$(oElement);oElement.html('');oElement=oElement[0];if(oElement){if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement,$(oElement).width(),$(oElement).height())}else{var oPaper=new Raphael(oElement,'100%','100%')}if(typeof(unitInlineApi.oIcons[sType].types)=='function'){oPaper.add(unitInlineApi.oIcons[sType].types(oElement))}else{oPaper.add(unitInlineApi.oIcons[sType].types)}unitInlineApi.oIcons[sType].setViewBox(oPaper)}}},startOfferBoxResizer:function(oBox){new clsBoxResizer(oBox.find('div.offer'),{lMinWidth:380,bGrid:true,sFirstClass:'respfirst'})},scrollToFormError:function(sFormName){var oErrorElement=$(sFormName).find('.fehler').first();if(oErrorElement&&typeof(oErrorElement.length)!='undefined'&&oErrorElement.length==0)oErrorElement=undefined;if(!oErrorElement)oErrorElement=$(sFormName).find('.error').first();if(!oErrorElement.is(':visible')&&oErrorElement.closest('div.addressdata').length){this.showHideElement(oErrorElement.closest('div.addressdata').prev('a.childrenbox'),sFormName,'addressdata')}var lOffset=this.setOffset(oErrorElement);if(!Object.isNumber(lOffset)){lOffset=0}$('body, html').animate({scrollTop:oErrorElement.offset().top+lOffset})},showRoomPreview:function(oSelect,lSelectNumber){oSelect=$(oSelect);oSelect=oSelect[0];var lRoom=$('#roompreview'+lSelectNumber);if(oSelect.options.selectedIndex==0){lRoom.addClass('hidden')}else{lRoom.removeClass('hidden');var sSelectedValue=oSelect.options[oSelect.options.selectedIndex].value;var sPersons;if(this.aRoomPreviewParams[sSelectedValue].sPersons!=undefined){sPersons=this.aRoomPreviewParams[sSelectedValue].sPersons}else{sPersons=this.aRoomPreviewParams[sSelectedValue].sMinPersons+' - '+this.aRoomPreviewParams[sSelectedValue].sMaxPersons}if(this.aRoomPreviewParams[sSelectedValue].image){$('#previewboximage'+lSelectNumber).removeClass('hidden');$('#previewboximage'+lSelectNumber)[0].innerHTML=this.aRoomPreviewParams[sSelectedValue].image}else{$('#previewboximage'+lSelectNumber).addClass('hidden')}$('#previewboxheadline'+lSelectNumber)[0].innerHTML=this.aRoomPreviewParams[sSelectedValue].sHeadline;$('#previewboxsubheadline'+lSelectNumber)[0].innerHTML=this.aRoomPreviewParams[sSelectedValue].sSubHeadline;$('#previewboxdescription'+lSelectNumber)[0].innerHTML=this.aRoomPreviewParams[sSelectedValue].sDescription}},countryCalling:{callingCodesData:{},countryCallingCodesData:{},oPhoneNumberField:undefined,oMobilePhoneField:undefined,oMobilePhoneCallingCode:undefined,init:function(){var oThis=this;oThis.oPhoneNumberField=$('#'+unitInlineApi.sFormId+'sMobilePhoneNumber');if(!oThis.oPhoneNumberField.length)return;oThis.oMobilePhoneField=$('#'+unitInlineApi.sFormId+'sMobilePhone');oThis.oMobilePhoneCallingCode=$('#'+unitInlineApi.sFormId+'sMobilePhoneCallingCode');oThis.oPhoneNumberField.on('keyup',function(evt){oThis.detectCountryByPhoneNumber($(evt.currentTarget).val());oThis.updatePhoneNumberInHiddenField()});this.oMobilePhoneCallingCode.on('change',function(evt){var callingCode=oThis.getCallingCodeFromCountryCode($(evt.currentTarget).val());oThis.updatePhoneCountrySelectField(callingCode,oThis.oPhoneNumberField.val());oThis.updatePhoneNumberInHiddenField()});this.detectCountryByPhoneNumber(this.oPhoneNumberField.val());this.oMobilePhoneCallingCode.trigger('change')},formatState:function(state){if(!state.id){return state.text}var country=unitInlineApi.countryCalling.countryCallingCodesData[state.element.value];var dialCode='';var countryName='';if(country!=undefined){dialCode=country['code'];countryName=country['countryName']}else{countryName=state.text}var $state=$('<span class="units-inlineapi-flag-option"><span class="units-flag units-flag-'+state.element.value+' units-flag-small units-flag-light"></span> <span class="text">'+countryName+'</span> <span class="dialCode">'+dialCode+'</span></span>');return $state},getCallingCodeFromCountryCode:function(countryCode){var value='';var country=unitInlineApi.countryCalling.countryCallingCodesData[countryCode];if(country!=undefined){value=country['code']+value}return value},detectCountryByPhoneNumber:function(phoneNumber){var detectCountry=false;if(phoneNumber.indexOf('+')===0){detectCountry=true}if(!detectCountry)return;var selectedCountry=null;var oThis=unitInlineApi.countryCalling;for(var i=1;i<=3;i++){var dialCode=phoneNumber.substr(0,i);var callingCode=oThis.callingCodesData[dialCode];if(callingCode!==undefined&&callingCode!==null){callingCode.forEach(function(o){o['areaCodes'].forEach(function(val){val=val.toString();if(val===phoneNumber.substr(i,val.length)){selectedCountry=o['countryCode']}});if(selectedCountry==null&&o['default']){selectedCountry=o['countryCode']}});oThis.updatePhoneCountrySelectField(oThis.getCallingCodeFromCountryCode(selectedCountry),phoneNumber);oThis.oMobilePhoneCallingCode.val(selectedCountry).trigger('change');break}}},updatePhoneCountrySelectField:function(newValue,phoneNumber){var oThis=unitInlineApi.countryCalling;var oMobilePhoneCallingCode=oThis.oMobilePhoneCallingCode;var lastCountryCallingCode=oMobilePhoneCallingCode.data('lastCountryCallingCode')||'';if(newValue!==lastCountryCallingCode&&lastCountryCallingCode!==''&&phoneNumber!==''&&phoneNumber.substr(0,lastCountryCallingCode.length)===lastCountryCallingCode){oThis.oPhoneNumberField.val(phoneNumber.replace(lastCountryCallingCode,newValue))}oMobilePhoneCallingCode.data('lastCountryCallingCode',newValue)},updatePhoneNumberInHiddenField:function(){var oThis=unitInlineApi.countryCalling;var value=oThis.oPhoneNumberField.val();var mobilePhoneNumber=oThis.oMobilePhoneField;if(value===''){mobilePhoneNumber.val('');return}if(value.indexOf('+')===0){mobilePhoneNumber.val(value)}else{var country=oThis.countryCallingCodesData[oThis.oMobilePhoneCallingCode.val()];if(country!=undefined){value=country['code']+value}mobilePhoneNumber.val(value)}}}};onScrMngrLoaded(function(){$(document).ready(function(){unitInlineApi.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.layout7={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'}]}}};oUnitList.layout9={getOffset:function(){return 0},next:function(oElement){oElement=$(oElement).closest('article.element');var lOffset=0;var oNext=oElement.nextAll('article.element').first();if(!oNext.length){lOffset=oElement.outerHeight(true);oNext=oElement}$('body, html').animate({scrollTop:oNext.offset().top+lOffset+this.getOffset()})}};function BookingPilot_PriceList_jsBefore(){}function BookingPilot_InlineApiT1_jsBefore(){}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 oImageFixStyle;function setImageSizeByRatio(oElements){var oImages=oElements||$('.imagefix');oImages=oImages.filter(':visible');$(oImages).each(function(i,o){var oImage=$('img',$(o));if(!oImage)return;var sClass=$(o).closest('[imagefix-class]').attr('imagefix-class')||'';var lMinWidth=$(o).closest('[imagefix-min-width]').attr('imagefix-min-width')||0;if(!RespHelper.isValidRange(lMinWidth))return;var lWidth=0;var lHeight=0;var lImageRatio=parseFloat(oImage.data('lImageRatio'),10)||0;if(lImageRatio==0){var oTestImage=new Image();oTestImage.src=oImage.attr('src');lImageRatio=oTestImage.height/oTestImage.width;oImage.data('lImageRatio',lImageRatio)}var lContainerWidth=$(o).width();var lContainerHeight=$(o).height();var lContainerRatio=lContainerHeight/lContainerWidth;if(lContainerRatio>lImageRatio){lHeight=lContainerHeight;lWidth=lContainerHeight/lImageRatio}else{lHeight=lContainerWidth*lImageRatio;lWidth=lContainerWidth}if(!oImageFixStyle){oImageFixStyle=$('<style type="text/css"></style>');$(document.body).append(oImageFixStyle)}oImageFixStyle.html(oImageFixStyle.html()+String.fromCharCode(10)+'.imagefix'+sClass+' img { width: '+lWidth+'px; height: '+lHeight+'px; left: '+(lContainerWidth-lWidth)/2+'px; top: '+(lContainerHeight-lHeight)/2+'px; }')})}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 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(){initAdaptHeight();positionBreadcrumb()});RespHelper.on('resize:change',function(){setImageSizeByRatio()});$.prototype.svg=function(){var oPaper;var oElement=$('> span.icon',this);if($(this).data('oPaper')){oPaper=$(this).data('oPaper');if(oElement.length)oPaper.clear()}else{if(oElement.length){$(oElement).html('')}else{$(this).html('<span class="icon"></span>'+$(this).html());oElement=$('> span.icon',this)}if(Raphael.vml){oPaper=Raphael(oElement[0],oElement.width(),oElement.height())}else{oPaper=Raphael(oElement[0],'100%','100%')}$(this).data('oPaper',oPaper)}return oPaper};$.prototype.movePath=function(sDir,lOffset){var aPaths=this;if(this[0].tagName.toLowerCase()=='svg'){aPaths=$('path',this)}if(aPaths.length>0){var bX=false;bX=sDir=='x';lOffset=parseFloat(lOffset);if(!isNaN(lOffset)){var sPath=aPaths.attr('d');sPath=sPath.substring(1,sPath.length-1);sPath=sPath.replace(/([a-z])/gi,',$1,');var aPoints=sPath.split(',');var i=(bX?0:1);sPath='M';$.each(aPoints,function(j){var lValue=parseFloat(this);if(isNaN(lValue)){sPath+=this}else{if(i%2==0){lValue=lValue+lOffset}sPath+=lValue;if(j!=aPoints.length)sPath+=',';i++}});sPath+='Z';aPaths.attr('d',sPath)}}return this};function MobileMenuHelper(oParams){var bMobileLinksLock=false;var oLastOpen=$();var oParams=$.extend(true,{options:{bActiveOpen:false,bCountLengthFix:false,sActiveClass:'aktiv'},oContainer:{},oElements:{},aCopyInto:[],aMobileLinks:[]},oParams);var oBreakPoints={};$.each(['aMobileLinks','aCopyInto'],function(i,sTaskList){$.each(oParams[sTaskList],function(i,aTask){var lBreakPoint=parseInt(aTask[0],10);var oTask={};if(lBreakPoint>0){if(typeof(oBreakPoints[lBreakPoint])!='object')oBreakPoints[lBreakPoint]=[];oTask.sTaskType=sTaskList;oTask.oElement=$(oParams.oElements[aTask[1]]);if(oTask.sTaskType=='aCopyInto')oTask.oContainer=$(oParams.oContainer[aTask[2]]);oBreakPoints[lBreakPoint].push(oTask)}})});function copyIntoIn(oTask){var oElement=oTask.oClone;if(!oElement){oElement=$(oTask.oElement.clone(true));var oContainer=oTask.oContainer;if(oParams.options.bActiveOpen==true){oElement.find('.'+oParams.options.sActiveClass+' ul').show()}oContainer.append(oElement);oTask.oClone=oElement}}function copyIntoOut(oTask){}function toggleSubMenu(oElement){$('ul',oElement).slideToggle()}function mobileLinksIn(oTask){var oTemp=oTask.oElement;var bUlFound=$(oTemp).prop('tagName')=='UL';var bNoResult=false;var i=0;while(!bUlFound&&i<50&&!bNoResult){bUlFound=$(' > ul',oTemp).length>0;if(bUlFound){oTemp=$(' > ul',oTemp)}else{oTemp=$(' > *',oTemp);if($(oTemp).length<1){bNoResult=true}}i++}$('>li',oTemp).each(function(){var lLength=1;if(oParams.options.bCountLengthFix){lLength=0}var oLink=$('> a',this);var oSubMenu=$('> ul',this);oSubMenu.hide();if($('li',oSubMenu).length>lLength){var oLandingPageLink=$('<a></a>');$(oLandingPageLink).attr('href',oLink.attr('href')).html(oLink.html());oLandingPageLink.text(oLink.data('lpname')||oLink.text());oLink.data('linkhref',oLink.attr('href'));oLink.removeAttr('href');oLandingPageLink=$('<li></li>').append(oLandingPageLink);oSubMenu.prepend(oLandingPageLink);oSubMenu.store('oLandingPageLink',oLandingPageLink);$('> a',this).on('click',function(){if(!bMobileLinksLock){bMobileLinksLock=true;var oUL=$(this).nextAll('ul').first();if(oUL.css('display')!='block'){oLastOpen.slideUp();oUL.addClass('open');oUL.slideDown(400,function(){oLastOpen=$(this);bMobileLinksLock=false})}else{oUL.slideUp(400,function(){oLastOpen=$(this);oUL.removeClass('open');bMobileLinksLock=false})}}})}})}function mobileLinksOut(oTask){$('li',oTask.oElement).each(function(){var oLink=$('> a',this);var oSubMenu=$('> ul',this);oSubMenu.css('display','');if($('li',oSubMenu).length){oLink.attr('href',oLink.data('linkhref'));if(oSubMenu.retrieve('oLandingPageLink'))oSubMenu.retrieve('oLandingPageLink').remove();$('> a',this).off('click')}})}$.each(oBreakPoints,function(lBreakPoint,aTasks){RespHelper.one('resize:change',function(){$.each(aTasks,function(){switch(this.sTaskType){case'aCopyInto':copyIntoIn(this);break;case'aMobileLinks':mobileLinksIn(this);break}})},{lMaxWidth:parseInt(lBreakPoint,10)});RespHelper.one('resize:change',function(){$.each(aTasks,function(){switch(this.sTaskType){case'aCopyInto':copyIntoOut(this);break;case'aMobileLinks':mobileLinksOut(this);break}})},{lMinWidth:parseInt(lBreakPoint,10)+1})});return{oParams:oParams,oBreakPoints:oBreakPoints,mobileLinksIn:mobileLinksIn}}function renderDefaultIcons(sParent){sParent=sParent==undefined?'':sParent+' ';$(sParent+"*.icon1 ul li, "+sParent+"ul.icon1 li").each(function(){var oElement=$('> span.icon',this);if(oElement.length){$(oElement).html('')}else{$(this).html('<span class="icon"></span>'+$(this).html());oElement=$('> span.icon',this)}var oPaper=Raphael(oElement[0],'100%','100%');oPaper.setViewBox(0,0,15,15,true);oPaper.path('M 0 7.5 C 0 3.3579 3.3578 0 7.5 0 C 11.6422 0 15 3.3579 15 7.5 C 15 11.6421 11.6422 15 7.5 15 C 3.3578 15 0 11.6421 0 7.5 Z').attr({fill:'#68172E',stroke:'none'});oPaper.path('M 6 5 L 11 7.5 L 6 10 L 6 5 Z').attr({fill:'#ffffff',stroke:'none'})});$(sParent+"*.icon1i ul li, "+sParent+"ul.icon1i li").each(function(){var oElement=$('> span.icon',this);if(oElement.length){$(oElement).html('')}else{$(this).html('<span class="icon"></span>'+$(this).html());oElement=$('> span.icon',this)}var oPaper=Raphael(oElement[0],'100%','100%');oPaper.setViewBox(0,0,15,15,true);oPaper.path('M 0 7.5 C 0 3.3579 3.3578 0 7.5 0 C 11.6422 0 15 3.3579 15 7.5 C 15 11.6421 11.6422 15 7.5 15 C 3.3578 15 0 11.6421 0 7.5 Z').attr({fill:'#ffffff',stroke:'none'});oPaper.path('M 6 5 L 11 7.5 L 6 10 L 6 5 Z').attr({fill:'#00a7e6',stroke:'none'})});$(sParent+"*.icon2 ul li, "+sParent+"ul.icon2 li").each(function(){var oElement=$('> span.icon',this);if(oElement.length){$(oElement).html('')}else{$(this).html('<span class="icon"></span>'+$(this).html());oElement=$('> span.icon',this)}var oPaper=Raphael(oElement[0],'100%','100%');oPaper.setViewBox(0,0,24,24,true);oPaper.path('M 2 12 C 2 6.4771 6.4771 2 12 2 C 17.5229 2 22 6.4771 22 12 C 22 17.5229 17.5229 22 12 22 C 6.4771 22 2 17.5229 2 12 Z').attr({fill:'#ffffff','stroke-width':2,stroke:'#c8c8c8'});oPaper.path('M 6.0741 12 L 10.5185 14.1875 L 17.9259 6.1667 L 18.6667 6.8958 L 10.5185 17.8333 L 5.3333 12.7292 L 6.0741 12 Z').attr({fill:'#00a7e6',stroke:'none'})});$(sParent+"*.icon2i ul li, "+sParent+"ul.icon2i li").each(function(){var oElement=$('> span.icon',this);if(oElement.length){$(oElement).html('')}else{$(this).html('<span class="icon"></span>'+$(this).html());oElement=$('> span.icon',this)}var oPaper=Raphael(oElement[0],'100%','100%');oPaper.setViewBox(0,0,24,24,true);oPaper.path('M 2 12 C 2 6.4771 6.4771 2 12 2 C 17.5229 2 22 6.4771 22 12 C 22 17.5229 17.5229 22 12 22 C 6.4771 22 2 17.5229 2 12 Z').attr({fill:'#68172E','stroke-width':2,stroke:'#ffffff'});oPaper.path('M 6.0741 12 L 10.5185 14.1875 L 17.9259 6.1667 L 18.6667 6.8958 L 10.5185 17.8333 L 5.3333 12.7292 L 6.0741 12 Z').attr({fill:'#ffffff',stroke:'none'})});$(sParent+".arrow1, "+sParent+".arrow1i").each(function(){$(this).html('');if(Raphael.vml){var oPaper=Raphael($(this)[0],$(this).width(),$(this).height())}else{var oPaper=Raphael($(this)[0],'100%','100%')}oPaper.setViewBox(0,0,45,45,true);var oArrow=oPaper.path('M 27.1369 16.1958 L 25.1431 14.4584 L 16.97 23.1947 L 25.4159 31.5416 L 27.2507 29.8276 L 20.3617 23.1033 L 27.1369 16.1958 Z').attr({fill:$(this).css('color'),stroke:'none'});if($(this).hasClass('next')){oArrow.transform('r180')}else if($(this).hasClass('up')){oArrow.transform('r90')}else if($(this).hasClass('down')){oArrow.transform('r270')}});$(sParent+".arrow2, "+sParent+".arrow2i").each(function(){$(this).html('');if(Raphael.vml){var oPaper=Raphael($(this)[0],$(this).width(),$(this).height())}else{var oPaper=Raphael($(this)[0],'100%','100%')}oPaper.setViewBox(0,0,50,50,true);var oArrow=oPaper.path('M 17 25.2103 L 28.1857 36.9875 L 33 37 L 21.4326 25.2103 L 32.9898 13 L 28.1249 13 L 17 25.2103 Z').attr({fill:$(this).css('color'),stroke:'none'});if($(this).hasClass('next')){oArrow.transform('r180')}else if($(this).hasClass('up')){oArrow.transform('r90')}else if($(this).hasClass('down')){oArrow.transform('r270')}});$(sParent+".arrow3, "+sParent+".arrow3i").each(function(){$(this).html('');if(Raphael.vml){var oPaper=Raphael($(this)[0],$(this).width(),$(this).height())}else{var oPaper=Raphael($(this)[0],'100%','100%')}oPaper.setViewBox(0,0,16,25,true);var oArrow=oPaper.path('M 0.6667 12.8301 L 11.1533 24.6073 L 15.6667 24.6198 L 4.8222 12.8301 L 15.6572 0.6198 L 11.0963 0.6198 L 0.6667 12.8301 Z').attr({fill:$(this).css('color'),stroke:'none'});if($(this).hasClass('next')){oArrow.transform('r180')}else if($(this).hasClass('up')){oArrow.transform('r90')}else if($(this).hasClass('down')){oArrow.transform('r270')}$(this).bind('mouseover',function(){oArrow.attr('fill',$(this).css('color'),'#440F1E')});$(this).bind('mouseout',function(){oArrow.attr('fill',$(this).css('color'))})})}$(function(){positionBreadcrumb();renderDefaultIcons()});var oFormularIcons={Elements:{radio:{standard:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,16,16,true)},types:[{type:'circle',cx:8,cy:8,r:8,fill:'#000000',stroke:'none'},{type:'circle',cx:8,cy:8,r:6.8,fill:'#FFFFFF',stroke:'none'}]},checked:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,16,16,true)},types:[{type:'circle',cx:8,cy:8,r:8,fill:'#000000',stroke:'none'},{type:'circle',cx:8,cy:8,r:6.8,fill:'#FFFFFF',stroke:'none'},{type:'circle',cx:8,cy:8,r:3.2,fill:'315-#55D551-#32AA2F',stroke:'none'}]}},checkbox:{standard:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,140,140,true)},types:[{type:'path',path:'M 0,10 0,130 120,130 120,10 z',fill:'transparent',stroke:'none'},{type:'path',path:'M 0,10 0,130 120,130 120,10 105,25 105,115 15,115 15,25 105,25 120,10 z',fill:'rgba(102,102,102,0.4)',stroke:'none'}]},checked:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,140,140,true)},types:[{type:'path',path:'M 0,10 0,130 120,130 120,10 z',fill:'transparent',stroke:'none'},{type:'path',path:'M 0,10 0,130 120,130 120,37 105,55 105,115 15,115 15,25 75,25 93,10 z',fill:'rgba(102,102,102,0.4)',stroke:'none'},{type:'path',path:'M 25,60 C 25,60 40,70 65,105 C 65,105 70,60 140,0 C 140,0 140,0 125,0 C 125,0 90,20 60,60 L 60,60 40,45 z',fill:'#68172E',stroke:'none'}]}},select:{standard:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,10,6,true)},types:[{type:'path',path:'M 0 0 L 10 0 L 5 6 z',fill:'#000000',stroke:'none'}]}},upload:{status0type0:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,34,32,true)},types:[{type:'path',path:'M 23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM22.157,6.545c0.805,0.786,1.529,1.676,2.069,2.534c-0.468-0.185-0.959-0.322-1.42-0.431c-1.015-0.228-2.008-0.32-2.625-0.357c0.003-0.133,0.004-0.283,0.004-0.446c0-0.869-0.055-2.108-0.356-3.2c-0.003-0.01-0.005-0.02-0.009-0.03C20.584,5.119,21.416,5.788,22.157,6.545zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164 z',fill:'#000000',stroke:'none'}]},status0type1:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,34,32,true)},types:[{type:'path',path:'M 23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM22.157,6.545c0.805,0.786,1.529,1.676,2.069,2.534c-0.468-0.185-0.959-0.322-1.42-0.431c-1.015-0.228-2.008-0.32-2.625-0.357c0.003-0.133,0.004-0.283,0.004-0.446c0-0.869-0.055-2.108-0.356-3.2c-0.003-0.01-0.005-0.02-0.009-0.03C20.584,5.119,21.416,5.788,22.157,6.545zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164 z',fill:'#000000',stroke:'none'},{type:'path',path:'M 16,23 18.5,23 18.5,28 23.5,28 23.5,23 26,23 21,17 z',fill:'270-#83d8f2-398fc0',stroke:'none'}]},status1type0:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,34,32,true)},types:[{type:'path',path:'M 23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM22.157,6.545c0.805,0.786,1.529,1.676,2.069,2.534c-0.468-0.185-0.959-0.322-1.42-0.431c-1.015-0.228-2.008-0.32-2.625-0.357c0.003-0.133,0.004-0.283,0.004-0.446c0-0.869-0.055-2.108-0.356-3.2c-0.003-0.01-0.005-0.02-0.009-0.03C20.584,5.119,21.416,5.788,22.157,6.545zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164 z',fill:'#000000',stroke:'none'}]},status1type1:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,34,32,true)},types:[{type:'path',path:'M23.4,20 19.276,15.917 23.4,11.8 C 24.8,9.8 22.7,7.6 20.5,9 L 16.447,13.087 12.4,9 C 10.2,7.6 8.1,9.8 9.5,11.8 L 8.117,10.415 13.618,15.917 9.5,20 C 8.1,22 10.2,24.3 12.4,22.8 L 10.946,24.248 16.447,18.746 20.5,22.8 C 22.7,24.3 24.8,22 23.4,20 z',fill:'315-#e14668-b21c3d',stroke:'none'}]},status2type0:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,34,32,true)},types:[{type:'path',path:'M 23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM22.157,6.545c0.805,0.786,1.529,1.676,2.069,2.534c-0.468-0.185-0.959-0.322-1.42-0.431c-1.015-0.228-2.008-0.32-2.625-0.357c0.003-0.133,0.004-0.283,0.004-0.446c0-0.869-0.055-2.108-0.356-3.2c-0.003-0.01-0.005-0.02-0.009-0.03C20.584,5.119,21.416,5.788,22.157,6.545zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164 z',fill:'#000000',stroke:'none'},{type:'path',path:'M16.5,12.3335 C13.0945,12.3335,10.3335,15.094000000000001,10.3335,18.5 C10.3335,21.906,13.0945,24.6665,16.5,24.6665 C19.906,24.6665,22.6665,21.906,22.6665,18.5 C22.6665,15.094,19.906,12.3335,16.5,12.3335 C16.5,12.3335,16.5,12.3335,16.5,12.3335 M16.5,13.8335 C17.4255,13.8335,18.286,14.1075,19.012,14.5735 C19.012,14.5735,12.5735,21.012,12.5735,21.012 C12.107,20.286,11.8335,19.425,11.8335,18.5 C11.8335,15.927,13.927,13.8335,16.5,13.8335 C16.5,13.8335,16.5,13.8335,16.5,13.8335 M16.5,23.1665 C15.575,23.1665,14.714,22.8925,13.988,22.426499999999997 C13.988,22.426499999999997,20.426,15.988,20.426,15.988 C20.8925,16.714,21.165999999999997,17.575,21.165999999999997,18.5 C21.1665,21.073,19.073,23.1665,16.5,23.1665 C16.5,23.1665,16.5,23.1665,16.5,23.1665',fill:'315-#e14668-b21c3d',stroke:'none'}]},status2type1:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,34,32,true)},types:[{type:'path',path:'M23.4,20 19.276,15.917 23.4,11.8 C 24.8,9.8 22.7,7.6 20.5,9 L 16.447,13.087 12.4,9 C 10.2,7.6 8.1,9.8 9.5,11.8 L 8.117,10.415 13.618,15.917 9.5,20 C 8.1,22 10.2,24.3 12.4,22.8 L 10.946,24.248 16.447,18.746 20.5,22.8 C 22.7,24.3 24.8,22 23.4,20 z',fill:'315-#e14668-b21c3d',stroke:'none'}]},status3type0:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,34,32,true)},types:[{type:'path',path:'M 23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM22.157,6.545c0.805,0.786,1.529,1.676,2.069,2.534c-0.468-0.185-0.959-0.322-1.42-0.431c-1.015-0.228-2.008-0.32-2.625-0.357c0.003-0.133,0.004-0.283,0.004-0.446c0-0.869-0.055-2.108-0.356-3.2c-0.003-0.01-0.005-0.02-0.009-0.03C20.584,5.119,21.416,5.788,22.157,6.545zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164 z',fill:'#000000',stroke:'none'},{type:'path',path:'M12,19 C12,19,16,23,16,23 C16,23,22,17,22,17 C22,17,20,15,20,15 C20,15,16,19,16,19 C16,19,14,17,14,17 C14,17,12,19,12,19',fill:'#a5d591',stroke:'none'}]},status3type1:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,34,32,true)},types:[{type:'path',path:'M23.4,20 19.276,15.917 23.4,11.8 C 24.8,9.8 22.7,7.6 20.5,9 L 16.447,13.087 12.4,9 C 10.2,7.6 8.1,9.8 9.5,11.8 L 8.117,10.415 13.618,15.917 9.5,20 C 8.1,22 10.2,24.3 12.4,22.8 L 10.946,24.248 16.447,18.746 20.5,22.8 C 22.7,24.3 24.8,22 23.4,20 z',fill:'315-#e14668-b21c3d',stroke:'none'}]}}},Status:{V1:{ok:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,100,100,true)},types:[{type:'path',path:'M 0,50 40,90 100,30 80,10 40,50 20,30 z',fill:'#004000',stroke:'none'}]},activetext:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,150,80,true)},types:[{type:'path',path:'M 0,0 75,90 150,0 z',fill:'#93bdd5',stroke:'none'}]},error:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,100,100,true)},types:[{type:'circle',cx:50,cy:50,r:50,fill:'90-#ba1f41-#e04466',stroke:'none'},{type:'rect',x:45,y:18,width:10,height:40,fill:'#FFFFFF',stroke:'none'},{type:'rect',x:45,y:70,width:10,height:10,fill:'#FFFFFF',stroke:'none'}]},errortext:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,150,80,true)},types:[{type:'path',path:'M 0,0 75,90 150,0 z',fill:'90-#b11c3c-#c42548',stroke:'none'}]}},V2:{ok:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,100,100,true)},types:[{type:'path',path:'M 0,50 40,90 100,30 80,10 40,50 20,30 z',fill:'#a5d591',stroke:'none'}]},activetext:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,50,90,true)},types:[{type:'path',path:'M 0,45 50,90 50,0 z',fill:'90-#bbd7e6-#a8cade',stroke:'none'}]},error:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,100,100,true)},types:[{type:'circle',cx:50,cy:50,r:50,fill:'90-#ba1f41-#e04466',stroke:'none'},{type:'rect',x:45,y:18,width:10,height:40,fill:'#FFFFFF',stroke:'none'},{type:'rect',x:45,y:70,width:10,height:10,fill:'#FFFFFF',stroke:'none'}]},errortext:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,50,90,true)},types:[{type:'path',path:'M 0,45 50,90 50,0 z',fill:'90-#d93b5d-#cc2b4e',stroke:'none'}]}},V3:{error:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,100,100,true)},types:[{type:'circle',cx:50,cy:50,r:50,fill:'90-#ba1f41-#e04466',stroke:'none'},{type:'rect',x:45,y:18,width:10,height:40,fill:'#FFFFFF',stroke:'none'},{type:'rect',x:45,y:70,width:10,height:10,fill:'#FFFFFF',stroke:'none'}]}},V4:{error:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,100,100,true)},types:[{type:'circle',cx:50,cy:50,r:50,fill:'90-#ba1f41-#e04466',stroke:'none'},{type:'rect',x:45,y:18,width:10,height:40,fill:'#FFFFFF',stroke:'none'},{type:'rect',x:45,y:70,width:10,height:10,fill:'#FFFFFF',stroke:'none'}]}},V5:{error:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,22,18,true)},types:[{type:'path',path:'M 0,18 22,18 11,0 z',fill:'90-#ba1f41-#e04466',stroke:'none'},{type:'rect',x:10,y:7,width:2,height:5,fill:'#FFFFFF',stroke:'none'},{type:'rect',x:10,y:13,width:2,height:2,fill:'#FFFFFF',stroke:'none'}]}},V6:{ok:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,30,25,true)},types:[{type:'path',path:'M 0,12 0,13 12,25 28,25 30,23 30,2 28,0 12,0 z',fill:'#0c7054',stroke:'none'},{type:'path',path:'M 11,12 17,18 25,10 22,7 17,12 14,9 z',fill:'#FFFFFF',stroke:'none'}],error:[{type:'path',path:'M 0,12 0,13 12,25 28,25 30,23 30,2 28,0 12,0 z',fill:'#990000',stroke:'none'},{type:'path',path:'M 14,8 14,9 17,12 17,13 14,16 14,17 17,17 18,14 19,14 20,17 23,17 23,16 20,13 20,12 23,9 23,8 20,8 19,10 18,10 17,8 z',fill:'#FFFFFF',stroke:'none'}]}}}};onScrMngrLoaded(function(){var sLightboxIconColor='#ffffff';var oLightboxCircle={type:'circle',cx:25,cy:25,r:25,fill:'#68172E',stroke:'none'};oLightbox.setCustomIcons({oNaviIcon:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,50,50,true)},types:[oLightboxCircle,{type:'path',path:'M 21.953 18.3438 L 23.9035 16.644 L 31.8989 25.1904 L 23.6366 33.356 L 21.8417 31.6792 L 28.5809 25.1011 L 21.953 18.3438 Z',fill:sLightboxIconColor,stroke:'none'}]},oCloseIcon:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,50,50,true)},types:[oLightboxCircle,{type:'path',path:'M 16.9418 17.3824 L 33.2882 33.6176 ','stroke-width':'2',fill:'none',stroke:sLightboxIconColor},{type:'path',path:'M 33.2882 17.3824 L 16.9418 33.6176 ','stroke-width':'2',fill:'none',stroke:sLightboxIconColor}]},oFullScreenIcon:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,50,50,true)},types:[oLightboxCircle,{type:'path',path:'M 16 16 L 23 23 ',fill:'none',stroke:sLightboxIconColor,'stroke-width':'2'},{type:'path',path:'M 19.9229 13.3269 L 13.6357 19.5118 L 11.7496 10.8529 L 19.9229 13.3269 Z',fill:sLightboxIconColor,stroke:'none'},{type:'path',path:'M 34 16 L 27 23 ',fill:'none',stroke:sLightboxIconColor,'stroke-width':'2'},{type:'path',path:'M 30.1089 13.3269 L 36.396 19.5118 L 38.2821 10.8529 L 30.1089 13.3269 Z',fill:sLightboxIconColor,stroke:'none'},{type:'path',path:'M 16 34.8529 L 23 27.8529 ',fill:'none',stroke:sLightboxIconColor,'stroke-width':'2'},{type:'path',path:'M 19.9229 37.5261 L 13.6357 31.3412 L 11.7496 40 L 19.9229 37.5261 Z',fill:sLightboxIconColor,stroke:'none'},{type:'path',path:'M 34 34.8529 L 27 27.8529 ',fill:'none',stroke:sLightboxIconColor,'stroke-width':'2'},{type:'path',path:'M 30.1089 37.5261 L 36.396 31.3412 L 38.2821 40 L 30.1089 37.5261 Z',fill:sLightboxIconColor,stroke:'none'}]},oCloseFullScreenIcon:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,50,50,true)},types:[oLightboxCircle,{type:'path',path:'M 31 31 L 38 38 ',fill:'none',stroke:sLightboxIconColor,'stroke-width':'2'},{type:'path',path:'M 34.9229 29.3269 L 28.6357 35.5118 L 26.7496 26.8529 L 34.9229 29.3269 Z',fill:sLightboxIconColor,stroke:'none'},{type:'path',path:'M 19 31 L 12 38 ',fill:'none',stroke:sLightboxIconColor,'stroke-width':'2'},{type:'path',path:'M 15.1089 29.3269 L 21.396 35.5118 L 23.2821 26.8529 L 15.1089 29.3269 Z',fill:sLightboxIconColor,stroke:'none'},{type:'path',path:'M 31 18.8529 L 38 11.8529 ',fill:'none',stroke:sLightboxIconColor,'stroke-width':'2'},{type:'path',path:'M 34.9229 21.5261 L 28.6357 15.3412 L 26.7496 24 L 34.9229 21.5261 Z',fill:sLightboxIconColor,stroke:'none'},{type:'path',path:'M 19 18.8529 L 12 11.8529 ',fill:'none',stroke:sLightboxIconColor,'stroke-width':'2'},{type:'path',path:'M 30.1089 37.5261 L 36.396 31.3412 L 38.2821 40 L 30.1089 37.5261 Z',fill:sLightboxIconColor,stroke:'none'}]},oCloseFullScreenIcon:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,30.68011,30.68011,true)},types:[{type:'circle',cx:15.34,cy:15.34,r:15.34,fill:oLightboxCircle.fill,stroke:'none'},{type:'path',path:'M21.860583,17.579448,L16.474581,16.13581,L17.91757,21.521811,L19.092173,20.347857,L23.599466,24.8551500,L25.18178,23.272836,L20.674487,18.765544,L21.860583,17.579448,ZM9.3726995,13.001218,L14.758704,14.444217,L13.315707,9.0582115,L12.141114,10.23217,L7.8734639,5.9645204,L6.2911505,7.5468338,L10.5588,11.814484,L9.3726995,13.001218,ZM10.680861,18.883131,L6.2905114,23.272835,L7.8728249,24.85515,L12.262535,20.465443,L13.449909,21.652178,L14.892908,16.266177,L9.5069025,17.709176,L10.680861,18.883130,ZM20.792713,11.935905,L25.181141,7.5455558,L23.598827,5.9632423,L19.209761,10.352953,L18.023664,9.1668518,L16.580666,14.552858,L21.966667,13.10922,L20.792713,11.935905,Z',fill:sLightboxIconColor,stroke:'none'}]}})});var oThemeStageT7={oGallery:undefined,oElement:undefined,oScrollDown:undefined,lLastHeight:0,init:function(options){this.options=$.extend({sModuleIdPrefix:'',aIDs:[],oParams:[]},options||{});this.oHead=$('header').first();this.oElement=$("#"+this.options.sModuleIdPrefix+'box');this.setHeight();this.oGallery=new FadeGallery();this.oGallery.aProductIDs=this.options.aIDs;this.oGallery.sHtmlTemplate='#{imgHtml}';this.oGallery.oParams=this.options.oParams;this.oGallery.sElement=this.options.sModuleIdPrefix;this.oGallery.sExternalIdPrefix=this.options.sModuleIdPrefix+'text';this.oGallery.bObserveOnLoad=false;this.oGallery.lFadeTime=0.6;this.oGallery.bResponsive=true;this.oGallery.onImageInSource=function(oElement){$("a.prev",oElement).first().append("<span class=\"text\">"+this.oParams[this.lAktuellesBild==0?this.aProductIDs.length-1:this.lAktuellesBild-1].sHeadline+"</span>");$("a.next",oElement).first().html("<span class=\"text\">"+this.oParams[this.lAktuellesBild==this.aProductIDs.length-1?0:this.lAktuellesBild+1].sHeadline+"</span>"+$("a.next",oElement).html());renderDefaultIcons('#'+oElement.attr('id'));$("picture",oElement).first().convertPictureToImg()};this.oGallery.initAutoFade();this.oScrollDown=$("div.scrolldown a",this.options.sModuleIdPrefix+'section').first();this.sStatus='desktop';this.bStartFade=false;RespHelper.on('resize:change',function(){this.sStatus='desktop';if(this.bStartFade){this.bStartFade=false;this.oGallery.FadeGalleryStart()}this.setHeight()}.bind(this),{lMinWidth:991,lMinHeight:610,sOperator:'and'});RespHelper.one('resize:change',function(){this.sStatus='fix';if(this.bStartFade){this.bStartFade=false;this.oGallery.FadeGalleryStart()}this.setHeight()}.bind(this),{lMinWidth:991,lMaxHeight:610,sOperator:'and'});RespHelper.one('resize:change',function(){this.sStatus='tablet';if(this.bStartFade){this.bStartFade=false;this.oGallery.FadeGalleryStart()}this.setHeight()}.bind(this),{lMaxWidth:990});RespHelper.one('resize:change',function(){this.bStartFade=true;this.oGallery.FadeGalleryStop()}.bind(this),{lMaxWidth:700})},setHeight:function(){var oThat=this;if(this.sStatus=='tablet'){this.lLastHeight=null;this.oElement.css({'height':'auto'})}else if(this.sStatus=='fix'){var lHeight=window.innerHeight||document.viewport.getHeight();if(lHeight!=this.lLastHeight){this.lLastHeight=lHeight;this.oElement.css({'height':(500+oThat.oScrollDown.height())+'px'})}}else{var lHeight=window.innerHeight||document.viewport.getHeight();if(lHeight!=this.lLastHeight){this.lLastHeight=lHeight;this.oElement.css({'height':(lHeight-oThat.oHead.outerHeight(true)-oThat.oElement.css('margin-bottom').substr(0,oThat.oElement.css('margin-bottom').length-2))})}}},scrollDown:function(){$("html, body").animate({scrollTop:$("#"+this.options.sModuleIdPrefix).offset().top},500)},openCloseInfoBox:function(oThis){$(oThis).next().toggle();this.oGallery.FadeGalleryStop()}};var oTeaser={oGallery:undefined,oNextBtn:undefined,oPrevBtn:undefined,bInit:false,init:function(options){if(this.bInit){return}this.options=$.extend({lCount:0,lStartID:1,lVisible:4,sModuleIdPrefix:'',sCssPath:'',onAfterFinishScroll:function(){}},options||{});this.lElementWidth=0;this.lScrollWidth=0;this.bUseCreateStyle=false;this.aScroll=$(this.options.sCssPath);this.aElements=$('div.scrollelement',this.aScroll[0]);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.oNextBtn=$('#'+this.options.sModuleIdPrefix+'next');this.oPrevBtn=$('#'+this.options.sModuleIdPrefix+'prev');this.bInit=true;this.set(this.options.lVisible)},set:function(lVisible){var sCssPath=sCssPath||this.options.sCssPath;this.options.lVisible=lVisible;this.setStyles();$(this.options.sCssPath).css("margin-left","0px");this.oGallery=new clsMultiScrollGallery(this.options.sCssPath,100/this.options.lVisible,(this.options.lCount)*3,{lInterval:1,sUnit:'%',oNextBtn:this.oNextBtn,oPrevBtn:this.oPrevBtn,lVisible:this.options.lVisible,onAfterFinishScroll:function(sDir){if(sDir=='goToElement')return;var lElements=parseInt((this.lCount)/3,10);if(this.lCounter%lElements==0){this.bLocked=false;this.goToElement(lElements)}var oActive=$($('div.element',sCssPath)[this.lCounter])}})},setStyles:function(){var sCss='';this.lElementWidth=100/(this.options.lCount*3);this.lScrollWidth=100/this.options.lVisible*(this.options.lCount*3);if(this.bUseCreateStyle){this.oStyle.addRule(this.options.sCssPath,'width: '+this.lScrollWidth+'%;');this.oStyle.addRule(this.options.sCssPath+' div.scrollelement','width: '+this.lElementWidth+'%;')}else{sCss+=this.options.sCssPath+' { width: '+this.lScrollWidth+'%; }';sCss+=this.options.sCssPath+' div.scrollelement { width: '+this.lElementWidth+'%; }';$(this.oStyle).html(sCss)}}};var oScrollGalleryT2={oGallery:undefined,oNextBtn:undefined,oPrevBtn:undefined,aText:[],oText:$(),bInit:false,init:function(options){if(this.bInit){return}this.options=$.extend({lCount:0,lStartID:1,lVisible:4,sModuleIdPrefix:'',sCssPath:'',onAfterFinishScroll:function(){}},options||{});this.aText=this.aText;this.oText=this.oText;this.lElementWidth=0;this.lScrollWidth=0;this.bUseCreateStyle=false;this.aScroll=$(this.options.sCssPath);this.aElements=$('div.scrollelement',this.aScroll[0]);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.oNextBtn=$('#'+this.options.sModuleIdPrefix+'next');this.oPrevBtn=$('#'+this.options.sModuleIdPrefix+'prev');this.bInit=true;this.set(1)},set:function(lVisible){var aText=aText||this.aText;var oText=oText||this.oText;var sCssPath=sCssPath||this.options.sCssPath;this.options.lVisible=lVisible;this.setStyles();$(this.options.sCssPath).css("margin-left","0px");this.oGallery=new clsMultiScrollGallery(this.options.sCssPath,100/this.options.lVisible,(this.options.lCount)*3,{lInterval:1,sUnit:'%',oNextBtn:this.oNextBtn,oPrevBtn:this.oPrevBtn,lVisible:this.options.lVisible,onAfterFinishScroll:function(sDir){if(sDir=='goToElement')return;var lElements=parseInt((this.lCount)/9,10);if(this.lCounter%lElements==0){this.bLocked=false;this.goToElement(lElements)}var oActive=$($('div.element',sCssPath)[this.lCounter]);oText.html(aText[this.lCounter%lElements])}})},setStyles:function(){var sCss='';this.lElementWidth=100/(this.options.lCount*3);this.lScrollWidth=100/this.options.lVisible*(this.options.lCount*3);if(this.bUseCreateStyle){this.oStyle.addRule(this.options.sCssPath,'width: '+this.lScrollWidth+'%;');this.oStyle.addRule(this.options.sCssPath+' div.scrollelement','width: '+this.lElementWidth+'%;')}else{sCss+=this.options.sCssPath+' { width: '+this.lScrollWidth+'%; }';sCss+=this.options.sCssPath+' div.scrollelement { width: '+this.lElementWidth+'%; }';$(this.oStyle).html(sCss)}}};var oScrollGalleryT1={oGallery:undefined,oNextBtn:undefined,oPrevBtn:undefined,bInit:false,init:function(options){if(this.bInit){return}this.options=$.extend({lCount:0,lStartID:1,lVisible:4,sModuleIdPrefix:'',sCssPath:''},options||{});this.lElementWidth=0;this.lScrollWidth=0;this.bUseCreateStyle=false;this.aScroll=$(this.options.sCssPath);this.aElements=$('div.scrollelement',this.aScroll[0]);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.oNextBtn=$('#'+this.options.sModuleIdPrefix+'next');this.oPrevBtn=$('#'+this.options.sModuleIdPrefix+'prev');this.bInit=true;this.set(1);$('#points li:first-child').addClass('active');$('#points li').each(function(i){var oElement=$(this);oElement.click(function(){oScrollGalleryT1.oGallery.to(i)})})},set:function(lVisible){this.options.lVisible=lVisible;this.setStyles();$(this.options.sCssPath).css("margin-left","0px");this.oGallery=new clsMultiScrollGallery(this.options.sCssPath,100/this.options.lVisible,(this.options.lCount)*3,{lInterval:1,sUnit:'%',oNextBtn:this.oNextBtn,oPrevBtn:this.oPrevBtn,lVisible:this.options.lVisible,onAfterFinishScroll:function(sDir){if(sDir=='goToElement')return;var lElements=parseInt((this.lCount)/9,10);$('#points li').eq(this.lCounter%lElements).addClass('active').siblings().removeClass('active');if(this.lCounter%lElements==0){this.bLocked=false;this.goToElement(lElements)}}})},setStyles:function(){var sCss='';this.lElementWidth=100/(this.options.lCount*3);this.lScrollWidth=100/this.options.lVisible*(this.options.lCount*3);if(this.bUseCreateStyle){this.oStyle.addRule(this.options.sCssPath,'width: '+this.lScrollWidth+'%;');this.oStyle.addRule(this.options.sCssPath+' div.scrollelement','width: '+this.lElementWidth+'%;')}else{sCss+=this.options.sCssPath+' { width: '+this.lScrollWidth+'%; }';sCss+=this.options.sCssPath+' div.scrollelement { width: '+this.lElementWidth+'%; }';$(this.oStyle).html(sCss)}}};var oPopUpT1={sPath:'section.PopUpT1',lCookieExpires:14,init:function(){var sPath=$(this.sPath);if(GetCookie('Page_bPopUp')!='true'){window.setTimeout(function(){$('body').addClass('PopUpActive');sPath.fadeIn()},2000);sPath.find('.close').on('click',function(){oPopUpT1.closeAndSetCookie()})}},closeAndSetCookie:function(){$('body').removeClass('PopUpActive');$(this.sPath).fadeOut();SetCookie('Page_bPopUp','true',this.lCookieExpires)}};var oNewsBoxT1={toggle:function(){if($('#NewsBoxT1').hasClass('open')){$('#NewsBoxT1').removeClass('open')}else{$('#NewsBoxT1').addClass('open')}}};var oMagazineT1={oMasonry:undefined,oLastActive:undefined,lPageNumber:1,lLabelID:'',lTimer:null,oIcons:{loadmore:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,16,16,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'M 4,7 4,9 7,9 7,12 9,12 9,9 12,9 12,7 9,7 9,4 7,4 7,7 z m 4,9 C 3.5817218,16 0,12.41828 0,8 0,3.58172 3.5817218,0 8,0 c 4.418278,0 8,3.58172 8,8 0,4.41828 -3.581722,8 -8,8 z m 0,0',fill:oElement.css('color'),stroke:'none'}]}},searchicon:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,48,48,true)},types:function(oElement){oElement=$(oElement);return[{type:'path',path:'m 29.236001,19.778 c 0,5.067213 -4.107787,9.175 -9.175,9.175 -5.067213,0 -9.175,-4.107787 -9.175,-9.175 0,-5.067213 4.107787,-9.175 9.175,-9.175 5.067213,0 9.175,4.107787 9.175,9.175 z',fill:'none',stroke:oElement.css('color')},{type:'path',path:'m 26.636,19.688999 c 0,3.615256 -2.930744,6.546 -6.546,6.546 -3.615256,0 -6.546,-2.930744 -6.546,-6.546 0,-3.615256 2.930744,-6.546 6.546,-6.546 3.615256,0 6.546,2.930744 6.546,6.546 z',fill:'none',stroke:oElement.css('color')},{type:'path',path:'m 27.956,24.45 7.415,7.431 c 0.777,0.779 0.777,2.054 0.002,2.833 l -0.391,0.391 c -0.775,0.779 -2.048,0.78 -2.826,0.003 l -7.442,-7.436',fill:'none',stroke:oElement.css('color')},{type:'path',path:'m 31.896999,34.43 2.733002,-2.732999',fill:'none',stroke:oElement.css('color')},{type:'path',path:'m 30.146,32.748001 2.733002,-2.732',fill:'none',stroke:oElement.css('color')},{type:'path',path:'m 19.732,14.854 0.056,1.222 -0.088,0.004 c -2.044,0.092 -3.623,1.829 -3.532,3.863 l 0.002,0.039 -1.095,0.049 c -0.012,-0.029 -0.014,-0.067 -0.016,-0.098 -0.059,-1.34 0.435,-2.577 1.275,-3.498 0.841,-0.919 2.028,-1.521 3.368,-1.581 l 0.03,0 z',fill:'#000000',stroke:oElement.css('color')}]}}},drawIcon:function(oElement,sType){oElement=$(oElement);oElement.html('');oElement=oElement[0];if(oElement){if(Raphael.vml||Raphael.canvas){var oPaper=new Raphael(oElement,$(oElement).width(),$(oElement).height())}else{var oPaper=new Raphael(oElement,'100%','100%')}if(typeof(oMagazineT1.oIcons[sType].types)=='function'){oPaper.add(oMagazineT1.oIcons[sType].types(oElement))}else{oPaper.add(oMagazineT1.oIcons[sType].types)}oMagazineT1.oIcons[sType].setViewBox(oPaper)}},init:function(element,options){this.options=$.extend({oAjaxParams:{},sAjaxShared:'',sFilterFormName:'',oNextbox:'',sModuleIdPrefix:'',lPageSize:999999},options||{});this.oAjaxBox=$('<div></div>');$(this.oAjaxBox).bind(this.options.sModuleIdPrefix+':imgLoaded',$.proxy(function(){$('#'+this.options.sModuleIdPrefix+'listloading').hide();this.oAjaxBox.find('.element').each($.proxy(function(i,o){this.element.append($(o));this.oMasonry.appended(o)},this));this.checkImageLoaded(this.element.find('img'))},this));$(document).ready($.proxy(function(){this.element=$("#"+element);this.options.oNextbox=$("#"+this.options.oNextbox);if(this.element.find('article.element').length&&this.oMasonry==undefined){this.oMasonry=new Masonry(this.element[0],{columnWidth:'.grid-sizer',gutter:'.gutter-sizer',itemSelector:'.element'})}$(this.element).bind(this.options.sModuleIdPrefix+':imgLoaded',$.proxy(function(){$('#'+this.options.sModuleIdPrefix+'listloading').hide();if(this.oMasonry!=undefined){this.oMasonry.reloadItems();this.oMasonry.layout()}},this));this.checkImageLoaded(this.element.find('img'))},this))},loadImages:function(oElement){var aPic=oElement.find('picture');var lLoaded=0;aPic.each($.proxy(function(i,oPic){$(oPic).bind('image:load',$.proxy(function(){lLoaded++;if(aPic.length==lLoaded){oElement.trigger(this.options.sModuleIdPrefix+':imgLoaded')}},this));$(oPic).convertPictureToImg()},this));if(aPic.length==lLoaded){oElement.trigger(this.options.sModuleIdPrefix+':imgLoaded')}},checkImageLoaded:function(aImages){var bImageLoaded=true;$.each(aImages,function(i,oImg){bImageLoaded=bImageLoaded&&oImg.complete});if(bImageLoaded){this.element.trigger(this.options.sModuleIdPrefix+':imgLoaded')}else{window.setTimeout($.proxy(function(){this.checkImageLoaded(aImages)},this),100)}},update:function(param){this.lPageNumber=param.lPageNumber;this.lCount=param.lCount;this.loadImages(this.element);if(this.options.oNextbox.size()>0){var lMaxPage=this.lCount/this.options.lPageSize;if(this.lCount%this.options.lPageSize!=0){lMaxPage+=1}lMaxPage=parseInt(lMaxPage);if(this.lPageNumber>=lMaxPage){this.options.oNextbox.hide()}else{this.options.oNextbox.show()}}},nextPage:function(){$("#"+this.options.sFilterFormName+'lPageNumber').val(this.lPageNumber+1);this.loadAjax()},loadAjax:function(){var oParam=Object.clone(this.options.oAjaxParams);var sSerialized=$("#"+this.options.sFilterFormName).serializeObject();$.extend(oParam,sSerialized);oParam.sSharedKey=this.options.sAjaxShared;$('#'+this.options.sModuleIdPrefix+'listloading').show();var ua=window.navigator.userAgent;var msie=ua.indexOf("MSIE ");$.ajax(msie>0?encodeURI(document.location.href):document.location.href,{data:oParam,type:"POST",success:$.proxy(function(data){this.oAjaxBox.append(data).find("script").each(function(){eval($(this).text())});this.loadImages(this.oAjaxBox)},this)})},filter:function(lLabelID){window.clearTimeout(this.lTimer);$("#"+this.options.sFilterFormName+'lPageNumber').val(1);if($("#"+this.options.sFilterFormName+'sLabelIDs').val()==lLabelID){$("#"+this.options.sFilterFormName+'sLabelIDs').val('')}else{$("#"+this.options.sFilterFormName+'sLabelIDs').val(lLabelID)}window[this.options.sFilterFormName].checkFormular(window[this.options.sFilterFormName+'Data']);$('#'+this.options.sModuleIdPrefix+'listloading').show()},setActive:function(oElement){oElement=$(oElement);if(!oElement)return;if(this.oLastActive&&this.oLastActive[0]!=oElement[0]){this.oLastActive.removeClass('active')}if(!oElement.hasClass('active')){oElement.addClass('active');this.oLastActive=oElement}else{oElement.removeClass('active');this.oLastActive=undefined}},toggleOuterClass:function(oElement,bAll){oElement=$(oElement);if(!oElement)return;if(bAll){oElement=oElement.closest('div.row.checkbox');oElement.siblings().removeClass('active');oElement.addClass('active');$('#'+this.options.sFilterFormName+'sLabelIDs').val('');window[this.options.sFilterFormName].checkFormular(window[this.options.sFilterFormName+'Data'])}else{oElement=oElement.closest('div.row.checkbox');var bOtherElementsActive=false;var oElements=oElement.siblings();var sLabelIDs;oElement.toggleClass('active');if(oElement.hasClass('active')){sLabelIDs=oElement.find('input[name="sLabelIDs"] ').val()+', '}else{sLabelIDs=''}for(var i=0;i<oElements.length;i++){if(!$(oElements[i]).hasClass('all')){if(!$(oElements[i])!=oElement){bOtherElementsActive=false;$(oElements[i]).removeClass('active')}}}if(bOtherElementsActive||oElement.hasClass('active')){oElement.closest('div.labelbox').find('div.row.all').removeClass('active')}else{oElement.closest('div.labelbox').find('div.row.all').addClass('active');sLabelIDs='-1'}$('#'+this.options.sFilterFormName+'sLabelIDs').val(sLabelIDs);window[this.options.sFilterFormName].checkFormular(window[this.options.sFilterFormName+'Data'])}},searchChange:function(element){window.clearTimeout(oMagazineT1.lTimer);oMagazineT1.lTimer=window.setTimeout(function(){oMagazineT1.filter()},1000)},initGallery:function(lCount,oParams){this.oGallery=new EffectGallery();this.oGallery.aIDs=$.range(1,lCount);this.oGallery.sHtmlTemplate='#{imgHtml}';this.oGallery.oParams=oParams;this.oGallery.sElement=this.options.sModuleIdPrefix+'detailgallery';this.oGallery.onEffectBefore=this.galleryEffect;this.oGallery.onEffectComplete=this.galleryBack;this.oGallery.onImageInSource=function(oElement){oElement.down('picture').convertPictureToImg()};this.oGallery.initEffect()},galleryEffect:function(lNumber,sSender){var lEffectPosition=0;var lFromToNumber=0;var lWidth=$("#"+this.sElement).width();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'||sSender==''){$("#"+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)}},galleryBack:function(lNumber,sSender){$("#"+this.sInternalId+lNumber).css({'left':'auto'})}};var oMenuT1={sMenuContainer:undefined,oLastSubMenuOpen:undefined,initSplitMenu:function(sMenuContainer){$('#frame').insert({top:$('<div></div>').attr({'class':'mobilemenubgoverlay','id':'mobilemenubgoverlay'})});this.sMenuContainer=sMenuContainer;RespHelper.one('resize:change',function(){$(this.sMenuContainer).height("100%");$(this.sMenuContainer).removeClass('open');$('#frame').removeClass('mobilemenuopen');$('#mobilemenubgoverlay').height(0);if($('#bookingbuttons').html()==''){$('#bookingbuttons').html($('#mobilebookingbuttons').html());$('#mobilebookingbuttons').html('')}if($('nav.topnavi ul.menu').html()==''){$('nav.topnavi ul.menu').html($('nav.mainmenu ul.mobiletopmenu li ul').html());$('nav.mainmenu ul.mobiletopmenu li ul').html('')}this.resetClickEventsMobileMenu()}.bind(this),{lMinWidth:601});RespHelper.one('resize:change',function(){$(this.sMenuContainer).height(window.innerHeight);$('#mobilemenubgoverlay').height($(document).height());$('#mobilebookingbuttons').html($('#bookingbuttons').html());$('#bookingbuttons').html('');$('nav.mainmenu ul.mobiletopmenu li ul').html($('nav.topnavi ul.menu').html());$('nav.topnavi ul.menu').html('');this.setClickEventsMobileMenu()}.bind(this),{lMaxWidth:600});RespHelper.on('resize:change',function(){$(this.sMenuContainer).height(window.innerHeight);$('#mobilemenubgoverlay').height($(document).height())}.bind(this),{lMaxWidth:600})},initSimpleMenu:function(sMenuContainer){$('#frame').insert({top:$('<div></div>').attr({'class':'mobilemenubgoverlay','id':'mobilemenubgoverlay'})});this.sMenuContainer=sMenuContainer;RespHelper.one('resize:change',function(){$(this.sMenuContainer).height("100%");$(this.sMenuContainer).removeClass('open');$('#frame').removeClass('mobilemenuopen');$('#mobilemenubgoverlay').height(0);if($('#bookingbuttons').html()==''){$('#bookingbuttons').html($('#mobilebookingbuttons').html());$('#mobilebookingbuttons').html('')}if($('nav.topnavi ul.menu').html()==''){$('nav.topnavi ul.menu').html($('nav.mainmenu ul.mobiletopmenu li ul').html());$('nav.mainmenu ul.mobiletopmenu li ul').html('')}this.resetClickEventsMobileMenu()}.bind(this),{lMinWidth:801});RespHelper.one('resize:change',function(){$(this.sMenuContainer).height(window.innerHeight);$('#mobilemenubgoverlay').height($(document).height());$('#mobilebookingbuttons').html($('#bookingbuttons').html());$('#bookingbuttons').html('');$('nav.mainmenu ul.mobiletopmenu li ul').html($('nav.topnavi ul.menu').html());$('nav.topnavi ul.menu').html('');this.setClickEventsMobileMenu()}.bind(this),{lMaxWidth:800});RespHelper.on('resize:change',function(){$(this.sMenuContainer).height(window.innerHeight);$('#mobilemenubgoverlay').height($(document).height())}.bind(this),{lMaxWidth:800})},setClickEventsMobileMenu:function(){$(this.sMenuContainer).select('nav.mainmenu ul.menu li ul').each(function(lCount,o){var oBtn=$(o).prev('a');var oLi=$(o).parents('li');var oDiv=$(o);if(oDiv.select('li').length>1){if(!oBtn)return;oLi.store('onmouseover',oLi.attr('onmouseover'));oLi.store('onmouseout',oLi.attr('onmouseout'));oLi.removeAttr('onmouseover');oLi.removeAttr('onmouseout');if(oBtn.retrieve('sHref')==undefined){oBtn.store('sHref',oBtn.attr('href'))}if(oBtn.retrieve('sText')==undefined){oBtn.store('sText',oBtn.html())}if(oDiv.select('li.lplink')[0]==undefined&&!oDiv.closest('ul.menu').hasClass('mobiletopmenu')){oBtn.writeAttribute('href','javascript:void(0);');oDiv.insert({top:$('<li></li>').attr({'class':'lplink'})});oDiv.down('li.lplink').insert({top:$('<a></a>').attr({href:oBtn.retrieve('sHref')}).update(oBtn.retrieve('sText'))})}oBtn.store('href',oLi.attr('href'));oBtn.writeAttribute('href','javascript:void(0);');oBtn.click($.proxy(function(){if(this.oLastSubMenuOpen!=undefined&&this.oLastSubMenuOpen!=oDiv){oDiv.removeClass('open');this.oLastSubMenuOpen.hide()}if(oDiv.hasClass('open')){oDiv.removeClass('open');oDiv.hide();this.oLastSubMenuOpen=undefined}else{oDiv.addClass('open');oDiv.show();this.oLastSubMenuOpen=oDiv}},this))}}.bind(this))},resetClickEventsMobileMenu:function(){$(this.sMenuContainer).select('nav.mainmenu ul.menu li ul').each(function(lCount,o){var oBtn=$(o).prev('a');var oLi=$(o).parents('li');if(!oBtn)return;$(o).hide();if(oBtn.retrieve('sHref')!=undefined){oBtn.writeAttribute({'href':oBtn.retrieve('sHref')})}oBtn.unbind('click')}.bind(this))}};function BreadcrumbT1DrawIcons(sElementID,sCSSSelector,lIconWidth,lIconHeight,sAlternativeIconPath){if($("#"+sElementID).size()>0){var sIconPath='M10.129,22.186 16.316,15.999 10.129,9.812 13.665,6.276 23.389,15.999 13.665,25.725z';if(sAlternativeIconPath!=''){sIconPath=sAlternativeIconPath}var sColor="#000000";$("#"+sElementID).select(sCSSSelector).each(function(i,oElement){sColor=$(oElement).css('color');if(Raphael.vml){var oBreadcrumbV1Icon=new Raphael(oElement,$(oElement).width(),$(oElement).height())}else{var oBreadcrumbV1Icon=new Raphael(oElement,'100%','100%')}oBreadcrumbV1Icon.setViewBox(0,0,lIconWidth,lIconHeight,true);oBreadcrumbV1Icon.path(sIconPath).attr({fill:sColor,stroke:'none'})})}}var oFotoGalleryT1={oMasonry:undefined,oLastActive:undefined,lPageNumber:1,lLabelID:'',lTimer:null,oIcons:{loadmore:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,16,16,true)},types:[{type:'path',path:'M 4,7 4,9 7,9 7,12 9,12 9,9 12,9 12,7 9,7 9,4 7,4 7,7 z m 4,9 C 3.5817218,16 0,12.41828 0,8 0,3.58172 3.5817218,0 8,0 c 4.418278,0 8,3.58172 8,8 0,4.41828 -3.581722,8 -8,8 z m 0,0',fill:'#d2aa57',stroke:'none'}]},searchicon:{setViewBox:function(oPaper){oPaper.setViewBox(0,0,48,48,true)},types:[{type:'path',path:'m 29.236001,19.778 c 0,5.067213 -4.107787,9.175 -9.175,9.175 -5.067213,0 -9.175,-4.107787 -9.175,-9.175 0,-5.067213 4.107787,-9.175 9.175,-9.175 5.067213,0 9.175,4.107787 9.175,9.175 z',fill:'none',stroke:'#000000'},{type:'path',path:'m 26.636,19.688999 c 0,3.615256 -2.930744,6.546 -6.546,6.546 -3.615256,0 -6.546,-2.930744 -6.546,-6.546 0,-3.615256 2.930744,-6.546 6.546,-6.546 3.615256,0 6.546,2.930744 6.546,6.546 z',fill:'none',stroke:'#000000'},{type:'path',path:'m 27.956,24.45 7.415,7.431 c 0.777,0.779 0.777,2.054 0.002,2.833 l -0.391,0.391 c -0.775,0.779 -2.048,0.78 -2.826,0.003 l -7.442,-7.436',fill:'none',stroke:'#000000'},{type:'path',path:'m 31.896999,34.43 2.733002,-2.732999',fill:'none',stroke:'#000000'},{type:'path',path:'m 30.146,32.748001 2.733002,-2.732',fill:'none',stroke:'#000000'},{type:'path',path:'m 19.732,14.854 0.056,1.222 -0.088,0.004 c -2.044,0.092 -3.623,1.829 -3.532,3.863 l 0.002,0.039 -1.095,0.049 c -0.012,-0.029 -0.014,-0.067 -0.016,-0.098 -0.059,-1.34 0.435,-2.577 1.275,-3.498 0.841,-0.919 2.028,-1.521 3.368,-1.581 l 0.03,0 z',fill:'#000000',stroke:'none'}]}},init:function(element,options){this.options=$.extend({oAjaxParams:{},sAjaxShared:'',sFilterFormName:'',oNextbox:'',sModuleIdPrefix:'',lPageSize:999999},options||{});this.oAjaxBox=$('<div></div>');$(this.oAjaxBox).bind(this.options.sModuleIdPrefix+':imgLoaded',$.proxy(function(){$('#'+this.options.sModuleIdPrefix+'listloading').hide();this.oAjaxBox.find('.element').each($.proxy(function(i,o){this.element.append($(o));this.oMasonry.appended(o)},this));this.checkImageLoaded(this.element.find('img'))},this));$(document).ready($.proxy(function(){this.element=$("#"+element);this.options.oNextbox=$("#"+this.options.oNextbox);if(this.element.find('article.element').length&&this.oMasonry==undefined){this.oMasonry=new Masonry(this.element[0],{columnWidth:'.grid-sizer',gutter:'.gutter-sizer',itemSelector:'.element'})}$(this.element).bind(this.options.sModuleIdPrefix+':imgLoaded',$.proxy(function(){$('#'+this.options.sModuleIdPrefix+'listloading').hide();if(this.oMasonry!=undefined){this.oMasonry.reloadItems();this.oMasonry.layout()}},this));this.checkImageLoaded(this.element.find('img'))},this))},checkImageLoaded:function(aImages){var bImageLoaded=true;$.each(aImages,function(i,oImg){bImageLoaded=bImageLoaded&&oImg.complete});if(bImageLoaded){this.element.trigger(this.options.sModuleIdPrefix+':imgLoaded')}else{window.setTimeout($.proxy(function(){this.checkImageLoaded(aImages)},this),100)}}};