WGA=function(){function v(){if(!f)return 0;var t=/firefox\/(\d+)/g,n=t.exec(e);return n&&n.length&&n.length>1?Number(n[1]):0}function m(){if(r){var t=/msie (\d+)/g,n=t.exec(e);return n&&n.length&&n.length>1?Number(n[1]):0}if(s){var t=/rv:(\d+)/g,n=t.exec(e);return n&&n.length&&n.length>1?Number(n[1]):0}return 0}var e=navigator.userAgent.toLowerCase(),t=e.indexOf("safari")>-1,n=e.indexOf("webkit")>-1,r=e.indexOf("msie")>-1,i=e.indexOf("msie 7")>-1,s=e.indexOf("trident")>-1,o=e.indexOf("trident")>-1&&e.indexOf("rv:11")>-1,u=e.indexOf("trident")>-1&&e.indexOf("rv:12")>-1,a=!n&&e.indexOf("gecko")>-1,f=e.indexOf("firefox")>-1,l=e.indexOf("firefox/3")>-1,c=e.indexOf("firefox/4")>-1,h=e.indexOf("iphone")>-1,p=e.indexOf("ipad")>-1,d=e.indexOf("android")>-1;return{isSafari:t,isWebKit:n,isIE:r,isIE7:i,isIE11:o,isIE12:u,isTrident:s,IEVersion:m,isGecko:a,isFirefox:f,isFirefox3:l,isFirefox4:c,fireFoxVersion:v,isIPhone:h,isIPad:p,isAndroud:d,isMobile:h||p||d}}(),WGA.focus=function(e){try{e.focus();var t=e.value;t&&(e.value=null,e.value=t)}catch(n){}},WGA.contextpath=WGA.contextpath||"",WGA.responsive={breakpoints:{medium:0,large:0},getMediaWidth:function(){if(window.matchMedia)return window.matchMedia("(min-width:"+this.breakpoints.large+"px)").matches?"large":window.matchMedia("(min-width:"+this.breakpoints.medium+"px)").matches?"medium":"small";var e=window.innerWidth||$(window).width();return e<this.breakpoints.medium?"small":e<this.breakpoints.large?"medium":"large"}},WGA.util={showException:function(e,t){e+="\n",t.fileName&&(e+="file: "+t.fileName+"\n"),t.lineNumber&&(e+="line: "+t.lineNumber+"\n"),alert(e+"\n"+t.message)},showReloadMessage:function(e){var t="wga-reload-message",n=document.getElementById(t);if(!n){n=document.createElement("div"),n.id="wga-reload-message",n.style.padding="20px",n.style.position="fixed",n.style.left=n.style.right=n.style.top=0,n.style.backgroundColor="brown",n.style.color="white",n.style.boxShadow="0 0 10px black",n.style.zIndex=1e4;var r=document.createElement("button");r.appendChild(document.createTextNode("x")),r.style.float="right",r.style.color="#efefef",r.style.border="none",r.style.background="transparent",r.onclick=function(){document.getElementById(t).style.display="none"},n.appendChild(r);var i=document.createElement("span");n.appendChild(i);var s=document.createElement("button");s.style.margin="10px 0 0 0",s.appendChild(document.createTextNode(WGA.util.label({de:"Seite neu laden",en:"Reload Page"},"en"))),s.onclick=function(){top.location.reload()},n.appendChild(s);var o=document.createElement("button");o.style.margin="10px 0 0 10px",o.appendChild(document.createTextNode(WGA.util.label({de:"Schließen",en:"Close"},"en"))),o.onclick=function(){document.getElementById(t).style.display="none"},n.appendChild(o);var u=document.body.firstElementChild;u?document.body.insertBefore(n,u):document.body.appendChild(n),s.focus()}n.children[1].innerHTML=e+"<br>",n.style.display="block"}},WGA.util.getURLTypeFromClassName=function(e){var t=e.split(" ");for(var n=0;n<t.length;n++){var r=t[n].split("-");if(r[0]=="wga"&&r[1]=="urltype")return r[2]}return null},WGA.util.getLinkInfo=function(e){var t=e.getAttribute("linktype"),n=e.getAttribute("wgakey");if(!t){t=WGA.util.getURLTypeFromClassName(e.className)||"exturl";var r=WGA.util.decodeURI(e.href).split("/");if(t=="file"){var i=r.pop(),s=r.pop();n=s+"/"+i}else t=="exturl"?n=e.href:n=r.pop()}return n&&(n=n.split("?")[0],n=n.split("#")[0]),{type:t,key:n}},WGA.util.decodeURI=function(e){return decodeURI(e.replace(/\+/g," ").replace(/%2B/g,"+"))},WGA.util.makeScriptlets=function(e,t){function o(e){var t=self.location.hostname,n=self.location.port,r=self.location.protocol,o=e,u=i.split(".");u.pop(),u.push("\\d+");var a=new RegExp(u.join("\\.")+"/","gi");o=o.replace(a,"{%$key%}/");var f=n;return f&&f!=null&&f!=""&&(f=":"+f),a=new RegExp(r+"//"+t+f+WGA.contextpath+"/"+s,"gi"),o=o.replace(a,"../../../{%$db:dbkey%}"),a=new RegExp(WGA.contextpath+"/"+s,"gi"),o=o.replace(a,"../../../{%$db:dbkey%}"),a=new RegExp("/"+s.replace(/\./g,"\\.")+"/","gi"),o=o.replace(a,"/{%$db:dbkey%}/"),o}var t=t||{},n=t.document||window.document,r=t.contentinfo||WGA.contentinfo,i=r?r.contentkey:myContentKey,s=r?r.dbkey:myDbKey,u=n.createElement("div");u.innerHTML=e;var a=u.getElementsByTagName("a");for(var f=0;f<a.length;f++){var l=a.item(f),c=l.getAttribute("linktype");if(c){l.removeAttribute("linktype"),l.removeAttribute("wgakey");var h=l.className;h=h.replace(/wga-urltype-\w+ */,""),l.className=h+(h?" ":"")+"wga-urltype-"+c}else c=WGA.util.getLinkInfo(l).type;var p=WGA.util.decodeURI(l.href).split("/");switch(c){case"int":var d=p.pop();l.setAttribute("wga:href","{%!contenturl:"+d+"%}"),l.removeAttribute("href");break;case"intname":var v=p.pop();l.setAttribute("wga:href","{%!namedcontenturl:"+v+"%}"),l.removeAttribute("href");break;case"file":var m=p.pop(),g=p.pop();l.setAttribute("wga:href","{%!fileurl:"+g+","+m+"%}"),l.removeAttribute("href");break;case"intfile":var m=p.pop();l.setAttribute("wga:href","{%!fileurl:"+m+"%}"),l.removeAttribute("href")}}var y=u.getElementsByTagName("img");for(var f=0;f<y.length;f++){var b=y.item(f),w=WGA.util.getURLTypeFromClassName(b.className),p=WGA.util.decodeURI(b.src).split("/");switch(w){case"file":var m=p.pop(),g=p.pop();b.setAttribute("wga:src","{%!imgurl:"+g+","+m+"%}"),b.removeAttribute("src");break;case"intfile":var m=p.pop();b.setAttribute("wga:src","{%!imgurl:"+m+"%}"),b.removeAttribute("src");break;case null:b.setAttribute("wga:src",o(b.src)),b.removeAttribute("src")}}var e=u.innerHTML;return e=e.replace(/wga:href="([^"]*)"/g,'href="$1"'),e=e.replace(/wga:src="([^"]*)"/g,'src="$1"'),e},WGA.util.maskElement=function(e){function t(e){e.stopPropagation()}try{document.all?(e.style.width=e.offsetWidth,e.style.filter="alpha(opacity:20)",window.opera?(e.style.opacity=.2,e.addEventListener("click",t,!0),e.addEventListener("mouseover",t,!0)):e.setCapture(!0)):(e.style.opacity=.2,e.addEventListener&&(e.addEventListener("click",t,!0),e.addEventListener("mouseover",t,!0)))}catch(n){WGA.util.showException("mask-element",n)}},WGA.util.unmaskElement=function(e){},WGA.util.generateInterval=function(e,t){var n=(Math.pow(2,e)-1)*1e3;return n>t&&(n=t),Math.random()*n},WGA.util.label=function(e,t){if(navigator.languages){for(var n=0;n<navigator.languages.length;n++){var r=e[navigator.languages[n]];if(r)return r}for(var n=0;n<navigator.languages.length;n++){var i=navigator.languages[n],s=i.indexOf("-");if(s!=-1){var o=i.substring(0,s),r=e[o];if(r)return r}}}else if(navigator.language){var r=e[navigator.language];if(r)return r;var s=navigator.language.indexOf("-");if(s!=-1){var o=navigator.language.substring(0,s),r=e[o];if(r)return r}}return t?e[t]:null},WGA.onload=function(){var e=[];return{register:function(t){return e.push(t),t},reset:function(){e=[]},execute:function(){while(e.length>0)e.shift()();WGA.pageLoaded=!0}}}(),window.addEventListener?window.addEventListener("load",WGA.onload.execute,!0):window.attachEvent&&window.attachEvent("onload",WGA.onload.execute),WGA.b4submit=function(){var e={};return{register:function(t,n){return e[t]||(e[t]=[]),e[t].push(n),n},onsubmit:function(t){if(!t||t.id==""||!e[t.id])return!0;for(var n=0;n<e[t.id].length;n++){var r=e[t.id][n];if(!r(t))return!1}return!0},reset:function(t){e[t]=[]}}}(),WGA.parseActionLink=function(e){var t=e.split("/");for(var n=0;n<t.length;n++)t[n]=="##NULL##"&&(t[n]=null);switch(t.length){case 1:return{versionCompliance:null,formID:null,portletKey:null,actionLink:t[0]};case 2:return{versionCompliance:null,formID:t[0],portletKey:null,actionLink:t[1]};case 3:return{versionCompliance:null,formID:t[0],portletKey:t[1],actionLink:t[2]};case 4:return{versionCompliance:t[0],formID:t[1],portletKey:t[2],actionLink:t[3]};default:alert("Error calling Action. Invalid number of action link parts:  "+t.length)}},WGA.isVersionComplianceSupporting=function(e,t){if(!e)return!1;var n=e.split("."),r=parseInt(n[0]),i=parseInt(n[1]);return t=="encodeUrlParamsDefault"?r>6?!0:r==6&&i>=1?!0:!1:t=="keepUrlParamsDefault"?r>=6:!1},WGA.callAction=function(e,t){return t&&typeof t!="object"&&(t=undefined),WGA.action({action:e,params:t})},WGA.action=function(e){var t=WGA.parseActionLink(e.action),n=e.params!=undefined?e.params:{},r=[];t.portletKey&&(WGA.portlet.collectPortletStates(r,t.portletKey),e.portletEvent&&(e.portletEvent.index?n.$portletEvent=e.portletEvent.index:n.$portletEventName=e.portletEvent.name));var i=e.keepParams==undefined?WGA.isVersionComplianceSupporting(t.versionCompliance,"keepUrlParamsDefault"):e.keepParams,s=e.encodeParams==undefined?WGA.isVersionComplianceSupporting(t.versionCompliance,"encodeUrlParamsDefault"):e.encodeParams;if(t.portletKey&&!t.formID&&r.length>0){var o=document.createElement("form"),u=WGA.toQueryString([],i,s);o.setAttribute("action",location.pathname),o.setAttribute("method","POST"),o.setAttribute("accept-charset","UTF-8"),n.$action=t.actionLink,n.$portletStates=r.join("\n");for(var a in n)if(n.hasOwnProperty(a)){var f=document.createElement("input");f.setAttribute("type","hidden"),f.setAttribute("name",a),f.setAttribute("value",n[a]),o.appendChild(f)}document.body.appendChild(o),o.submit()}else if(t.formID==null){n.$action=t.actionLink;var l=location.pathname+"?"+WGA.toQueryString(n,i,s);location.replace(l)}else{var o=document.forms[t.formID];if(!o||!o.$formaction)return alert('Error while calling action. TMLForm "'+t.formID+'" not found.'),!1;o.$formaction.value=t.actionLink,r.length>0&&(o.$portletstates.value=r.join("\n"));var u=WGA.toQueryString(n,i,s);o.action=location.pathname+(u?"?"+u:""),WGA.b4submit.onsubmit(o)&&o.submit()}return!0},WGA.getQueryString=function(e){function r(e){try{return decodeURIComponent(e).replace(/\r\n|\r|\n/g,"\r\n")}catch(t){return""}}var t=e.location.search,n={};return t.length>1&&(t=t.substr(1),t.replace(/([^&]+)/g,function(e,t){var i=t,s=null,o=t.indexOf("=");o!=-1&&(i=t.substring(0,o),s=t.substring(o+1)),i=r(i),s!=null&&(s=r(s)),i.length>0&&(n[i]||(n[i]=[]),n[i].push(s))})),n},WGA.escapeQueryPart=function(e){return encodeURIComponent(e)},WGA.isObjectType=function(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},WGA.toQueryString=function(e,t,n,r){var i={};if(t==undefined||t==1){var s=WGA.getQueryString(window);for(var o in s)s[o]!=null?i[String(o)]=s[o]:i[String(o)]=null}for(var o in e)i[String(o)]=e[o];var u=[];for(var o in i){if(r&&r.hasOwnProperty(o))continue;var a=i[o];WGA.pushQueryParameter(o,a,u,n)}return u.join("&")},WGA.pushQueryParameter=function(e,t,n,r){if(t===undefined||t===null)r&&(e=WGA.escapeQueryPart(e)),n.push(e);else if(t instanceof Array)for(var i=0;i<t.length;i++)WGA.pushQueryParameter(e,t[i],n,r);else r&&(e=WGA.escapeQueryPart(e)),r&&(t=WGA.escapeQueryPart(t)),n.push(e+"="+t)},WGA.loadScript=function(e){if(e.id&&document.getElementById(e.id)){e.onload&&e.onload();return}var t=document.getElementsByTagName("head")[0],n=document.createElement("script");n.src=e.src,e.id&&(n.id=e.id),n.type="text/javascript",n.onload=e.onload,n.onreadystatechange=function(){this.readyState=="loaded"&&e.onload()},t.appendChild(n)},WGA.ajax={portletFormCallbacks:{},runningPortlets:{},hasRunningPortlets:function(){var e=(new Date).getTime();for(var t in this.runningPortlets){var n=this.runningPortlets[t].getTime();if(e-n>1e4){delete this.runningPortlets[t];continue}return!0}return!1}},WGA.ajax.b4post=function(){var e={};return{register:function(t,n){return e[t]||(e[t]=[]),e[t].push(n),n},execute:function(t){while(e[t]&&e[t].length>0)e[t].shift()()},reset:function(){e={}}}}(),WGA.ajax.buildClientCallbackInformation=function(e){return{callback:e.callback,params:e.params,keepParams:e.keepParams,encodeParams:e.encodeParams,portletEvent:e.portletEvent}},WGA.ajax.action=function(e){var t=WGA.parseActionLink(e.action);(e.id==undefined||e.id==null)&&t.portletKey!=null&&(e.id=t.portletKey);if(WGA.debug&&console&&console.log){var n="";t.actionLink.charAt(0)=="$"?n+="Executing AJAX default action '"+t.actionLink+"'":n+="Executing AJAX action",e.portletEvent&&(n+=" triggered by portlet event '"+e.portletEvent.name+"'"),n+=", portlet: "+e.id,t.formID&&(n+=", form: "+t.formID),console.log(n)}var r=document.getElementById("$ajaxContentDiv_"+e.id);if(!r)return!1;WGA.ajax.runningPortlets[e.id]=new Date;if(t.formID==null)WGA.ajax.post(e);else{WGA.ajax.portletFormCallbacks[e.id]=WGA.ajax.buildClientCallbackInformation(e);var i=document.getElementById(t.formID);if(!i||!i.$formaction)return delete WGA.ajax.runningPortlets[e.id],i?alert('TMLForm "'+t.formID+'" has no $formaction.'):alert('Error while calling action. TMLForm "'+t.formID+'" not found.'),!1;i.$formaction.value=e.action,i.$ajaxcallid.value=e.id,e.graydiv!=undefined?i.$ajaxgraydiv.value=e.graydiv:i.$ajaxgraydiv.value="#null#",e.mode?i.$ajaxmode.value=e.mode:i.$ajaxmode.value="#null";var s="$wga_ajaxIFrame_"+e.id,o=document.getElementById(s);o||(o=document.createElement("iframe"),o.id=s,o.name=s,document.body.appendChild(o),WGA.isIE&&(document.frames[s].name=s)),o.style.position="absolute",o.style.visibility="hidden",o.style.left=-1e4,o.style.top=-1e4,o.style.width=o.style.height=0,i.target=s,i.action=WGA.contextpath+"/ajaxform",WGA.b4submit.onsubmit(i)&&i.submit()}},WGA.ajax.formCallback=function(e){var t=WGA.ajax.portletFormCallbacks[e.id];delete WGA.ajax.portletFormCallbacks[e.id],e.callback=t.callback,e.params=t.params,e.keepParams=t.keepParams,e.encodeParams=t.encodeParams,e.portletEvent=t.portletEvent,WGA.ajax.post(e);var n="$wga_ajaxIFrame_"+e.id,r=document.getElementById(n);r&&document.body.removeChild(r)},WGA.ajax.callAction=function(e,t,n,r,i){WGA.ajax.action({action:e,id:t,graydiv:n,callback:r,params:i})},WGA.ajax.request=function(e,t,n,r,i){var s=!1;window.XMLHttpRequest?s=new XMLHttpRequest:window.ActiveXObject&&(s=new ActiveXObject("Microsoft.XMLHTTP"));if(!s)return alert("unable to get xmlHttpRqeuest Object");s.onreadystatechange=function(){if(s.readyState==4){if(typeof WGA=="undefined")return;r(s),delete s.onreadystatechange,s=null}};var e=e.toUpperCase();s.open(e,t,!0);if(i)for(h in i)s.setRequestHeader(h,i[h]);else e=="POST"&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded");s.send(n)},WGA.ajax.post=function(actionDef,customObj){var link=WGA.parseActionLink(actionDef.action);(actionDef.id==undefined||actionDef.id==null)&&link.portletKey!=null&&(actionDef.id=link.portletKey);var ajaxInfo=eval("$ajaxInfo_"+actionDef.id),strURL=location.pathname+"?$action="+link.actionLink;customObj&&(strURL=strURL+"&"+WGA.toQueryString(customObj,!1)),actionDef.mode!="norefresh"&&WGA.event.removeListeners(actionDef.id),WGA.ajax.b4post.execute(actionDef.id);var divTag=document.getElementById("$ajaxContentDiv_"+actionDef.id);if(divTag==null){delete WGA.ajax.runningPortlets[actionDef.id];return}actionDef.mode!="norefresh"&&(actionDef.graydiv==undefined||actionDef.graydiv)&&window.setTimeout(function(){WGA.util.maskElement(divTag)},250);var host=location.host,protocol=location.protocol,absoluteURL=protocol+"//"+host+strURL,urlParams=actionDef.params!=undefined?actionDef.params:{};urlParams.$ajaxInfo=ajaxInfo,actionDef.mode&&(urlParams.$ajaxMode=actionDef.mode),actionDef.tmlformSessionKey&&(urlParams.$ajaxformkey=actionDef.tmlformSessionKey),actionDef.portletEvent&&(actionDef.portletEvent.index?urlParams.$portletEvent=actionDef.portletEvent.index:urlParams.$portletEventName=actionDef.portletEvent.name,JSON&&(urlParams.$portletEventParams=JSON.stringify(actionDef.portletEvent.params)));var keepParams=actionDef.keepParams==undefined?WGA.isVersionComplianceSupporting(link.versionCompliance,"keepUrlParamsDefault"):actionDef.keepParams,encodeParams=actionDef.encodeParams==undefined?WGA.isVersionComplianceSupporting(link.versionCompliance,"encodeUrlParamsDefault"):actionDef.encodeParams,portletStates=[];WGA.portlet.collectPortletStates(portletStates,actionDef.id),portletStates.length>0&&(urlParams.$portletState=portletStates);var queryString=WGA.toQueryString({},keepParams,encodeParams,urlParams);queryString!=""&&(queryString="&"+queryString);var postData=WGA.toQueryString(urlParams,keepParams,encodeParams);WGA.ajax.request("POST",absoluteURL+queryString,postData,function(e){delete WGA.ajax.runningPortlets[actionDef.id],actionDef.mode=="norefresh"?WGA.ajax.callbackNoRefresh(e):actionDef.callback==undefined?WGA.ajax.replaceHTML(e.responseText,actionDef.id):(actionDef.callback(e),WGA.portlet.onload.execute(actionDef.id),WGA.event.fireEvents()),WGA.robotTest&&WGA.robotTest.idle()})},WGA.ajax.replaceHTML=function(e,t){var n=document.getElementById("$ajaxDiv_"+t);if(n==null)return;n.innerHTML="<div id='$ajaxContentDiv_"+t+'\'><span style="display:none">ajax</span>'+e+"</div>";var r="",i=n.getElementsByTagName("script");for(var s=0;s<i.length;s++){var o=i[s].innerHTML;r+="\ntry{"+o+"\n}catch(e){console && console.log('Script Error in AJAX content',e)}"}if(WGA.isIE)WGA.ajax.executeScriptElement(r),WGA.portlet.onload.execute(t),WGA.event.fireEvents();else{var i;do{i=n.getElementsByTagName("script");if(!i.length)break;var u=i[0];u.parentNode.removeChild(u)}while(!0);r+="\nWGA.portlet.onload.execute('"+t+"');",r+="\nWGA.event.fireEvents();",window.setTimeout(r,10)}},WGA.ajax.executeScriptElement=function(e){var t=document.createElement("script");document.getElementsByTagName("head")[0].appendChild(t),t.text=e,document.getElementsByTagName("head")[0].removeChild(t)},WGA.ajax.callbackNoRefresh=function(e){var t=e.responseText;t+="\nWGA.event.fireEvents();",WGA.isIE?WGA.ajax.executeScriptElement(t):window.setTimeout(t,10)},WGA.event=function(){var e=[],t={},n;return{init:function(){e=[],t={},n&&window.clearTimeout(n),n=null},dispatch:function(t){WGA.debug&&console&&console.log&&console.log("Dispatching portlet event '"+t.name+"' from source '"+t.source+"', params: "+JSON.stringify(t.params)),e.push(t)},fireEvent:function(e,t,n){WGA.event.dispatch({name:e,source:t||"WGA",params:n||{}}),WGA.event.fireEvents()},addListener:function(e,n,r){t[e]||(t[e]={}),t[e][n]||(t[e][n]=[]),t[e][n].push(r)},removeListeners:function(e){delete t[e],WGA.portlet.forEachChild(e,WGA.event.removeListeners)},fireEvents:function(){if(WGA.ajax.hasRunningPortlets()){n&&window.clearTimeout(n),n=window.setTimeout(WGA.event.fireEvents,1e3);return}while(e.length>0){var r=e.shift();for(var i in t)if(t[i][r.name]){var s=t[i][r.name];for(var o=0;o<s.length;o++)try{WGA.debug&&console&&console.log&&console.log("Executing portlet event '"+r.name+"' for portlet "+i),s[o](r)}catch(u){WGA.util.showException("Error in WGA event listener for event '"+r.name+"'",u)}}}}}}(),WGA.onload.register(WGA.event.fireEvents),WGA.portlet=function(){function a(e){var t=r[e];if(t)for(var n=0;n<t.length;n++){var i=t[n];i&&i.destroy&&i.destroy(e),delete i}delete r[e]}var e={},t={},n={},r={},i={},s=[],o="de.innovationgate.wga.portletstate.",u="de.innovationgate.wga.childportlets.";return{init:function(){e={},t={},n={},r={},i={},s=[]},onload:function(){var e={};return{register:function(t,n){return t==""?WGA.onload.register(n):(e[t]||(e[t]=[]),e[t].push(n),n)},execute:function(t){try{var n=e[t];while(n&&n.length>0)n.shift()(t);WGA.portlet.forEachChild(t,WGA.portlet.onload.execute)}catch(r){WGA.util.showException("portlet.onload exception",r)}},executeAll:function(){for(pkey in e)WGA.portlet.onload.execute(pkey)}}}(),getObjectReg:function(){return r},register:function(r){var i=r.portletKey;this.forEachChild(i,a),a(i),e[i]={};for(var s=0;s<r.parentKeys.length;s++){var o=r.parentKeys[s];e[o][i]=i}t[i]=r.parentKeys,n[i]=r.parentForm},registerState:function(e,n,r,s,a,f){var l=!1;if(s){var c=this.fetchState(e);c&&c.data!=n&&(l=!0,a=!0)}if(!l){stateObject=JSON.stringify({data:n,defaultState:f&&f==1});if(WGA.hasLocalStorage()){window.sessionStorage.setItem(o+e,stateObject);var h=t[e];if(h){var p=h[0];if(p){var d=[],v=window.sessionStorage.getItem(u+p);v&&(d=v.split(","));var m=!1;for(var g=0;g<d.length;g++){var y=d[g];if(y==e){m=!0;break}}m||d.push(e),window.sessionStorage.setItem(u+p,d.join(","))}}}else i[e]=stateObject}a&&this.registerPortletForReload(e,r)},fetchState:function(e){return WGA.hasLocalStorage()?JSON.parse(window.sessionStorage.getItem(o+e)):i[e]?JSON.parse(i[e]):null},disposeState:function(e){WGA.hasLocalStorage()?window.sessionStorage.removeItem(o+e):delete i[e]},collectPortletStates:function(e,n){var r=t[n];for(var i=0;r&&i<r.length;i++){var s=r[i],o=this.fetchState(s);o&&e.push(s+"//"+o.data)}this.descendCollectPortletStates(e,n,!0)},descendCollectPortletStates:function(e,t,n){var r=this.fetchState(t);r&&e.push(t+"//"+r.data);if(WGA.hasLocalStorage()){var i=window.sessionStorage.getItem(u+t),s=[];i&&(s=i.split(","));for(var o=0;o<s.length;o++)WGA.portlet.descendCollectPortletStates(e,s[o],!0)}else this.forEachChild(t,function(t){WGA.portlet.descendCollectPortletStates(e,t,!0)})},registerPortletForReload:function(e,t){WGA.pageLoaded?(s.push({key:e,processId:t,children:[]}),WGA.portlet.performPortletReloads()):(s.length==0&&WGA.onload.register(function(){WGA.portlet.performPortletReloads()}),s.push({key:e,processId:t,children:[]}))},performPortletReloads:function(){var e=[],r=[],i={};for(var o=0;o<s.length;o++)i[s[o].key]=o;for(var o=0;o<s.length;o++){var u=s[o],a=t[u.key],f=!1;if(a)for(var l=0;l<a.length;l++){var c=a[l],l=i[c];if(l){s[l].children.push(u),f=!0;break}}f||e.push(u)}s=[];for(var h=0;h<e.length;h++){var u=e[h],p=n[u.key];p||(p="##NULL##");var r=[];this.collectProcessIds(r,u),WGA.debug&&console&&console.log&&console.log("Automatic portlet reload, portlet key: "+u.key),WGA.ajax.action({action:p+"/"+u.key+"/$refresh",params:{$portletReloadOf:u.key,$reloadProcessContexts:r},keepParams:!0})}},collectProcessIds:function(e,t){e.push(t.processId);for(var n=0;n<t.children.length;n++)this.collectProcessIds(e,t.children[n])},generateUUID:function(){var e=(new Date).getTime(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t=="x"?n:n&7|8).toString(16)});return t},unregister:function(n){var r=t[n];for(var i=0;r&&i<r.length;i++){var s=r[i];e[s]&&e[s][n]&&delete e[s][n]}delete e[n],delete t[n]},forEachChild:function(t,n){var r=e[t];for(var i in r)n(r[i])},registerObject:function(e,t){return r[e]||(r[e]=[]),r[e].push(t),t},unregisterObject:function(e,t){if(!r[e])return;var n=r[e];for(var i=0;i<n.length;i++){var s=n[i];if(s==t){var o=n[i];return o.destroy&&o.destroy(e),delete o,!0}}return!1}}}(),WGA.onload.register(WGA.portlet.onload.executeAll),WGA.hasLocalStorage=function(){var e="test",t=window.sessionStorage;try{return t.setItem(e,"1"),t.removeItem(e),!0}catch(n){return!1}},WGA.websocket={WINDOWID:"de.innovationgate.wga.windowId",reconnectAttempts:1,reloadMessages:{de:'Die aktuelle Seite muss neu geladen werden da die Web-Sitzung auf dem Server abgelaufen ist.<br>Befinden sich ungesicherte Eingaben von ihnen auf dieser Webseite so werden sie diese eventuell nicht speichern können. Sichern sie diese also an einem anderen Ort um sie nicht zu verlieren.<br>Klicken sie danach auf "OK" um neu zu laden oder laden sie die Seite manuell neu über die Reload-Schaltfläche ihres Browsers.',en:'The current page needs to be reloaded because the web session on the server timed out.<br>If the current webpage contains unsaved input from you then it is likely that it cannot be submitted. You should instead store it at another place to avoid losing it.<br>Then click "OK" to reload or perform the reload manually using the reload button of your browser.'},backendLostMessages:{de:'Die Websocket Verbindung zum Server wurde verloren. Eventuell ist ihre Internet-Verbindung abgebrochen oder der Serverdienst hat ein Problem.<br>Befinden sich ungesicherte Eingaben von ihnen auf dieser Webseite so werden sie diese vermutlich nicht speichern können. Sichern sie diese also an einem anderen Ort um sie nicht zu verlieren.<br>Klicken sie danach auf "OK" um zu versuchen, eine neue Verbindung aufzubauen oder laden sie die Seite manuell neu über die Reload-Schaltfläche ihres Browsers.',en:'The Websocket connection to the server is gone. Maybe your internet connection is lost or the server service has problems.<br>If the current webpage contains unsaved input from you then it is very likely that it cannot be submitted. You should instead store it at another place to avoid losing it.<br>Then click "OK" to try to build a new connection or perform the reload manually using the reload button of your browser.'},messageListeners:[],callbacks:{},errorCallbacks:{},setup:function(e,t,n){this.url=e,this.pageId=t,this.sessionId=n},stopService:function(){this.socket&&this.socket.close()},startService:function(e){if(this.socket&&this.socket.readyState==WebSocket.OPEN){e&&e();return}if(!this.url)return console.log("No url configured to start servive");if(!WGA.hasLocalStorage())return!1;var t=window.sessionStorage.getItem(this.WINDOWID);t||(t=this.pageId,window.sessionStorage.setItem(this.WINDOWID,t)),this.windowId=t;var n={windowId:this.windowId,pageId:this.pageId,sessionId:this.sessionId},r=this.url+(this.url.indexOf("?")!=-1?"&":"?")+WGA.toQueryString(n);WGA.debug&&console.log("WebSocket start service",r);if("WebSocket"in window)WGA.debug&&console&&console.log&&console.log("Building socket connection, pageId: "+this.pageId),this.socket=new WebSocket(r);else{if(!("MozWebSocket"in window))return!1;WGA.debug&&console&&console.log&&console.log("Building mozilla compatible socket connection, pageId: "+this.pageId),this.socket=new MozWebSocket(r)}return this.socket.onopen=e,this.socket.onmessage=this.onMessage,this.socket.onclose=this.onClose,!0},onMessage:function(e){var t=JSON.parse(e.data);if(t.type=="firePortletEvent")WGA.debug&&console&&console.log&&console.log("Execute portlet event from websocket, pageId: "+WGA.websocket.pageId,e.data),WGA.event.fireEvent(t.event.name,"*",t.event.params);else if(t.type=="handshake")WGA.websocket.reconnectAttempts=1,WGA.debug&&console&&console.log&&console.log("Connected WebSocket, pageId: "+WGA.websocket.pageId);else if(t.type=="response"){WGA.debug&&console&&console.log&&console.log("Receiving response from websocket, pageId: "+WGA.websocket.pageId,e.data),t.status!="SUCCESS"&&WGA.debug&&console&&console.log&&console.log("WebSocket response returned with non-success status",JSON.stringify(t));if(!t.callId)return;var n;t.status=="SUCCESS"?n=WGA.websocket.callbacks[t.callId]:n=WGA.websocket.errorCallbacks[t.callId],delete WGA.websocket.callbacks[t.callId],delete WGA.websocket.errorCallbacks[t.callId],n&&typeof n=="function"&&(WGA.debug&&console&&console.log&&console.log("Executing callback for response: "+n),n(t))}else if(t.type=="custom")for(var r=0;r<WGA.websocket.messageListeners.length;r++)WGA.debug&&console&&console.log&&console.log("Execute custom message from websocket, pageId: "+WGA.websocket.pageId,e.data),WGA.websocket.messageListeners[r](t.data)},onClose:function(e){WGA.debug&&console&&console.log&&console.log("Socket connection closed, pageId: "+WGA.websocket.pageId,e,"event.code",e.code),WGA.websocket.socket.onmessage=null,WGA.websocket.socket.onopen=null,WGA.websocket.socket.onclose=null,this.socket=null;if(e.code<=1005)return;if(e.code==-9825)return;if(e.code==1008){WGA.debug&&console&&console.log&&console.log("Lost connection to WebSocket bc. of violated policy. Will need to reload page to restart WebSocket",e.reason);return}if(WGA.websocket.reconnectAttempts>=5){WGA.debug&&console&&console.log&&console.log("Lost connection to WebSocket. Reason code: "+e.code+", reason: '"+e.reason+"'. Cancelling service after 5 reconnect attempts.");return}var t=WGA.util.generateInterval(WGA.websocket.reconnectAttempts,5e3);WGA.debug&&console&&console.log&&console.log("Lost connection to WebSocket. Reason code: "+e.code+", reason: '"+e.reason+"'. Will try to reconnect in "+parseInt(t)+" milliseconds."),setTimeout(function(){WGA.websocket.reconnectAttempts=WGA.websocket.reconnectAttempts+1,WGA.debug&&console&&console.log&&console.log("Trying reconnect to WebSocket. Attempt: "+WGA.websocket.reconnectAttempts),WGA.websocket.startService()},t)},callGlobal:function(e,t,n){if(!e||!t)return;var r="pending",i=WGA.portlet.generateUUID(),s,o,u;WGA.websocket.callbacks[i]=function(e){r="success",u=e,s&&s(e)},WGA.websocket.errorCallbacks[i]=function(e){r="error",u=e,o&&o(e)};var a={type:"callGlobal",callId:i,global:e,method:t,params:n||{}};return WGA.websocket.socket.send(JSON.stringify(a)),{then:function(e,t){s=e,o=t,r=="success"?s(u):r=="error"&&o(u)}}},noSupport:function(){}},callAction=WGA.callAction,callAjaxAction=WGA.ajax.callAction,ajaxFormCallback=WGA.ajax.formCallback,WGA.event.register=WGA.event.addListener;var requirejs,require,define;!function(global,setTimeout){function commentReplace(e,t){return t||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var n;for(n=0;n<e.length&&(!e[n]||!t(e[n],n,e));n+=1);}}function eachReverse(e,t){if(e){var n;for(n=e.length-1;n>-1&&(!e[n]||!t(e[n],n,e));n-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,r){return t&&eachProp(t,function(t,s){!n&&hasProp(e,s)||(!r||"object"!=typeof t||!t||isArray(t)||isFunction(t)||t instanceof RegExp?e[s]=t:(e[s]||(e[s]={}),mixin(e[s],t,n,r)))}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,r){var i=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return i.requireType=e,i.requireModules=r,n&&(i.originalError=n),i}function newContext(e){function t(e){var t,n;for(t=0;t<e.length;t++)if(n=e[t],"."===n)e.splice(t,1),t-=1;else if(".."===n){if(0===t||1===t&&".."===e[2]||".."===e[t-1])continue;t>0&&(e.splice(t-1,2),t-=2)}}function n(e,n,r){var i,s,o,u,a,f,l,c,h,p,d,v,m=n&&n.split("/"),g=x.map,y=g&&g["*"];if(e&&(e=e.split("/"),l=e.length-1,x.nodeIdCompat&&jsSuffixRegExp.test(e[l])&&(e[l]=e[l].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&m&&(v=m.slice(0,m.length-1),e=v.concat(e)),t(e),e=e.join("/")),r&&g&&(m||y)){o=e.split("/");e:for(u=o.length;u>0;u-=1){if(f=o.slice(0,u).join("/"),m)for(a=m.length;a>0;a-=1)if(s=getOwn(g,m.slice(0,a).join("/")),s&&(s=getOwn(s,f))){c=s,h=u;break e}!p&&y&&getOwn(y,f)&&(p=getOwn(y,f),d=u)}!c&&p&&(c=p,h=d),c&&(o.splice(0,h,c),e=o.join("/"))}return i=getOwn(x.pkgs,e),i?i:e}function r(e){isBrowser&&each(scripts(),function(t){if(t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===w.contextName)return t.parentNode.removeChild(t),!0})}function i(e){var t=getOwn(x.paths,e);if(t&&isArray(t)&&t.length>1)return t.shift(),w.require.undef(e),w.makeRequire(null,{skipMap:!0})([e]),!0}function s(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function o(e,t,r,i){var o,u,a,f,l=null,c=t?t.name:null,h=e,p=!0,d="";return e||(p=!1,e="_@r"+(M+=1)),f=s(e),l=f[0],e=f[1],l&&(l=n(l,c,i),u=getOwn(L,l)),e&&(l?d=u&&u.normalize?u.normalize(e,function(e){return n(e,c,i)}):e.indexOf("!")===-1?n(e,c,i):e:(d=n(e,c,i),f=s(d),l=f[0],d=f[1],r=!0,o=w.nameToUrl(d))),a=!l||u||r?"":"_unnormalized"+(_+=1),{prefix:l,name:d,parentMap:t,unnormalized:!!a,url:o,originalName:h,isDefine:p,id:(l?l+"!"+d:d)+a}}function u(e){var t=e.id,n=getOwn(T,t);return n||(n=T[t]=new w.Module(e)),n}function a(e,t,n){var r=e.id,i=getOwn(T,r);!hasProp(L,r)||i&&!i.defineEmitComplete?(i=u(e),i.error&&"error"===t?n(i.error):i.on(t,n)):"defined"===t&&n(L[r])}function f(e,t){var n=e.requireModules,r=!1;t?t(e):(each(n,function(t){var n=getOwn(T,t);n&&(n.error=e,n.events.error&&(r=!0,n.emit("error",e)))}),r||req.onError(e))}function l(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(w.defQueueMap[t]=!0),k.push(e)}),globalDefQueue=[])}function c(e){delete T[e],delete N[e]}function h(e,t,n){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,each(e.depMaps,function(r,i){var s=r.id,o=getOwn(T,s);!o||e.depMatched[i]||n[s]||(getOwn(t,s)?(e.defineDep(i,L[s]),e.check()):h(o,t,n))}),n[r]=!0)}function p(){var e,t,n=1e3*x.waitSeconds,s=n&&w.startTime+n<(new Date).getTime(),o=[],u=[],a=!1,l=!0;if(!y){if(y=!0,eachProp(N,function(e){var n=e.map,f=n.id;if(e.enabled&&(n.isDefine||u.push(e),!e.error))if(!e.inited&&s)i(f)?(t=!0,a=!0):(o.push(f),r(f));else if(!e.inited&&e.fetched&&n.isDefine&&(a=!0,!n.prefix))return l=!1}),s&&o.length)return e=makeError("timeout","Load timeout for modules: "+o,null,o),e.contextName=w.contextName,f(e);l&&each(u,function(e){h(e,{},{})}),s&&!t||!a||!isBrowser&&!isWebWorker||S||(S=setTimeout(function(){S=0,p()},50)),y=!1}}function d(e){hasProp(L,e[0])||u(o(e[0],null,!0)).init(e[1],e[2])}function v(e,t,n,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(n,t,!1)}function m(e){var t=e.currentTarget||e.srcElement;return v(t,w.onScriptLoad,"load","onreadystatechange"),v(t,w.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function g(){var e;for(l();k.length;){if(e=k.shift(),null===e[0])return f(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));d(e)}w.defQueueMap={}}var y,b,w,E,S,x={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},T={},N={},C={},k=[],L={},A={},O={},M=1,_=1;return E={require:function(e){return e.require?e.require:e.require=w.makeRequire(e.map)},exports:function(e){if(e.usingExports=!0,e.map.isDefine)return e.exports?L[e.map.id]=e.exports:e.exports=L[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(x.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},b=function(e){this.events=getOwn(C,e.id)||{},this.map=e,this.shim=getOwn(x.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},b.prototype={init:function(e,t,n,r){r=r||{},this.inited||(this.factory=t,n?this.on("error",n):this.events.error&&(n=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,w.startTime=(new Date).getTime();var e=this.map;return this.shim?void w.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()})):e.prefix?this.callPlugin():this.load()}},load:function(){var e=this.map.url;A[e]||(A[e]=!0,w.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id,r=this.depExports,i=this.exports,s=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(s)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{i=w.execCb(n,s,r,i)}catch(t){e=t}else i=w.execCb(n,s,r,i);if(this.map.isDefine&&void 0===i&&(t=this.module,t?i=t.exports:this.usingExports&&(i=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",f(this.error=e)}else i=s;if(this.exports=i,this.map.isDefine&&!this.ignore&&(L[n]=i,req.onResourceLoad)){var o=[];each(this.depMaps,function(e){o.push(e.normalizedMap||e)}),req.onResourceLoad(w,this.map,o)}c(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(w.defQueueMap,n)||this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,r=o(e.prefix);this.depMaps.push(r),a(r,"defined",bind(this,function(r){var i,s,l,h=getOwn(O,this.map.id),p=this.map.name,d=this.map.parentMap?this.map.parentMap.name:null,v=w.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(r.normalize&&(p=r.normalize(p,function(e){return n(e,d,!0)})||""),s=o(e.prefix+"!"+p,this.map.parentMap),a(s,"defined",bind(this,function(e){this.map.normalizedMap=s,this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),l=getOwn(T,s.id),void (l&&(this.depMaps.push(s),this.events.error&&l.on("error",bind(this,function(e){this.emit("error",e)})),l.enable()))):h?(this.map.url=w.nameToUrl(h),void this.load()):(i=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),i.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(T,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&c(e.map.id)}),f(e)}),i.fromText=bind(this,function(e,n){var r=l.name,s=o(r),a=useInteractive;n&&(e=n),a&&(useInteractive=!1),u(s),hasProp(x.config,t)&&(x.config[r]=x.config[t]);try{req.exec(e)}catch(l){return f(makeError("fromtexteval","fromText eval for "+t+" failed: "+l,l,[t]))}a&&(useInteractive=!0),this.depMaps.push(s),w.completeLoad(r),v([r],i)}),void r.load(e.name,v,i,x))})),w.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){N[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var n,r,i;if("string"==typeof e){if(e=o(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,i=getOwn(E,e.id))return void (this.depExports[t]=i(this));this.depCount+=1,a(e,"defined",bind(this,function(e){this.undefed||(this.defineDep(t,e),this.check())})),this.errback?a(e,"error",bind(this,this.errback)):this.events.error&&a(e,"error",bind(this,function(e){this.emit("error",e)}))}n=e.id,r=T[n],hasProp(E,n)||!r||r.enabled||w.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(T,e.id);t&&!t.enabled&&w.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},w={config:x,contextName:e,registry:T,defined:L,urlFetched:A,defQueue:k,defQueueMap:{},Module:b,makeModuleMap:o,nextTick:req.nextTick,onError:f,configure:function(e){if(e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/"),"string"==typeof e.urlArgs){var t=e.urlArgs;e.urlArgs=function(e,n){return(n.indexOf("?")===-1?"?":"&")+t}}var n=x.shim,r={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){r[t]?(x[t]||(x[t]={}),mixin(x[t],e,!0,!0)):x[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(O[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=w.makeShimExports(e)),n[t]=e}),x.shim=n),e.packages&&each(e.packages,function(e){var t,n;e="string"==typeof e?{name:e}:e,n=e.name,t=e.location,t&&(x.paths[n]=e.location),x.pkgs[n]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(T,function(e,t){e.inited||e.map.unnormalized||(e.map=o(t,null,!0))}),(e.deps||e.callback)&&w.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,i){function s(n,r,a){var l,c,h;return i.enableBuildCallback&&r&&isFunction(r)&&(r.__requireJsBuild=!0),"string"==typeof n?isFunction(r)?f(makeError("requireargs","Invalid require call"),a):t&&hasProp(E,n)?E[n](T[t.id]):req.get?req.get(w,n,t,s):(c=o(n,t,!1,!0),l=c.id,hasProp(L,l)?L[l]:f(makeError("notloaded",'Module name "'+l+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(g(),w.nextTick(function(){g(),h=u(o(null,t)),h.skipMap=i.skipMap,h.init(n,r,a,{enabled:!0}),p()}),s)}return i=i||{},mixin(s,{isBrowser:isBrowser,toUrl:function(e){var r,i=e.lastIndexOf("."),s=e.split("/")[0],o="."===s||".."===s;return i!==-1&&(!o||i>1)&&(r=e.substring(i,e.length),e=e.substring(0,i)),w.nameToUrl(n(e,t&&t.id,!0),r,!0)},defined:function(e){return hasProp(L,o(e,t,!1,!0).id)},specified:function(e){return e=o(e,t,!1,!0).id,hasProp(L,e)||hasProp(T,e)}}),t||(s.undef=function(e){l();var n=o(e,t,!0),i=getOwn(T,e);i.undefed=!0,r(e),delete L[e],delete A[n.url],delete C[e],eachReverse(k,function(t,n){t[0]===e&&k.splice(n,1)}),delete w.defQueueMap[e],i&&(i.events.defined&&(C[e]=i.events),c(e))}),s},enable:function(e){var t=getOwn(T,e.id);t&&u(e).enable()},completeLoad:function(e){var t,n,r,s=getOwn(x.shim,e)||{},o=s.exports;for(l();k.length;){if(n=k.shift(),null===n[0]){if(n[0]=e,t)break;t=!0}else n[0]===e&&(t=!0);d(n)}if(w.defQueueMap={},r=getOwn(T,e),!t&&!hasProp(L,e)&&r&&!r.inited){if(!(!x.enforceDefine||o&&getGlobal(o)))return i(e)?void 0:f(makeError("nodefine","No define call for "+e,null,[e]));d([e,s.deps||[],s.exportsFn])}p()},nameToUrl:function(e,t,n){var r,i,s,o,u,a,f,l=getOwn(x.pkgs,e);if(l&&(e=l),f=getOwn(O,e))return w.nameToUrl(f,t,n);if(req.jsExtRegExp.test(e))u=e+(t||"");else{for(r=x.paths,i=e.split("/"),s=i.length;s>0;s-=1)if(o=i.slice(0,s).join("/"),a=getOwn(r,o)){isArray(a)&&(a=a[0]),i.splice(0,s,a);break}u=i.join("/"),u+=t||(/^data\:|^blob\:|\?/.test(u)||n?"":".js"),u=("/"===u.charAt(0)||u.match(/^[\w\+\.\-]+:/)?"":x.baseUrl)+u}return x.urlArgs&&!/^blob\:/.test(u)?u+x.urlArgs(e,u):u},load:function(e,t){req.load(w,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=m(e);w.completeLoad(t.id)}},onScriptError:function(e){var t=m(e);if(!i(t.id)){var n=[];return eachProp(T,function(e,r){0!==r.indexOf("_@r")&&each(e.depMaps,function(e){if(e.id===t.id)return n.push(r),!0})}),f(makeError("scripterror",'Script error for "'+t.id+(n.length?'", needed by: '+n.join(", "):'"'),e,[t.id]))}}},w.require=w.makeRequire(),w}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){if("interactive"===e.readyState)return interactiveScript=e}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.1",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser="undefined"!=typeof window&&"undefined"!=typeof navigator&&!!window.document,isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}"undefined"==typeof require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,n,r){var i,s,o=defContextName;return isArray(e)||"string"==typeof e||(s=e,isArray(t)?(e=t,t=n,n=r):e=[]),s&&s.context&&(o=s.context),i=getOwn(contexts,o),i||(i=contexts[o]=req.s.newContext(o)),s&&i.configure(s),i.require(e,t,n)},req.config=function(e){return req(e)},req.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,n){var r=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return r.type=e.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r},req.load=function(e,t,n){var r,i=e&&e.config||{};if(isBrowser)return r=req.createNode(i,t,n),r.setAttribute("data-requirecontext",e.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&r.attachEvent.toString().indexOf("[native code")<0||isOpera?(r.addEventListener("load",e.onScriptLoad,!1),r.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,r.attachEvent("onreadystatechange",e.onScriptLoad)),r.src=n,i.onNodeCreated&&i.onNodeCreated(r,i,t,n),currentlyAddingScript=r,baseElement?head.insertBefore(r,baseElement):head.appendChild(r),currentlyAddingScript=null,r;if(isWebWorker)try{setTimeout(function(){},0),importScripts(n),e.completeLoad(t)}catch(r){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+n,r,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){if(head||(head=e.parentNode),dataMain=e.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||mainScript.indexOf("!")!==-1||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(e,t,n){var r,i;"string"!=typeof e&&(n=t,t=e,e=null),isArray(t)||(n=t,t=null),!t&&isFunction(n)&&(t=[],n.length&&(n.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(e,n){t.push(n)}),t=(1===n.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript(),r&&(e||(e=r.getAttribute("data-requiremodule")),i=contexts[r.getAttribute("data-requirecontext")])),i?(i.defQueue.push([e,t,n]),i.defQueueMap[e]=!0):globalDefQueue.push([e,t,n])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this,setTimeout),require.config({paths:{afw:"/plugin-wga-app-framework/js",css:"/plugin-wga-app-framework/js/amd:css",async:"/plugin-wga-app-framework/js/amd:async",jquery:"/plugin-wga-app-framework/js/jquery-1.12.0.min","bootstrap-js":"/plugin-wga-app-framework/file/bootstrap/all/js/bootstrap.min","bootstrap-base":"/plugin-wga-app-framework/file/bootstrap/base/js/bootstrap.min","jquery-ui":"/plugin-wga-app-framework/file/jquery-ui-1.11/build/jquery-ui.min","jquery-ui-js":"/plugin-wga-app-framework/file/jquery-ui-1.11/source","jquery-ui-css":"/plugin-wga-app-framework/file/jquery-ui-1.11/build/jquery-ui.min",cmm:"/plugin-cm-modules/js/cmm","jquery-ui-datepicker":"/plugin-wga-app-framework/js/jquery-ui-datepicker","jquery-columnslider":"/plugin-wga-app-framework/js/jquery-columnslider","jquery-input-placeholder":"/plugin-wga-app-framework/js/jquery-input-placeholder","jquery-lightbox":"/plugin-wga-app-framework/js/jquery-lightbox","jquery-lookup-surgestions":"/plugin-wga-app-framework/js/jquery-lookup-surgestions","jquery-modal":"/plugin-wga-app-framework/js/jquery-modal","jquery-scrollintoview":"/plugin-wga-app-framework/js/jquery-scrollintoview","jquery-swipehandler":"/plugin-wga-app-framework/js/jquery-swipehandler","jquery-tabhandler":"/plugin-wga-app-framework/js/jquery-tabhandler","jquery-textarea-autogrow":"/plugin-wga-app-framework/js/jquery-textarea-autogrow","jquery-tree":"/plugin-wga-app-framework/js/jquery-tree","jquery-wga-drophandler":"/plugin-wga-app-framework/js/jquery-wga-drophandler","jquery-slideshow":"/plugin-wga-app-framework/js/jquery-slideshow","jquery-accordion":"/plugin-wga-app-framework/js/jquery-accordion"},shim:{"bootstrap-js":["jquery"],"bootstrap-base":["jquery","css!/plugin-wga-app-framework/file/bootstrap/base/css/bootstrap.min.css?noext"],"jquery-ui":["css!jquery-ui-css"],"jquery-modal":["css!/plugin-wga-app-framework/css/jquery-modal"],"jquery-lightbox":["css!/plugin-wga-app-framework/css/jquery-lightbox"],"jquery-columnslider":["css!/plugin-wga-app-framework/css/jquery-columnslider"],"jquery-accordion":["css!/plugin-wga-app-framework/css/jquery-accordion"],"jquery-lookup-surgestions":["css!/plugin-wga-app-framework/stylesheet/jquery-lookup-surgestions.int.stylesheet?noext"],"jquery-tree":["css!/plugin-wga-app-framework/stylesheet/jquery-tree.int.stylesheet?noext"]}}),window.jQuery&&define("jquery",[],function(){return window.jQuery}),define("css",function(){if(typeof window=="undefined")return{load:function(e,t,n){n()}};var e=document.getElementsByTagName("head")[0],t=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,n=!1,r=!0;t[1]||t[7]?n=parseInt(t[1])<6||parseInt(t[7])<=9:t[2]||t[8]?r=!1:t[4]&&(n=parseInt(t[4])<18);var i={};i.pluginBuilder="./css-builder";var s,o,u=function(){s=document.createElement("style"),e.appendChild(s),o=s.styleSheet||s.sheet},a=0,f=[],l,c=function(e){o.addImport(e),s.onload=function(){h()},a++,a==31&&(u(),a=0)},h=function(){l();var e=f.shift();if(!e){l=null;return}l=e[1],c(e[0])},p=function(e,t){(!o||!o.addImport)&&u();if(o&&o.addImport)l?f.push([e,t]):(c(e),l=t);else{s.textContent='@import "'+e+'";';var n=setInterval(function(){try{s.sheet.cssRules,clearInterval(n),t()}catch(e){}},10)}},d=function(t,n){var i=document.createElement("link");i.type="text/css",i.rel="stylesheet";if(r)i.onload=function(){i.onload=function(){},setTimeout(n,7)};else var s=setInterval(function(){for(var e=0;e<document.styleSheets.length;e++){var t=document.styleSheets[e];if(t.href==i.href)return clearInterval(s),n()}},10);i.href=t,e.appendChild(i)};return i.normalize=function(e,t){return e.substr(e.length-4,4)==".css"&&(e=e.substr(0,e.length-4)),t(e)},i.load=function(e,t,r,i){(n?p:d)(t.toUrl(e+".css"),r)},i}),define("bwk",["jquery"],function($){function setHTMLClass(){$("html").removeClass("large medium small"),$("html").addClass(WGA.responsive.getMediaWidth())}function initHijax(){hijax=!0,history.replaceState({href:location.href,scrollTop:$("body").position().top},null,location.href),"scrollRestoration"in history&&(history.scrollRestoration="manual"),window.onpopstate=function(e){var t=history.state||e.state;t&&t.href&&loadPage(t.href,t.scrollTop)},$("body").on("click.context-change","#page a[data-wgakey]:not([contenteditable] a), #page a.wga-urltype-int:not([contenteditable] a)",function(e){history&&history.pushState&&!e.metaKey&&!this.target&&(e.preventDefault(),pushState(this.href),loadPage(this.href,0))});try{window.parent.CM&&(window.parent.CM.loadPage=loadPage)}catch(e){}}function pushState(e){history.replaceState({href:location.href,scrollTop:$(document).scrollTop()},null,location.href),history.pushState({href:e,scrollTop:0},null,e)}function loadPage(href,scroll_to){$("body").css("cursor","wait"),WGA.portlet.init(),WGA.event.init(),$.get(href).then(function(data){$(window).trigger("page-unload");var el=document.createElement("div");el.innerHTML=data,document.title=$(el).find("title").text();var description=$(el).find("meta[name=description]").attr("content");$("head meta[name=description]").attr("content",description||"");var wga_htmlhead=$(el).find("#wga-htmlhead").text();wga_htmlhead&&eval(wga_htmlhead);if(window.parent.CM){var contentinfo=$(el).find("#wga-cm-contentinfo").text();contentinfo&&eval(contentinfo)}$("#page").attr("class","").html($(el).find("#page").html()),$(window).trigger("page-load"),WGA.onload.execute(),scroll_to>=0&&$("html, body").animate({scrollTop:scroll_to}),$("body").css("cursor","")},function(){location.href=href})}var hijax=!1;return $(function(){$(document).on("click","a.hamburger",function(e){e.preventDefault(),$(".menu-wrapper").toggleClass("opened")}),$(document).on("click touchstart",".menu-wrapper",function(e){var t=e.target.tagName.toLowerCase()=="a"?e.target:$(e.target).parents("a")[0];if(t){if(!(t.href.indexOf("#")>=0))return;location.href=e.target.href}$(".menu-wrapper").removeClass("opened").addClass("closing")}),$(document).on("transitionend",".menu-wrapper",function(e){$(this).hasClass("closing")&&$(".menu-wrapper").removeClass("closing")}),"ontouchstart"in document.documentElement||$("html").addClass("no-touch");var e=$(document).scrollTop(),t=!1;$(window).on("scroll",function(){t=!0}),setInterval(function(){if(t){var n=$(document).scrollTop();if(Math.abs(e-n)<=10)return;n>e?$("#page").removeClass("scrolled-down"):$("#page").addClass("scrolled-down"),e=n,t=!1}},250)}),{hijax:function(){history.pushState&&initHijax()},loadPage:function(e,t){hijax&&history.pushState?(pushState(e),loadPage(e,t)):location.href=e},setBreakpoints:function(e){var t;WGA.responsive.breakpoints=e,$(window).on("resize",function(){t&&clearTimeout(t),t=setTimeout(setHTMLClass,100)}),$(window).trigger("resize")}}}),require(["bwk"],function(e){e.setBreakpoints({medium:768,large:1200})})