
/****************************** /home/escapio/src/release-2.14.72/public/js/drag.js ******************************/
function Drag(a,b){this.object=a;this.object.is_dragging=false;this.trigger=b;this.trigger.onmousedown=this.startDrag.bind(this);this.trigger.style.cursor="move";this.is_is_dragging=false;this.start_mouse_x=0;this.start_mouse_y=0;this.disabled_handlers=new Array()}Drag.prototype.startDrag=function(a){this.toggleHandlers("disable");a=this.fixEvent(a);this.start_mouse_x=parseInt(Event.pointerX(a));this.start_mouse_y=parseInt(Event.pointerY(a));this.is_dragging=true;this.mousemove_func=this.drag.bind(this);this.mouseup_func=this.stopDrag.bind(this);Event.observe(document,"mousemove",this.mousemove_func);Event.observe(document,"mouseup",this.mouseup_func)};Drag.prototype.disableHandler=function(c,a,d,b){this.disabled_handlers.push({observed:b,callback:d,object:a,handler:c})};Drag.prototype.toggleHandlers=function(state){for(var i=0;i<this.disabled_handlers.length;i++){if(this.disabled_handlers[i].observed){if(state=="disable"){Event.stopObserving(this.disabled_handlers[i].object,this.disabled_handlers[i].handler,this.disabled_handlers[i].callback)}else{Event.observe(this.disabled_handlers[i].object,this.disabled_handlers[i].handler,this.disabled_handlers[i].callback)}}else{if(state=="disable"){eval(this.disabled_handlers[key][i].object+"."+this.disabled_handlers[i].object+"= null;")}else{eval(this.disabled_handlers[key][i].object+"."+this.disabled_handlers[i].object+"="+this.disabled_handlers[key][i].callback)}}}};Drag.prototype.stopDrag=function(){Event.stopObserving(document,"mousemove",this.mousemove_func);Event.stopObserving(document,"mouseup",this.mouseup_func);this.toggleHandlers("enable");this.object.is_dragging=false};Drag.prototype.drag=function(c){if(this.is_dragging){c=this.fixEvent(c);var e=parseInt(Event.pointerX(c))-parseInt(this.start_mouse_x);var d=parseInt(Event.pointerY(c))-parseInt(this.start_mouse_y);var b=parseInt(this.object.getStyle("left"))+e;var a=parseInt(this.object.getStyle("top"))+d;this.object.setStyle({left:b+"px",top:a+"px"});this.start_mouse_x=parseInt(Event.pointerX(c));this.start_mouse_y=parseInt(Event.pointerY(c))}return false};Drag.prototype.fixEvent=function(a){if(a==undefined){a=window.event}return a};
/****************************** /home/escapio/src/release-2.14.72/public/js/components/LayerWindow.js ******************************/
var _escGlobalLayerWindowStack=new Object();ESC.LayerWindow=Class.create({_options:null,_domElements:{window:null,title:null,closer:null,content:null,loader:null,shadows:{topLeft:null,topRight:null,bottomRight:null,bottomLeft:null,top:null,bottom:null,left:null,right:null}},_shader:null,_id:null,_title:null,_content:null,_drag:null,_documentClickHandler:null,_doNotHideMe:true,initialize:function(b,d,a,c){this._id=b;this._title=d;this._content=a;this._options=this._setOptions(c);this._documentClickHandler=this._documentClickHandlerCallback.bind(this);this._drag=null;this._dontHideMe=true;this._shader=null;this._domElements={window:null,title:null,closer:null,content:null,loader:null,shadows:{topLeft:null,topRight:null,bottomRight:null,bottomLeft:null,top:null,bottom:null,left:null,right:null}};this._render();this._applyListeners();this._initWindow();setTimeout(function(){this._doNotHideMe=false}.bind(this),10);_escGlobalLayerWindowStack[this._id]=this},show:function(){this._domElements.window.style.display="block";if(this._shader&&this._options.backgroundShader===true){this._shader.show()}return this},hide:function(){this._domElements.window.style.display="none";if(this._shader&&this._options.backgroundShader===true){this._shader.hide()}return this},toggle:function(){if(this.isVisible()){this.hide()}else{this.show()}},isVisible:function(){return(this._domElements.window.style.display=="block")},setTitle:function(a){this._domElements.title.innerHTML=a;return this},setContent:function(a){if(typeof(a)=="object"){this._domElements.content.innerHTML="";this._domElements.content.appendChild(a);this._initWindow()}else{if(typeof(a)=="string"&&a.search(/uri:/)!=-1){url=a.replace(/uri:/,"");this._loadContent(url)}else{this._domElements.content.innerHTML=a;this._initWindow()}}return this},showLoader:function(){this._domElements.loader.style.display="block";return this},hideLoader:function(){this._domElements.loader.style.display="none";return this},destroy:function(){if(this._options&&this._options.onDestroy&&typeof(this._options.onDestroy)=="function"){this._options.onDestroy();return}this.remove()},remove:function(){Element.remove(this._domElements.window);this._domElements=null;if(this._drag!=null){delete (this._drag)}if(this._options.autohide){Event.stopObserving(document,"click",this._documentClickHandler)}if(this._shader){this._shader.remove();delete (this._shader);this._shader=null}delete _escGlobalLayerWindowStack[this._id];_escGlobalLayerWindowStack[this._id]=null},getWindowDOMElement:function(){return this._domElements.window},getContentDOMElement:function(){return this._domElements.content},reloadAjaxContent:function(){this.showLoader();var a=this._content.replace(/uri:/,"");this._loadContent(a)},_initWindow:function(){this._updateWindowSize();this._updateWindowPosition()},_updateWindowSize:function(){var g=$(this._domElements.window);windowDimensions=g.getDimensions();if(this._options.autoresize&&document.viewport.getHeight()<windowDimensions.height){var k=this._domElements.content.getDimensions();var c=(windowDimensions.height-k.height)+1;c+=28;this._domElements.content.style.height=(document.viewport.getHeight()-c)+"px";this._domElements.content.style.overflow="auto"}else{if(this._options.autoresize&&this._options.height){this._domElements.content.style.height=this._options.height}}if(windowDimensions.width>(this._domElements.dragBar.getWidth()+16)){this._domElements.dragBar.style.width=(windowDimensions.width-34)+"px"}var k=this._domElements.content.getDimensions();this._domElements.loader.style.width=k.width+"px";this._domElements.loader.style.height=k.height+"px";if(this._options.shadow){if(ESC.clientBrowser.name=="ie"&&ESC.clientBrowser.version<=6){this._domElements.shadows.bottom.style.top=(windowDimensions.height-5)+"px";this._domElements.shadows.bottomLeft.style.top=(windowDimensions.height-5)+"px";this._domElements.shadows.bottomRight.style.top=(windowDimensions.height-5)+"px"}var j=Position.positionedOffset(this._domElements.shadows.topLeft);var a=Position.positionedOffset(this._domElements.shadows.topRight);var b=Position.positionedOffset(this._domElements.shadows.bottom);var e=$(this._domElements.shadows.topLeft).getDimensions();var f=e.width;var d=e.height;var i=a[0]-(j[0]+f);var h=b[1]-(j[1]+d);this._domElements.shadows.top.style.width=i+"px";this._domElements.shadows.bottom.style.width=i+"px";this._domElements.shadows.left.style.height=h+"px";this._domElements.shadows.right.style.height=h+"px"}delete (windowDimensions);delete (k);windowDimensions=null;k=null},_updateWindowPosition:function(){if(this._options.top&&this._options.left){this._domElements.window.style.top=this._options.top;this._domElements.window.style.left=this._options.left}else{var c=document.viewport.getDimensions();var a=document.viewport.getScrollOffsets();var e=$(this._domElements.window).getDimensions();var b=Math.round((c.width-e.width)/2);var d=Math.round((c.height-e.height)/2)+a[1];if(b<0){b=0}if(d<0){d=0}if(d<a[1]){d=a[1]}this._domElements.window.style.left=b+"px";this._domElements.window.style.top=d+"px"}},_setOptions:function(a){if(!a){a=new Object}if(a.shadow===undefined){a.shadow=true}if(a.autohide===undefined){a.autohide=true}if(a.scroll===undefined){a.scroll=false}if(a.draggable===undefined){a.draggable=true}if(a.closable===undefined){a.closable=true}if(a.backgroundShader===undefined){a.backgroundShader=false}if(a.autoresize===undefined){a.autoresize=true}return a},_render:function(){var b=document.createElement("div");b.className="layer-window";if(this._options.simple){b.className+=" layer-window-simple"}b.id=this._id;if(this._options.insertInto!==undefined){var a=document.getElementById(this._options.insertInto);if(a){a.appendChild(b)}}else{document.body.insertBefore(b,ESC.getFrameElement())}this._renderHead(b);this._renderBody(b);this._renderFoot(b);this._domElements.window=b;this._applySizes();if(this._options.shadow===true){this._renderShadow()}if(this._options.backgroundShader===true){this._shader=new ESC.BgShader()}},_renderHead:function(e){var c=document.createElement("div");c.className="layer-window-head";var b=document.createElement("div");b.className="layer-window-head-right";var a=document.createElement("div");a.className="layer-window-head-center";var d=document.createElement("button");d.className="layer-window-title";var f=document.createElement("span");f.innerHTML=this._title;if(this._options.closable===true){var g=document.createElement("button");g.className="layer-window-closer";g.innerHTML="&nbsp;"}e.appendChild(c);c.appendChild(b);b.appendChild(a);a.appendChild(d);if(this._options.closable===true){a.appendChild(g)}d.appendChild(f);this._domElements.title=f;this._domElements.closer=g;this._domElements.dragBar=$(d)},_renderBody:function(d){var b=document.createElement("div");b.className="layer-window-body";var a=document.createElement("div");a.className="layer-window-loader";a.style.display="none";a.innerHTML="&nbsp;";var c=document.createElement("div");c.className="layer-window-content";c.id=this._id+"-content";if(this._options.scroll){c.style.overflow="auto"}d.appendChild(b);b.appendChild(a);b.appendChild(c);if(typeof(this._content)=="object"){c.appendChild(this._content)}else{if(typeof(this._content)=="string"&&this._content.search(/uri:/)!=-1){var f=document.createElement("div");f.className="margin-10 align-c";var e=document.createElement("img");e.src="/public/img/spinner2.gif";c.appendChild(f);f.appendChild(e);url=this._content.replace(/uri:/,"");this._loadContent(url)}else{c.innerHTML=this._content}}this._domElements.content=$(c);this._domElements.loader=a},_renderFoot:function(d){var c=document.createElement("div");c.className="layer-window-bottom";var b=document.createElement("div");b.className="layer-window-bottom-right";var a=document.createElement("div");a.className="layer-window-bottom-center";a.innerHTML="&nbsp;";d.appendChild(c);c.appendChild(b);b.appendChild(a)},_renderShadow:function(){var f=document.createElement("div");f.className="layer-window-shadow-top-left";f.innerHTML="&nbsp;";var e=document.createElement("div");e.className="layer-window-shadow-top-right";e.innerHTML="&nbsp;";var d=document.createElement("div");d.className="layer-window-shadow-bottom-right";d.innerHTML="&nbsp;";var b=document.createElement("div");b.className="layer-window-shadow-bottom-left";b.innerHTML="&nbsp;";var h=document.createElement("div");h.className="layer-window-shadow-top";h.innerHTML="&nbsp;";var a=document.createElement("div");a.className="layer-window-shadow-bottom";a.innerHTML="&nbsp;";var g=document.createElement("div");g.className="layer-window-shadow-left";g.innerHTML="&nbsp;";var c=document.createElement("div");c.className="layer-window-shadow-right";c.innerHTML="&nbsp;";this._domElements.window.appendChild(f);this._domElements.window.appendChild(h);this._domElements.window.appendChild(e);this._domElements.window.appendChild(c);this._domElements.window.appendChild(d);this._domElements.window.appendChild(a);this._domElements.window.appendChild(b);this._domElements.window.appendChild(g);this._domElements.shadows.topLeft=f;this._domElements.shadows.topRight=e;this._domElements.shadows.bottomRight=d;this._domElements.shadows.bottomLeft=b;this._domElements.shadows.top=h;this._domElements.shadows.bottom=a;this._domElements.shadows.left=g;this._domElements.shadows.right=c;if(ESC.clientBrowser.name=="ie"&&ESC.clientBrowser.version<=6){this._fixIE6Shadows()}},_fixIE6Shadows:function(){var a="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale', src='";a+="/public/img/portal/layer-window-shadow-";this._domElements.shadows.topLeft.style.background="none";this._domElements.shadows.topLeft.style.top="-11px";this._domElements.shadows.topLeft.style.filter=a+"top-left.png')";this._domElements.shadows.topRight.style.background="none";this._domElements.shadows.topRight.style.top="-11px";this._domElements.shadows.topRight.style.filter=a+"top-right.png')";this._domElements.shadows.bottomRight.style.background="none";this._domElements.shadows.bottomRight.style.bottom="-12px";this._domElements.shadows.bottomRight.style.filter=a+"bottom-right.png')";this._domElements.shadows.bottomLeft.style.background="none";this._domElements.shadows.bottomLeft.style.bottom="-12px";this._domElements.shadows.bottomLeft.style.filter=a+"bottom-left.png')";this._domElements.shadows.top.style.background="none";this._domElements.shadows.top.style.top="-11px";this._domElements.shadows.top.style.filter=a+"top.png')";this._domElements.shadows.bottom.style.background="none";this._domElements.shadows.bottom.style.bottom="-12px";this._domElements.shadows.bottom.style.filter=a+"bottom.png')";this._domElements.shadows.left.style.background="none";this._domElements.shadows.left.style.top="5px";this._domElements.shadows.left.style.filter=a+"left.png')";this._domElements.shadows.right.style.background="none";this._domElements.shadows.right.style.top="5px";this._domElements.shadows.right.style.filter=a+"right.png')"},_applySizes:function(){if(this._options.width){this._domElements.content.style.width=this._options.width;if(this._options.width.search(/%/)>0){var c="%";var b=parseInt(this._options.width.replace(/%/,""))}else{var c="px";var b=parseInt(this._options.width.replace(/px/,""))}var a=(this._options.simple===true)?(b+12):(b+28);this._domElements.window.style.width=a+c}if(this._options.height){this._domElements.content.style.height=this._options.height}},_applyListeners:function(){if(this._options.closable===true){Event.observe(this._domElements.closer,"click",function(a){this.destroy()}.bind(this))}if(this._options.draggable){this._drag=new Drag(this._domElements.window,this._domElements.dragBar)}if(this._options.autohide){Event.observe(document,"click",this._documentClickHandler);Event.observe(this._domElements.window,"mouseover",function(){this._doNotHideMe=true}.bind(this));Event.observe(this._domElements.window,"mouseout",function(){this._doNotHideMe=false}.bind(this))}},_documentClickHandlerCallback:function(){if(!this._doNotHideMe){this.destroy()}},_loadContent:function(url){new Ajax.Request(url,{method:"get",onSuccess:function(response){this.hideLoader();var data=false;try{data=response.responseText.evalJSON()}catch(e){}var content="";if(data&&data.html){content=data.html}else{content=response.responseText}this._domElements.content.innerHTML=content;if(data&&data.js){try{eval(data.js)}catch(e){}}this._initWindow();if(typeof(this._options.onReady)=="function"){this._options.onReady(this)}}.bind(this)})}});
/****************************** /home/escapio/src/release-2.14.72/public/js/components/NewsletterLayerWindow.js ******************************/
ESC.NewsletterLayerWindow={_window:null,init:function(b){var a=window.location.search.toQueryParams();if(a.source&&a.source==="newsletter"){ESC.Cookie.set("newsletter-count","4",730);return}if(window.location.hash!==""){return}if(this.getCount()===3){this.renderWindow();if(typeof(_teaserVariant)==="undefined"||_teaserVariant!==2){this._window.setContent("uri:/ajax/newsletter")}else{this._window.setContent("uri:/ajax/newsletter?v=2")}}},getCount:function(){var a=ESC.Cookie.get("newsletter-count");if(!a){a=1}else{a++}ESC.Cookie.set("newsletter-count",a,730);return parseInt(a,10)},renderWindow:function(){this._window=new ESC.LayerWindow("newsletter-wnd","&nbsp;","&nbsp;",{width:"738px",simple:true,autohide:false,shadow:false,backgroundShader:true,autoresize:false,onReady:function(){$("i-email").focus()}});this._window._shader._domElement.setStyle({opacity:0.7})},send:function(){ESC.NewsletterLayerWindow._window.showLoader();$("newsletter-form").request({onComplete:ESC.NewsletterLayerWindow.handleResponse.bind(ESC.NewsletterLayerWindow)})},handleResponse:function(response){this._window.setContent(response.responseJSON.html);if(response.responseJSON&&response.responseJSON.js){try{eval(response.responseJSON.js)}catch(e){}}ESC.NewsletterLayerWindow._window.hideLoader()},dataProtectionPopup:function(){new ESC.LayerWindow("data-protection","&nbsp;","uri:/popup/datensicherheit",{width:"550px",height:"550px",scroll:true})}};if(window.location.protocol==="http:"){$(document).observe("dom:loaded",function(){ESC.NewsletterLayerWindow.init()})};
/****************************** /home/escapio/src/release-2.14.72/public/js/components/Calendar.js ******************************/
Date.prototype.savedDate=null;Date.prototype.addDays=function(a){this.setDate(this.getDate()+a);this.savedDate=this.getDate()};Date.prototype.addMonths=function(a){if(this.savedDate==null){this.savedDate=this.getDate()}this.setDate(1);this.setMonth(this.getMonth()+a);this.setDate(Math.min(this.savedDate,this.getMonthLength()))};Date.prototype.addYears=function(a){if(this.savedDate==null){this.savedDate=this.getDate()}this.setDate(1);this.setFullYear(this.getFullYear()+a);this.setDate(Math.min(this.savedDate,this.getMonthLength()))};Date.prototype.getMonthLength=function(){var b,c,a;b=new Date(Date.parse(this));a=b.getMonth();c=28;do{c++;b.setDate(c)}while(b.getMonth()==a);return c-1};Date.prototype.isWeekend=function(){return(this.getDay()==0||this.getDay()==6)?true:false};if(typeof(ESC.Locale)=="object"){Date.prototype.monthNames=new Array();Date.prototype.monthNamesAbbr=new Array();for(var i=1;i<=12;i++){Date.prototype.monthNames.push(ESC.Locale.translate("month_"+i));Date.prototype.monthNamesAbbr.push(ESC.Locale.translate("month_"+i).slice(0,3))}Date.prototype.dayNames=new Array();Date.prototype.dayNamesAbbr=new Array();for(var i=0;i<=6;i++){Date.prototype.dayNames.push(ESC.Locale.translate("day_"+i));Date.prototype.dayNamesAbbr.push(ESC.Locale.translate("day_s_"+i))}}else{Date.prototype.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.prototype.monthNamesAbbr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Date.prototype.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.prototype.dayNamesAbbr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}Date.prototype.getMonthName=function(a){return a?this.monthNamesAbbr[this.getMonth()]:this.monthNames[this.getMonth()]};Date.prototype.getDayName=function(a){return a?this.dayNamesAbbr[this.getDay()]:this.dayNames[this.getDay()]};Date.setMonthNames=function(){for(var a=0;a<arguments.length;a++){Date.prototype.monthNames[a]=arguments[a]}};Date.setMonthNamesAbbr=function(){for(var a=0;a<arguments.length;a++){Date.prototype.monthNamesAbbr[a]=arguments[a]}};Date.setDayNames=function(){for(var a=0;a<arguments.length;a++){Date.prototype.dayNames[a]=arguments[a]}};Date.setDayNamesAbbr=function(){for(var a=0;a<arguments.length;a++){Date.prototype.dayNamesAbbr[a]=arguments[a]}};Date.prototype.strftime=function(n){var a=this.getMonth();var k=this.getDate();var l=this.getFullYear();var o=this.getDay();var p=this.getHours();var c=this.getMinutes();var h=this.getSeconds();var b=(p>=12);var e=(b)?(p-12):p;if(e==0){e=12}var g={};g["%a"]=this.getDayName(true);g["%A"]=this.getDayName();g["%b"]=this.getMonthName(true);g["%B"]=this.getMonthName();g["%C"]=1+Math.floor(l/100);g["%d"]=k<10?"0"+k:k;g["%e"]=k;g["%H"]=p<10?"0"+p:p;g["%I"]=e<10?"0"+e:e;g["%m"]=a<9?("0"+(a+1)):(a+1);g["%M"]=c<10?"0"+c:c;g["%n"]="\n";g["%p"]=b>=12?"PM":"AM";g["%P"]=b>=12?"pm":"am";g["%S"]=h<10?"0"+h:h;g["%t"]="\t";g["%u"]=o+1;g["%w"]=o;g["%y"]=l.toString().substring(2,4);g["%Y"]=l;g["%%"]="%";return n.replace(/%./g,function(d){return g[d]||d})};Date.parseFormattedString=function(h,p){var k=new Date();var n=0;var c=-1;var g=0;var q=0;var e=0;var f=0;var o=h.split(/\W+/);var l=p.match(/%./g);for(i=0;i<o.length;++i){if(!o[i]){continue}switch(l[i]){case"%d":case"%e":g=parseInt(o[i],10);break;case"%m":c=parseInt(o[i],10)-1;break;case"%Y":case"%y":n=parseInt(o[i],10);(n<100)&&(n+=(n>29)?1900:2000);break;case"%b":case"%B":for(j=0;j<12;++j){if(k.monthNames[j].substr(0,o[i].length).toLowerCase()==o[i].toLowerCase()){c=j;break}}break;case"%M":e=parseInt(o[i],10);break;case"%S":f=parseInt(o[i],10);break;case"%H":case"%I":case"%k":case"%l":q=parseInt(o[i],10);break;case"%P":case"%p":if(/pm/i.test(o[i])&&q<12){q+=12}else{if(/am/i.test(o[i])&&q>=12){q-=12}}break}}if(isNaN(n)){n=k.getFullYear()}if(isNaN(c)){c=k.getMonth()}if(isNaN(g)){g=k.getDate()}if(isNaN(q)){q=k.getHours()}if(isNaN(e)){e=k.getMinutes()}if(isNaN(f)){f=k.getSeconds()}if(n!=0&&c!=-1&&g!=0){return new Date(n,c,g,q,e,f)}n=0;c=-1;g=0;for(i=0;i<o.length;++i){if(o[i].search(/[a-zA-Z]+/)!=-1){var r=-1;for(j=0;j<12;++j){if(k.monthNames[j].substr(0,o[i].length).toLowerCase()==o[i].toLowerCase()){r=j;break}}if(r!=-1){if(c!=-1){g=c+1}c=r}}else{if(parseInt(o[i],10)<=12&&c==-1){c=o[i]-1}else{if(parseInt(o[i],10)>31&&n==0){n=parseInt(o[i],10);(n<100)&&(n+=(n>29)?1900:2000)}else{if(g==0){g=o[i]}}}}}if(n==0){n=k.getFullYear()}if(c!=-1&&g!=0){return new Date(n,c,g,q,e,0)}return k};Calendar=function(a,b){this.input=$(a);if(!this.input){return false}if(b){this.handle=$(b)}this.input.setAttribute("autocomplete","off");this.input.parse=function(){return this.parseInput()}.bind(this);this.id="Calender_"+this.input.id;this.showOtherMonthDays=true;this.dateStart=null;this.dateEnd=null;this.date=new Date();this.nav=["<<","«","»",">>","x"];this.style=["","weekend","empty","selected","disabled"];this.isShown=false;this.isCreated=false;this.smooth=false;this.onChange=null;this.useMonthNameAbbr=true;this.listeners={};if(typeof(ESC.Locale)=="object"){this.weekStartDay=ESC.Locale.getFirstDayOfWeek();this.dateFormat=ESC.Locale.getDateFormat()}else{this.weekStartDay=0;this.dateFormat="%Y-%m-%d"}this.handle.onclick=this.toggle.bind(this);if(ESC.clientBrowser.name=="ie"&&ESC.clientBrowser.version>=6){this.handle.style.cursor="pointer"}this.document_mouseup=this.hide.bind(this,true)};Calendar.prototype.create=function(){if(this.isCreated){return}this.createCalendar();this.isCreated=true};Calendar.prototype.destroy=function(){if(!this.isCreated){return}$(this.calendar_div).remove()};Calendar.prototype.toggle=function(){this.isShown?this.hide():this.show()};Calendar.prototype.show=function(){if(this.input.tagName=="INPUT"){this.input.focus()}var a=Element.cumulativeOffset(this.input);this.calendar_div.style.left=a.left+"px";this.calendar_div.style.top=(a.top+this.input.getHeight()+4)+"px";Event.observe(document,"mouseup",this.document_mouseup);this.handle.onclick=null;if(!this.isCreated){this.create()}if(this.isShown){return}this.isShown=true;this.date=this.parseInput();this.updateCalendar();this.smooth?new Effect.Appear(this.id+"_calContainer"):Element.show(this.id+"_calContainer");this._callListenerCallbacks("show")};Calendar.prototype.hide=function(b){b=b==undefined?false:b;Event.stopObserving(document,"mouseup",this.document_mouseup);var c=this;var a=setTimeout(function(){c.handle.onclick=c.toggle.bind(c)},200);if(!this.isCreated){this.create()}if(!b){}this.smooth?new Effect.Fade(this.id+"_calContainer"):Element.hide(this.id+"_calContainer");this.isShown=false;this._callListenerCallbacks("hide")};Calendar.prototype.addListener=function(a,b){if(typeof(this.listeners[a])!="object"){this.listeners[a]=[]}this.listeners[a].push(b)};Calendar.prototype._callListenerCallbacks=function(b,a){if(typeof(this.listeners[b])!="object"||this.listeners[b].length==0){return}if(a==undefined){var a=new Array()}for(var c=0;c<this.listeners[b].length;c++){this.listeners[b][c].apply(null,a)}};Calendar.prototype.select=function(c,a){if(!this.isShown){return}var b=this.date.getMonth();this.date=new Date(Date.parse(a));this.updateCalendar();if(b==this.date.getMonth()){this.hide()}this._callListenerCallbacks("change",[this.date,this.date.getFullYear(),this.date.getMonth()+1,this.date.getDate(),this.date.getDay()]);if(this.onChange!=null){this.onChange(this.date,this.date.getFullYear(),this.date.getMonth()+1,this.date.getDate(),this.date.getDay())}};Calendar.prototype.nextMonth=function(){if(!this.isShown){return}this.date.addMonths(1);this.updateCalendar()};Calendar.prototype.previousMonth=function(){if(!this.isShown){return}this.date.addMonths(-1);this.updateCalendar()};Calendar.prototype.nextYear=function(){if(!this.isShown){return}this.date.addYears(1);this.updateCalendar()};Calendar.prototype.previousYear=function(){if(!this.isShown){return}this.date.addYears(-1);this.updateCalendar()};Calendar.prototype.toTodaysDate=function(){if(!this.isShown){return}this.date=new Date();this.updateCalendar()};Calendar.prototype.getValidDate=function(a){if(this.dateStart!=null&&a<this.dateStart){return new Date(Date.parse(this.dateStart.toString()))}if(this.dateEnd!=null&&a>this.dateEnd){return new Date(Date.parse(this.dateEnd.toString()))}return a};Calendar.prototype.isValidDate=function(a){if(this.dateStart!=null&&a<this.dateStart){return false}if(this.dateEnd!=null&&a>this.dateEnd){return false}return true};Calendar.prototype.setDate=function(b,c,a){this.date=new Date(b,(c!=undefined?c-1:0),(a!=undefined?a:1))};Calendar.prototype.setStartDate=function(b,c,a){this.dateStart=new Date(b,(c!=null?c-1:0),(a!=undefined?a:1))};Calendar.prototype.setEndDate=function(b,c,a){this.dateEnd=new Date(b,(c!=null?c-1:0),(a!=undefined?a:1))};Calendar.prototype.setDateFormat=function(a){this.dateFormat=a};Calendar.prototype.setWeekStartDay=function(a){a=a%7;if(this.weekStartDay==a){return}this.weekStartDay=a};Calendar.prototype.parseInput=function(){return Date.parseFormattedString((this.input.tagName=="INPUT"?this.input.value:this.input.firstChild.nodeValue),this.dateFormat)};Calendar.prototype.updateInput=function(){if(this.input.tagName=="INPUT"){this.input.value=this.date.strftime(this.dateFormat)}else{this.input.firstChild.nodeValue=this.date.strftime(this.dateFormat)}};Calendar.prototype.updateCalendarDayNames=function(){if(!this.isCreated){this.create()}var b=$(this.id+"_calTable").getElementsByTagName("thead")[0].rows[0];for(var a=0;a<b.cells.length;a++){b.cells[a].firstChild.nodeValue=this.date.dayNamesAbbr[(a+this.weekStartDay)%7]}};Calendar.prototype.updateCalendar=function(){var e,f;if(!this.isCreated){this.create()}this.date=this.getValidDate(this.date);this.updateInput();$(this.id+"_calMonthYear").firstChild.nodeValue=this.date.getMonthName(this.useMonthNameAbbr)+" "+this.date.getFullYear();var a=new Date(Date.parse(this.date));a.setDate(1);while(a.getDay()!=this.weekStartDay){a.addDays(-1)}var c=$(this.id+"_calTable");var g=c.getElementsByTagName("tbody")[0];for(var d=0;d<6;d++){e=g.rows[d];for(var b=0;b<e.cells.length;b++){cCol=e.cells[b];cCol=cCol.firstChild;cColValue=a.getDate();cColIsClickable=true;f="";if(a.getMonth()!=this.date.getMonth()){f=this.style[2];if(!this.showOtherMonthDays){cColValue="";cColIsClickable=false;cCol.style.cursor="default"}}else{f=(a.isWeekend())?this.style[1]:this.style[0];if(a.getDate()==this.date.getDate()){f+=" "+this.style[3]}}if(!this.isValidDate(a)){f+=" "+this.style[4];cColIsClickable=false}cCol.className=f;cCol.firstChild.firstChild.nodeValue=cColValue;if(cColIsClickable){cCol.onmouseup=this.select.bindAsEventListener(this,a.toString());cCol.style.cursor="pointer"}else{cCol.onclick=null;cCol.style.cursor="default"}a.addDays(1)}}};Calendar.prototype.createCalendar=function(){if(this.isCreated){return false}var r=document.createElement("div");r.id=this.id+"_calContainer";r.className="calendar";r.style.position="absolute";r.style.display="none";var s=this;var e=document.createElement("div");e.className="calendar-head";var l=document.createElement("div");l.className="calendar-head-margin";e.appendChild(l);var c=document.createElement("table");c.cellSpacing=0;c.cellPadding=0;c.border=0;c.className="calendar-head-table";var f=document.createElement("tbody");var q=document.createElement("tr");var h=document.createElement("td");h.appendChild(document.createTextNode(this.nav[1]));Event.observe(h,"mouseup",this.previousMonth.bind(this));Event.observe(h,"mouseover",function(){Event.stopObserving(document,"mouseup",s.document_mouseup)});Event.observe(h,"mouseout",function(){Event.observe(document,"mouseup",s.document_mouseup)});h.className="calendar-head-prevnext";q.appendChild(h);var g=document.createElement("td");g.colSpan=5;g.id=this.id+"_calMonthYear";g.appendChild(document.createTextNode(""));g.style.textAlign="center";q.appendChild(g);var d=document.createElement("td");d.appendChild(document.createTextNode(this.nav[2]));Event.observe(d,"mouseup",this.nextMonth.bind(this));Event.observe(d,"mouseover",function(){Event.stopObserving(document,"mouseup",s.document_mouseup)});Event.observe(d,"mouseout",function(){Event.observe(document,"mouseup",s.document_mouseup)});d.className="calendar-head-prevnext";q.appendChild(d);f.appendChild(q);var o=document.createElement("tr");o.setAttribute("class","calendar-weekdays");var k,b,m;for(var u=0;u<7;u++){m=document.createElement("td");m.appendChild(document.createTextNode(this.date.dayNamesAbbr[(u+this.weekStartDay)%7]));o.appendChild(m)}f.appendChild(o);c.appendChild(f);l.appendChild(c);r.appendChild(e);var p=document.createElement("div");p.className="calendar-body";var v=document.createElement("table");v.cellSpacing=0;v.cellPadding=0;v.border=0;v.id=this.id+"_calTable";p.appendChild(v);var a=document.createElement("tbody");v.appendChild(a);for(var u=0;u<6;u++){b=document.createElement("tr");for(var t=0;t<7;t++){var n=document.createElement("div");var w=document.createElement("div");var m=document.createElement("td");w.appendChild(document.createTextNode(""));n.appendChild(w);m.appendChild(n);b.appendChild(m)}m.className="calendar-no-border";a.appendChild(b)}r.appendChild(p);document.getElementsByTagName("body")[0].appendChild(r);this.calendar_div=r};
/****************************** /home/escapio/src/release-2.14.72/public/js/components/Cookie.js ******************************/
ESC.Cookie={get:function(b){if(document.cookie.length>0){var c=document.cookie.indexOf(b+"=");if(c!=-1){c=c+b.length+1;var a=document.cookie.indexOf(";",c);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(c,a))}}return""},set:function(b,c,a){var d=new Date();d.setDate(d.getDate()+a);document.cookie=b+"="+escape(c)+";path=/"+((a==null)?"":";expires="+d.toGMTString())}};
/****************************** /home/escapio/src/release-2.14.72/public/js/tpl/portal/partial/main-footer.js ******************************/
(function(){var a={showLoader:function(){$("newsletter-frm-spinner").show();$("newsletter-frm-body").hide();$("newsletter-frm-message").hide()},showForm:function(){$("newsletter-frm-body").show();$("newsletter-frm-spinner").hide();$("newsletter-frm-message").hide()},showMessage:function(e,c){var d=$("newsletter-frm-message");d.innerHTML="";var f=document.createElement("p");f.appendChild(document.createTextNode(ESC.Locale.translate(e)));d.appendChild(f);if(c){var b=document.createElement("a");b.href="#";b.appendChild(document.createTextNode(ESC.Locale.translate("newsletter_retry")));Event.observe(b,"click",function(g){a.showForm();Event.stop(g)});d.appendChild(b)}$("newsletter-frm-message").show();$("newsletter-frm-spinner").hide();$("newsletter-frm-body").hide()}};Event.observe(document,"dom:loaded",function(){new ESC.FieldHint("newsletter-frm-input",ESC.Locale.translate("email_hint"));$("newsletter-frm").observe("submit",function(b){a.showLoader();$("newsletter-frm").request({onComplete:function(c){var d=c.responseJSON;if("error" in d){a.showMessage(d.message,true)}else{a.showMessage("newsletter_success_message")}},onError:function(c){}});Event.stop(b);return false})})})();
/****************************** /home/escapio/src/release-2.14.72/public/js/rsh/rsh.js ******************************/
window.dhtmlHistory={isIE:false,isOpera:false,isSafari:false,isKonquerer:false,isGecko:false,isSupported:false,create:function(d){var g=this;var f=navigator.userAgent.toLowerCase();var a=navigator.platform.toLowerCase();var h=navigator.vendor||"";if(h==="KDE"){this.isKonqueror=true;this.isSupported=false}else{if(typeof window.opera!=="undefined"){this.isOpera=true;this.isSupported=true}else{if(typeof document.all!=="undefined"){this.isIE=true;this.isSupported=true}else{if(/\(KHTML, like Gecko\) Safari/i.test(f)){this.isSafari=true;this.isSupported=(a.indexOf("mac")>-1)}else{if((f.indexOf("gecko")!=-1)||(/\(KHTML, like Gecko\) Version\/(.+)Safari/i.test(f))){this.isGecko=true;this.isSupported=true}}}}}window.historyStorage.setup(d);if(this.isSafari){this.createSafari()}else{if(this.isOpera){this.createOpera()}}var b=this.getCurrentLocation();this.currentLocation=b;if(this.isIE){this.createIE(b)}var e=function(){g.firstLoad=null};this.addEventListener(window,"unload",e);if(this.isIE){this.ignoreLocationChange=true}else{if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.ignoreLocationChange=true;this.firstLoad=true;historyStorage.put(this.PAGELOADEDSTRING,true)}else{this.ignoreLocationChange=false;this.fireOnNewListener=true}}var c=function(){g.checkLocation()};setInterval(c,100)},initialize:function(){if(this.isIE){if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.fireOnNewListener=false;this.firstLoad=true;historyStorage.put(this.PAGELOADEDSTRING,true)}else{this.fireOnNewListener=true;this.firstLoad=false}}},addListener:function(a){this.listener.push(a);if(this.fireOnNewListener){this.fireHistoryEvent(this.currentLocation);this.fireOnNewListener=false}},addEventListener:function(c,b,a){if(c.addEventListener){c.addEventListener(b,a,false)}else{if(c.attachEvent){c.attachEvent("on"+b,function(){a(window.event)})}}},add:function(c,d){if(this.isSafari){c=this.removeHash(c);historyStorage.put(c,d);this.currentLocation=c;window.location.hash="#"+c;this.putSafariState(c)}else{var b=this;var a=function(){if(b.currentWaitTime>0){b.currentWaitTime=b.currentWaitTime-b.waitTime}c=b.removeHash(c);if(document.getElementById(c)&&b.debugMode){var f="Exception: History locations can not have the same value as _any_ IDs that might be in the document, due to a bug in IE; please ask the developer to choose a history location that does not match any HTML IDs in this document. The following ID is already taken and cannot be a location: "+c;throw new Error(f)}historyStorage.put(c,d);b.ignoreLocationChange=true;b.ieAtomicLocationChange=true;b.currentLocation=c;window.location.hash="#"+c;if(b.isIE){b.iframe.src="/public/js/rsh/blank.html?"+c}b.ieAtomicLocationChange=false};window.setTimeout(a,this.currentWaitTime);this.currentWaitTime=this.currentWaitTime+this.waitTime}},isFirstLoad:function(){return this.firstLoad},getVersion:function(){return"0.6"},getCurrentLocation:function(){var a=(this.isSafari?this.getSafariState():this.getCurrentHash());return a},getCurrentHash:function(){var b=window.location.href;var a=b.indexOf("#");return(a>=0?b.substr(a+1):"")},PAGELOADEDSTRING:"DhtmlHistory_pageLoaded",listener:[],waitTime:200,currentWaitTime:0,currentLocation:null,iframe:null,safariHistoryStartPoint:null,safariStack:null,safariLength:null,ignoreLocationChange:null,fireOnNewListener:null,firstLoad:null,ieAtomicLocationChange:null,createIE:function(a){this.waitTime=400;var b=(historyStorage.debugMode?"width: 800px;height:80px;border:1px solid black;":historyStorage.hideStyles);var d="rshHistoryFrame";var c='<iframe frameborder="0" id="'+d+'" style="'+b+'" src="/public/js/rsh/blank.html?'+a+'"></iframe>';document.write(c);this.iframe=document.getElementById(d)},createOpera:function(){this.waitTime=400;var a='<img src="javascript:location.href=\'javascript:dhtmlHistory.checkLocation();\';" style="'+historyStorage.hideStyles+'" />';document.write(a)},createSafari:function(){var e="rshSafariForm";var d="rshSafariStack";var c="rshSafariLength";var b=historyStorage.debugMode?historyStorage.showStyles:historyStorage.hideStyles;var a=(historyStorage.debugMode?"width:800px;height:20px;border:1px solid black;margin:0;padding:0;":historyStorage.hideStyles);var f='<form id="'+e+'" style="'+b+'"><input type="text" style="'+a+'" id="'+d+'" value="[]"/><input type="text" style="'+a+'" id="'+c+'" value=""/></form>';document.write(f);this.safariStack=document.getElementById(d);this.safariLength=document.getElementById(c);if(!historyStorage.hasKey(this.PAGELOADEDSTRING)){this.safariHistoryStartPoint=history.length;this.safariLength.value=this.safariHistoryStartPoint}else{this.safariHistoryStartPoint=this.safariLength.value}},getSafariStack:function(){var a=this.safariStack.value;return historyStorage.fromJSON(a)},getSafariState:function(){var a=this.getSafariStack();var b=a[history.length-this.safariHistoryStartPoint-1];return b},putSafariState:function(b){var a=this.getSafariStack();a[history.length-this.safariHistoryStartPoint]=b;this.safariStack.value=historyStorage.toJSON(a)},fireHistoryEvent:function(b){var c=historyStorage.get(b);for(var a=0;a<this.listener.length;a++){this.listener[a].call(null,b,c)}},checkLocation:function(){if(!this.isIE&&this.ignoreLocationChange){this.ignoreLocationChange=false;return}if(!this.isIE&&this.ieAtomicLocationChange){return}var a=this.getCurrentLocation();if(a==this.currentLocation){return}this.ieAtomicLocationChange=true;if(this.isIE&&this.getIframeHash()!=a){this.iframe.src="/public/js/rsh/blank.html?"+a}else{if(this.isIE){return}}this.currentLocation=a;this.ieAtomicLocationChange=false;this.fireHistoryEvent(a)},getIframeHash:function(){var b=this.iframe.contentWindow.document;var a=String(b.location.search);if(a.length==1&&a.charAt(0)=="?"){a=""}else{if(a.length>=2&&a.charAt(0)=="?"){a=a.substring(1)}}return a},removeHash:function(b){var a;if(b===null||b===undefined){a=null}else{if(b===""){a=""}else{if(b.length==1&&b.charAt(0)=="#"){a=""}else{if(b.length>1&&b.charAt(0)=="#"){a=b.substring(1)}else{a=b}}}}return a},iframeLoaded:function(a){if(this.ignoreLocationChange){this.ignoreLocationChange=false;return}var b=String(a.search);if(b.length==1&&b.charAt(0)=="?"){b=""}else{if(b.length>=2&&b.charAt(0)=="?"){b=b.substring(1)}}window.location.hash=b;this.fireHistoryEvent(b)}};window.historyStorage={setup:function(b){if(typeof b!=="undefined"){if(b.debugMode){this.debugMode=b.debugMode}if(b.toJSON){this.toJSON=b.toJSON}if(b.fromJSON){this.fromJSON=b.fromJSON}}var d="rshStorageForm";var f="rshStorageField";var a=this.debugMode?historyStorage.showStyles:historyStorage.hideStyles;var e=(historyStorage.debugMode?"width: 800px;height:80px;border:1px solid black;":historyStorage.hideStyles);var c='<form id="'+d+'" style="'+a+'"><textarea id="'+f+'" style="'+e+'"></textarea></form>';document.write(c);this.storageField=document.getElementById(f);if(typeof window.opera!=="undefined"){this.storageField.focus()}},put:function(a,b){this.assertValidKey(a);if(this.hasKey(a)){this.remove(a)}this.storageHash[a]=b;this.saveHashTable()},get:function(a){this.assertValidKey(a);this.loadHashTable();var b=this.storageHash[a];if(b===undefined){b=null}return b},remove:function(a){this.assertValidKey(a);this.loadHashTable();delete this.storageHash[a];this.saveHashTable()},reset:function(){this.storageField.value="";this.storageHash={}},hasKey:function(a){this.assertValidKey(a);this.loadHashTable();return(typeof this.storageHash[a]!=="undefined")},isValidKey:function(a){return(typeof a==="string")},showStyles:"border:0;margin:0;padding:0;",hideStyles:"left:-1000px;top:-1000px;width:1px;height:1px;border:0;position:absolute;",debugMode:false,storageHash:{},hashLoaded:false,storageField:null,assertValidKey:function(a){var b=this.isValidKey(a);if(!b&&this.debugMode){throw new Error("Please provide a valid key for window.historyStorage. Invalid key = "+a+".")}},loadHashTable:function(){if(!this.hashLoaded){var a=this.storageField.value;if(a!==""&&a!==null){this.storageHash=this.fromJSON(a);this.hashLoaded=true}}},saveHashTable:function(){this.loadHashTable();var a=this.toJSON(this.storageHash);try{this.storageField.value=a}catch(b){}},toJSON:function(a){return a.toJSONString()},fromJSON:function(a){return a.parseJSON()}};window.dhtmlHistory.create({toJSON:function(a){return Object.toJSON(a)},fromJSON:function(a){return a.evalJSON()}});
