var wbeOptions = {"showPricesInCalendar":"1","initialAdults":"1","showPromoCode":"1","multiProperty":true,"quickstarterBestPrice":false,"wbeContainer":false,"wbeBusiness":false,"wbeLayoutQuick":true,"wbeNewsletter":false,"wbeMobileRedirect":false,"paymentType":false,"showChannelPrices":false,"ignoreCalMinStay":false,"autoScrollToCart":false}; function loadJavascript(name, url){ var NewScript=document.createElement('script'); NewScript.src= url; var mainNode = document.getElementsByTagName('head')[0]; mainNode.appendChild(NewScript); NewScript.onload = function(){ if(name == "jQuery"){ wbe_jQuery = jQuery.noConflict(true); loadJavascript( 'xdr', 'https://res-online.ch/wbePlus/js/xdr.js'); loadJavascript( 'handlebars', 'https://res-online.ch/wbePlus/js/handlebars.js'); loadJavascript( 'vast', 'https://res-online.ch/wbePlus/js/jquery.popupoverlay.js'); loadJavascript( 'moment', 'https://res-online.ch/wbePlus/js/moment.min.js'); loadJavascript( 'slick', 'https://res-online.ch/wbePlus/js/slick.js'); loadJavascript( 'readmore', 'https://res-online.ch/wbePlus/js/readmore.js'); loadJavascript( 'objects', 'https://res-online.ch/wbePlus/js/Objects.js'); loadJavascript( 'jquery-ui', 'https://res-online.ch/wbePlus/js/jquery-ui.min.js'); loadJavascript( 'creditCardValidator', 'https://res-online.ch/wbePlus/js/jquery.creditCardValidator.js'); }else if(name == "moment"){ //Load main after moment is loaded loadJavascript( 'datepicker', 'https://res-online.ch/wbePlus//js/jquery.daterangepicker.js.php'); loadJavascript( 'hopa-wbe', 'https://res-online.ch/wbePlus//js/main.js'); } }; } function loadCSS(url, type){ if(typeof type == "undefined"){ type = 'text/css'; } var NewCSS=document.createElement('link'); NewCSS.src= url; NewCSS.rel = 'stylesheet'; NewCSS.type = type NewCSS.href = url; NewCSS.media = 'all'; var mainNode = document.getElementsByTagName('head')[0]; mainNode.appendChild(NewCSS); } if (typeof hopaVars == 'undefined') { hopaVars = new Object(); hopaVars.pluginURL = 'https://res-online.ch/wbePlus/'; hopaVars.hotelID = '2391'; hopaVars.username = 'WBEPlus'; hopaVars.password = 'x4JbfJjy'; hopaVars.domain = 'https://res-online.ch'; hopaVars.lang = ''; loadCSS( 'https://res-online.ch/wbePlus//min/css/static.css'); loadCSS( 'https://res-online.ch/wbePlus//WBEstyle.css.php?hotelID=2391'); loadCSS('https://res-online.ch/wbePlus//css/custom.css.php?hotelID=2391&version=wbePlus'); /** http://dev.vast.com/jquery-popup-overlay/ */ loadJavascript( 'jQuery', 'https://res-online.ch/wbePlus/js/jquery-1.12.3.min.js'); }