function Concepts2Go_Bounds(n,t,i,r){this.x=n;this.y=t;this.width=i;this.height=r}function Concepts2Go_System(){this.InternetExplorer={};this.Firefox={};this.Safari={};this.Opera={};this.scrollHandling=!1;this.resizeHandling=!1;this.agent=null;this.hasDebuggerStatement=!1;this.name=navigator.appName;this.version=parseFloat(navigator.appVersion);navigator.userAgent.indexOf(" MSIE ")>-1?(this.agent=this.InternetExplorer,this.version=navigator.userAgent.match(/MSIE (\d+\.\d+)/)==null?-1:parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]),this.hasDebuggerStatement=!0):navigator.userAgent.indexOf(" Firefox/")>-1?(this.agent=this.Firefox,this.version=navigator.userAgent.match(/ Firefox\/(\d+\.\d+)/)==null?-1:parseFloat(navigator.userAgent.match(/ Firefox\/(\d+\.\d+)/)[1]),this.name="Firefox",this.hasDebuggerStatement=!0):navigator.userAgent.indexOf(" Safari/")>-1?(this.agent=this.Safari,this.version=navigator.userAgent.match(/ Safari\/(\d+\.\d+)/)==null?-1:parseFloat(navigator.userAgent.match(/ Safari\/(\d+\.\d+)/)[1]),this.name="Safari"):navigator.userAgent.indexOf("Opera/")>-1&&(this.agent=this.Opera);this.Cookies.init()}function getDXFormControlItem(n,t){if(typeof ASPxClientControl.GetControlCollection()=="undefined"||typeof ASPxClientControl.GetControlCollection().ForEachControl=="undefined")return null;var i=null,r=null,u=null;return ASPxClientControl.GetControlCollection().ForEachControl(function(f){typeof f.cpForm!="undefined"&&f.cpForm===n&&typeof f.cpField!="undefined"&&f.cpField===t&&(typeof f.cpControl!="undefined"&&f.cpControl===!0?r=f:typeof f.cpLabel!="undefined"&&f.cpLabel===!0?i=f:typeof f.cpComment!="undefined"&&f.cpComment===!0&&(u=f))},null),{label:i,control:r,comment:u}}function getDXFormControlItems(n){if(typeof ASPxClientControl.GetControlCollection()=="undefined"||typeof ASPxClientControl.GetControlCollection().ForEachControl=="undefined")return null;var t=[];return ASPxClientControl.GetControlCollection().ForEachControl(function(i){var r,f,u;if(typeof i.cpForm!="undefined"&&i.cpForm===n){for(r={field:null,control:null,label:null,comment:null,type:null,isrequired:null,image:null},f=!1,u=0;u<t.length;u++)if(t[u].field==i.cpField){r=t[u];f=!0;break}r.field=i.cpField;typeof i.cpControl!="undefined"&&i.cpControl===!0?(r.control=i,r.isrequired=i.cpControlIsRequired,r.image=i.cpControlImage):typeof i.cpLabel!="undefined"&&i.cpLabel===!0?r.label=i:typeof i.cpComment!="undefined"&&i.cpComment===!0&&(r.comment=i);f||t.push(r)}},null),t}function isDXformItemValid(n,t,i){for(var f=!0,u=getDXFormControlItems(n),r=0;r<u.length;r++)if(u[r].field==t){u[r].isrequired&&(i&&u[r].image!=undefined?(u[r].control.GetEnabled()&&u[r].image.SetVisible(u[r].control.GetText()==""&&u[r].control.GetVisible()),f=u[r].control.GetEnabled()?!u[r].image.GetVisible():!0):u[r].control.isValid!=undefined?f=u[r].control.isValid:u[r].control.GetChecked!=undefined?f=u[r].control.GetEnabled()?u[r].control.GetChecked():!0:u[r].control.GetText!=undefined?f=u[r].control.GetEnabled()?u[r].control.GetText()!="":!0:u[r].control.GetValue!=undefined&&(f=u[r].control.GetEnabled()?u[r].control.GetValue()!=null:!0));break}return f}function Concepts2Go_PreloadImg(n){if(document.images)return rslt=new Image,rslt.src=n,rslt}function Concepts2Go_ChangeImg(n,t){var i=null;document.getElementById?i=document.getElementById(n):document.images?i=document.images[n]:document.elements&&(i=document.elements[n]);i&&(i.src=t)}function CMSAddLoader(n,t,i,r,u){var f=$('<img src="{0}"class="{1}" style="display:none;" title="{2}" alt="{2}" />'.format(i,u,r));$(window[t].inputElement).parent().prepend(f);CMSLoaderlist[t]=f}function CMSShowLoader(n){$(CMSLoaderlist[n]).css("display","")}function CMSHideLoader(n){$(CMSLoaderlist[n]).css("display","none")}function CmsAutoComplete_Init(n,t){__CmsAutoComplete(n,t,"contains")}function CmsAutoCompleteStartsWith_Init(n,t){__CmsAutoComplete(n,t,"startswith")}function __CmsAutoComplete(n,t,i){if(typeof $(n.GetInputElement()).autocomplete=="function"){$(n.GetMainElement()).parent().addClass("autoComplete");var u=$(n.GetInputElement()).autocomplete({dxctrl:n,position:{my:"left top",at:"left bottom",of:n.GetMainElement()},appendTo:$(n.GetMainElement()).parent(),source:function(t,r){$.ajax({url:i=="startswith"?"/CmsAutoCompleteStartsWith.json":"/CmsAutoComplete.json",dataType:"json",data:{term:t.term,d:n.cpD,l:n.cpL},success:function(n){r($.map(n,function(n){return{label:__CmsAutoCompleteHighlight(n.value,t.term),value:n.value}}))}})},select:function(n,t){var i=$(this).autocomplete("option").dxctrl;typeof i!="undefined"&&t.item!==null&&(i.nullText===""||this.value!=i.nullText)&&i.SetValue(t.item.value)},change:function(n,t){var i=$(this).autocomplete("option").dxctrl;typeof i!="undefined"&&t.item===null&&(i.nullText===""||this.value!=i.nullText)&&i.SetValue(this.value)},open:function(){$(this).removeClass("wait")},search:function(){$(this).addClass("wait")},minLength:2}),r=u.data("autocomplete");r==undefined&&(r=u.data("ui-autocomplete"));r&&(parseFloat(jQuery.ui.version)>=1.9?r._renderItemData=CMSAutoComplete_CustomRenderItem:r._renderItem=CMSAutoComplete_CustomRenderItem)}}function __CmsAutoCompleteHighlight(n,t){var i=new RegExp("("+$.ui.autocomplete.escapeRegex(t)+")","ig");return n.replace(i,"<strong>$1<\/strong>")}var Concepts2Go_Sys,MD5,CMSLoaderlist;Concepts2Go_System.prototype.createNewDiv=function(n,t){return newDiv=document.createElement("div"),newDiv.id=n,t&&(newDiv.className=t),newDiv};Concepts2Go_System.prototype.getClientBounds=function(){var n,t;switch(this.agent){case this.InternetExplorer:n=this.version==7?document.body.clientWidth:document.documentElement.clientWidth;t=this.version==7?document.body.clientHeight:document.documentElement.clientHeight;break;case this.Safari:n=window.innerWidth;t=window.innerHeight;break;case this.Opera:n=Math.min(window.innerWidth,document.body.clientWidth);t=Math.min(window.innerHeight,document.body.clientHeight);break;default:n=Math.min(window.innerWidth,document.documentElement.clientWidth);t=Math.min(window.innerHeight,document.documentElement.clientHeight)}return new Concepts2Go_Bounds(0,0,n,t)};Concepts2Go_System.prototype.getBounds=function(){var i,r,n,t;return window.innerHeight&&window.scrollMaxY?(i=document.body.scrollWidth,r=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(i=document.body.scrollWidth,r=document.body.scrollHeight):(i=document.body.offsetWidth,r=document.body.offsetHeight),self.innerHeight?(n=self.innerWidth,t=self.innerHeight):document.documentElement&&document.documentElement.clientHeight?(n=document.documentElement.clientWidth,t=document.documentElement.clientHeight):document.body&&(n=document.body.clientWidth,t=document.body.clientHeight),pageHeight=r<t?t:r,pageWidth=i<n?n:i,new Concepts2Go_Bounds(pageWidth,pageHeight,n,t)};Concepts2Go_System.prototype.addEvent=function(n,t,i,r){if(n.addEventListener)return n.addEventListener(t,i,r),!0;if(n.attachEvent)return n.attachEvent("on"+t,i);alert("Handler could not be attached")};Concepts2Go_System.prototype.removeEvent=function(n,t,i,r){if(n.removeEventListener)return n.removeEventListener(t,i,r),!0;if(n.detachEvent)return n.detachEvent("on"+t,i);alert("Handler could not be removed")};Concepts2Go_System.prototype.URLEncode=function(n){var r="",t=0,f,i,e,u;for(n=n.toString(),f=/(^[a-zA-Z0-9_.]*)/;t<n.length;)i=f.exec(n.substr(t)),i!=null&&i.length>1&&i[1]!=""?(r+=i[1],t+=i[1].length):(n[t]==" "?r+="+":(e=n.charCodeAt(t),u=e.toString(16),r+="%"+(u.length<2?"0":"")+u.toUpperCase()),t++);return r};Concepts2Go_System.prototype.URLDecode=function(n){for(var t=n,i,r;(match=/(%[^%]{2})/.exec(t))!=null&&match.length>1&&match[1]!="";)i=parseInt(match[1].substr(1),16),r=String.fromCharCode(i),t=t.replace(match[1],r);return t};Concepts2Go_System.prototype.addQueryToUrl=function(n,t,i){var r="&";return n.indexOf("?")==-1&&(r="?"),n+r+Concepts2Go_Sys.URLEncode(t)+"="+Concepts2Go_Sys.URLEncode(i)};Concepts2Go_System.prototype.highlight=function(){var e="highlightUrl",o="highlightImg",u,s,f,t,n,i,r;if(Concepts2Go_Sys.QueryString[e]||Concepts2Go_Sys.QueryString[o])if(u="",s=document.body.innerHTML,highlightStartTag="<span style='border: 2px solid #FF0000;' class='highlight'>",highlightEndTag="<\/span>",Concepts2Go_Sys.QueryString[e]){for(t=Concepts2Go_Sys.URLDecode(Concepts2Go_Sys.QueryString[e]).split("\\n"),n=0;n<t.length;n++)if(t[n]!=""&&t[n]!=null){if(u=Concepts2Go_Sys.EscapeRegex(t[n]),f=new RegExp("(<a[^>]*href=[\"'][^\"']*"+u+"[\"'][^>]*>[^<]*<\/a>)","gi"),document.domain.indexOf("dev.Concepts2Go.local")!=-1&&Concepts2Go_Sys.QueryString.debug!=null)if(alert("Searching for: "+u),i=f.exec(document.body.innerHTML),i==null)alert("No match");else{for(r="Match at position "+i.index+":\n",q=0;q<i.length;q++)r=r+i[q]+"\n";alert(r)}document.body.innerHTML=document.body.innerHTML.replace(f,highlightStartTag+"$1"+highlightEndTag)}Concepts2Go_Sys.Cookies.erase(e)}else if(Concepts2Go_Sys.QueryString[o]){for(t=Concepts2Go_Sys.URLDecode(Concepts2Go_Sys.QueryString[o]).split("\\n"),n=0;n<t.length;n++)if(t[n]!=""&&t[n]!=null){if(u=Concepts2Go_Sys.EscapeRegex(t[n]),f=new RegExp("(<img[^>]*src=[\"'][^\"']*"+u+"[\"'][^>]*>(<\/img>)?)","gi"),document.domain.indexOf("dev.Concepts2Go.local")!=-1&&Concepts2Go_Sys.QueryString.debug!=null)if(alert("Searching for: "+u),i=f.exec(document.body.innerHTML),i==null)alert("No match");else{for(r="Match at position "+i.index+":\n",q=0;q<i.length;q++)r=r+i[q]+"\n";alert(r)}document.body.innerHTML=document.body.innerHTML.replace(f,highlightStartTag+"$1"+highlightEndTag)}Concepts2Go_Sys.Cookies.erase(o)}};Concepts2Go_System.prototype.EscapeRegex=function(n){return n=n.replace(/\?/g,"\\?"),n=n.replace(/\+/g,"%20"),n=n.replace(/\./g,"\\."),n=n.replace(/\,/g,"\\,"),n=n.replace(/\(/g,Concepts2Go_Sys.agent==Concepts2Go_Sys.Firefox?"%28":"\\("),n=n.replace(/\)/g,Concepts2Go_Sys.agent==Concepts2Go_Sys.Firefox?"%29":"\\)"),n=n.replace(/\[/g,"\\["),n=n.replace(/\]/g,"\\]"),n=n.replace(/\{/g,"\\{"),n=n.replace(/\}/g,"\\}"),n=n.replace(/\&/g,"\\&"),n=n.replace(/ /g,"%20"),n.replace(/\*/g,"\\*")};Concepts2Go_System.prototype.Cookies={init:function(){for(var t,i=document.cookie.split("; "),n=0;n<i.length;n++)t=i[n].split("="),this[t[0]]=t[1]},create:function(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/";this[n]=t},erase:function(n){this.create(n,"",-1);this[n]=undefined}};Concepts2Go_System.prototype.QueryString={init:function(){this.name="QueryStringObject";window.location.search.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(n,t,i,r){Concepts2Go_Sys.QueryString[t]=r})}};Concepts2Go_Sys=new Concepts2Go_System;Concepts2Go_Sys.QueryString.init();MD5=function(n){function a(n,t){return n<<t|n>>>32-t}function o(n,t){var f,e,r,u,i;return(r=n&2147483648,u=t&2147483648,f=n&1073741824,e=t&1073741824,i=(n&1073741823)+(t&1073741823),f&e)?i^2147483648^r^u:f|e?i&1073741824?i^3221225472^r^u:i^1073741824^r^u:i^r^u}function yt(n,t,i){return n&t|~n&i}function pt(n,t,i){return n&i|t&~i}function wt(n,t,i){return n^t^i}function bt(n,t,i){return t^(n|~i)}function s(n,t,i,r,u,f,e){return n=o(n,o(o(yt(t,i,r),u),e)),o(a(n,f),t)}function h(n,t,i,r,u,f,e){return n=o(n,o(o(pt(t,i,r),u),e)),o(a(n,f),t)}function c(n,t,i,r,u,f,e){return n=o(n,o(o(wt(t,i,r),u),e)),o(a(n,f),t)}function l(n,t,i,r,u,f,e){return n=o(n,o(o(bt(t,i,r),u),e)),o(a(n,f),t)}function kt(n){for(var r,u=n.length,o=u+8,s=(o-o%64)/64,e=(s+1)*16,i=Array(e-1),f=0,t=0;t<u;)r=(t-t%4)/4,f=t%4*8,i[r]=i[r]|n.charCodeAt(t)<<f,t++;return r=(t-t%4)/4,f=t%4*8,i[r]=i[r]|128<<f,i[e-2]=u<<3,i[e-1]=u>>>29,i}function v(n){for(var i="",r="",u,t=0;t<=3;t++)u=n>>>t*8&255,r="0"+u.toString(16),i=i+r.substr(r.length-2,2);return i}function dt(n){var i,r,t;for(n=n.replace(/\r\n/g,"\n"),i="",r=0;r<n.length;r++)t=n.charCodeAt(r),t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128));return i}var e=Array(),f,ht,ct,lt,at,t,i,r,u,y=7,p=12,w=17,b=22,k=5,d=9,g=14,nt=20,tt=4,it=11,rt=16,ut=23,ft=6,et=10,ot=15,st=21,vt;for(n=dt(n),e=kt(n),t=1732584193,i=4023233417,r=2562383102,u=271733878,f=0;f<e.length;f+=16)ht=t,ct=i,lt=r,at=u,t=s(t,i,r,u,e[f+0],y,3614090360),u=s(u,t,i,r,e[f+1],p,3905402710),r=s(r,u,t,i,e[f+2],w,606105819),i=s(i,r,u,t,e[f+3],b,3250441966),t=s(t,i,r,u,e[f+4],y,4118548399),u=s(u,t,i,r,e[f+5],p,1200080426),r=s(r,u,t,i,e[f+6],w,2821735955),i=s(i,r,u,t,e[f+7],b,4249261313),t=s(t,i,r,u,e[f+8],y,1770035416),u=s(u,t,i,r,e[f+9],p,2336552879),r=s(r,u,t,i,e[f+10],w,4294925233),i=s(i,r,u,t,e[f+11],b,2304563134),t=s(t,i,r,u,e[f+12],y,1804603682),u=s(u,t,i,r,e[f+13],p,4254626195),r=s(r,u,t,i,e[f+14],w,2792965006),i=s(i,r,u,t,e[f+15],b,1236535329),t=h(t,i,r,u,e[f+1],k,4129170786),u=h(u,t,i,r,e[f+6],d,3225465664),r=h(r,u,t,i,e[f+11],g,643717713),i=h(i,r,u,t,e[f+0],nt,3921069994),t=h(t,i,r,u,e[f+5],k,3593408605),u=h(u,t,i,r,e[f+10],d,38016083),r=h(r,u,t,i,e[f+15],g,3634488961),i=h(i,r,u,t,e[f+4],nt,3889429448),t=h(t,i,r,u,e[f+9],k,568446438),u=h(u,t,i,r,e[f+14],d,3275163606),r=h(r,u,t,i,e[f+3],g,4107603335),i=h(i,r,u,t,e[f+8],nt,1163531501),t=h(t,i,r,u,e[f+13],k,2850285829),u=h(u,t,i,r,e[f+2],d,4243563512),r=h(r,u,t,i,e[f+7],g,1735328473),i=h(i,r,u,t,e[f+12],nt,2368359562),t=c(t,i,r,u,e[f+5],tt,4294588738),u=c(u,t,i,r,e[f+8],it,2272392833),r=c(r,u,t,i,e[f+11],rt,1839030562),i=c(i,r,u,t,e[f+14],ut,4259657740),t=c(t,i,r,u,e[f+1],tt,2763975236),u=c(u,t,i,r,e[f+4],it,1272893353),r=c(r,u,t,i,e[f+7],rt,4139469664),i=c(i,r,u,t,e[f+10],ut,3200236656),t=c(t,i,r,u,e[f+13],tt,681279174),u=c(u,t,i,r,e[f+0],it,3936430074),r=c(r,u,t,i,e[f+3],rt,3572445317),i=c(i,r,u,t,e[f+6],ut,76029189),t=c(t,i,r,u,e[f+9],tt,3654602809),u=c(u,t,i,r,e[f+12],it,3873151461),r=c(r,u,t,i,e[f+15],rt,530742520),i=c(i,r,u,t,e[f+2],ut,3299628645),t=l(t,i,r,u,e[f+0],ft,4096336452),u=l(u,t,i,r,e[f+7],et,1126891415),r=l(r,u,t,i,e[f+14],ot,2878612391),i=l(i,r,u,t,e[f+5],st,4237533241),t=l(t,i,r,u,e[f+12],ft,1700485571),u=l(u,t,i,r,e[f+3],et,2399980690),r=l(r,u,t,i,e[f+10],ot,4293915773),i=l(i,r,u,t,e[f+1],st,2240044497),t=l(t,i,r,u,e[f+8],ft,1873313359),u=l(u,t,i,r,e[f+15],et,4264355552),r=l(r,u,t,i,e[f+6],ot,2734768916),i=l(i,r,u,t,e[f+13],st,1309151649),t=l(t,i,r,u,e[f+4],ft,4149444226),u=l(u,t,i,r,e[f+11],et,3174756917),r=l(r,u,t,i,e[f+2],ot,718787259),i=l(i,r,u,t,e[f+9],st,3951481745),t=o(t,ht),i=o(i,ct),r=o(r,lt),u=o(u,at);return vt=v(t)+v(i)+v(r)+v(u),vt.toLowerCase()};String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})});CMSLoaderlist={};typeof CMSAutoComplete_CustomRenderItem=="undefined"&&(window.CMSAutoComplete_CustomRenderItem=function(n,t){return $("<li><\/li>").data("item.autocomplete",t).append($("<a><\/a>").html(t.label)).appendTo(n)})