function rwOpen(n,t,i,r,u,f){var e=window.radopen(t,i),o,s;r!=null&&e.set_title(r);u!=null&&(o=960,s=540,u==2&&(o=640,s=360),u==3&&(o=800,s=600),e.set_height(s),e.set_width(o));f!=null&&e.set_modal(f);n!=null&&(n=="refresh"?e.add_close(rwCloseRefresh):e.add_close(n))}function rwCloseRefresh(n){n.get_browserWindow().Refresh()}function addToPageLoadEvent(n){var t=window.pageLoad;window.pageLoad=typeof pageLoad!="function"?n:function(){t&&t();n()}}function bgCC(n,t){var i;n.style||(n=findObj(n));i=document.layers?n:n.style;i.backgroundColor=t}function cCSS(n,t){n.className||(n=findObj(n));n.className=t}function findObj(n,t){var u,r,i;for(t||(t=document),(u=n.indexOf("?"))>0&&parent.frames.length&&(t=parent.frames[n.substring(u+1)].document,n=n.substring(0,u)),(i=t[n])||!t.all||(i=t.all[n]),r=0;!i&&r<t.forms.length;r++)i=t.forms[r][n];for(r=0;!i&&t.layers&&r<t.layers.length;r++)i=findObj(n,t.layers[r].document);return!i&&t.getElementById&&(i=t.getElementById(n)),i}function DL_GetElementLeft(n){for(var i=n.offsetLeft,t=n.offsetParent;t!=null;)i+=t.offsetLeft,t=t.offsetParent;return i}function DL_GetElementTop(n){for(var i=n.offsetTop,t=n.offsetParent;t!=null;)i+=t.offsetTop,t=t.offsetParent;return i}function MakeVisible(n){var t,i;(t=findObj(n))!=null&&(i=document.layers?t:t.style,i.visibility="visible")}function MakeInvisible(n){var t,i;(t=findObj(n))!=null&&(i=document.layers?t:t.style,i.visibility="hidden")}function SetStyle(elemID,Attribute,Value){var g,b;(g=findObj(elemID))!=null&&(b=document.layers?g:g.style,eval("b."+Attribute+"='"+Value+"'"))}function GetWinWidth(){var n=0,t=0;return typeof innerWidth=="number"?(n=window.innerWidth,t=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(n=document.documentElement.clientWidth,t=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(n=document.body.clientWidth,t=document.body.clientHeight),n}function GetWinHeight(){var t=0,n=0;return typeof innerWidth=="number"?(t=window.innerWidth,n=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(t=document.documentElement.clientWidth,n=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(t=document.body.clientWidth,n=document.body.clientHeight),n}function DisableSubmitBtn(n){return n.disabled=!0,n.value="Processing...",n.classList.add("FormButtonSubmitted"),!0}function ToggleVisible(n,t){var r,i;(r=findObj(n))!=null&&(i=document.layers?r:r.style,i.display=="inline"?(i.display="none",t.innerHTML="show"):(i.display="inline",t.innerHTML="hide"))}function findObj(n,t){var u,r,i;for(t||(t=document),(u=n.indexOf("?"))>0&&parent.frames.length&&(t=parent.frames[n.substring(u+1)].document,n=n.substring(0,u)),(i=t[n])||!t.all||(i=t.all[n]),r=0;!i&&r<t.forms.length;r++)i=t.forms[r][n];for(r=0;!i&&t.layers&&r<t.layers.length;r++)i=findObj(n,t.layers[r].document);return!i&&t.getElementById&&(i=t.getElementById(n)),i}function preloadImages(){var n=document,t,r,i;if(n.images)for(n.MM_p||(n.MM_p=[]),r=n.MM_p.length,i=preloadImages.arguments,t=0;t<i.length;t++)i[t].indexOf("#")!=0&&(n.MM_p[r]=new Image,n.MM_p[r++].src=i[t])}function swapImgRestore(){for(var t,i=document.MM_sr,n=0;i&&n<i.length&&(t=i[n])&&t.oSrc;n++)t.src=t.oSrc}function swapImage(){var t,r=0,n,i=swapImage.arguments;for(document.MM_sr=[],t=0;t<i.length-2;t+=3)(n=findObj(i[t]))!=null&&(document.MM_sr[r++]=n,n.oSrc||(n.oSrc=n.src),n.src=i[t+2])}function SetStyle(elemID,Attribute,Value){var g,b;(g=findObj(elemID))!=null&&(b=document.layers?g:g.style,eval("b."+Attribute+"='"+Value+"'"))}function TelerikEditor_OnClientLoad(n){var i=n.get_toolAdapter(),t;i.isIE=!1;t=n;setTimeout(function(){t.setFocus()},10)}function LimitWordCount(n,t,i){var u,f,r;if(document.getElementById(n).value!=""){if(u=document.getElementById(n).value.split(" "),u.length>i){for(f="",r=0;r<i;r=r+1)u[r]!=null&&(f=r!=i-1?f+u[r]+" ":f+u[r]);document.getElementById(n).value=f;alert("Your input text was too long and has been trimmed! Only "+i+" words allowed")}document.getElementById(t).innerHTML=document.getElementById(n).value.split(" ").length}else document.getElementById(t).innerHTML="0"}function LimitCharacterCount(n,t,i){document.getElementById(n).value!=""?(document.getElementById(n).value.length>i&&(document.getElementById(n).value=document.getElementById(n).value.substring(0,i),alert("Your input text was too long and has been trimmed! Only "+i+" characters allowed")),document.getElementById(t).innerHTML=document.getElementById(n).value.length):document.getElementById(t).innerHTML="0"}function imagePopup(n){typeof n!="object"?(window.golarge=window.open("","","scrollbars=no,toolbar=no,menubar=no,screenX=30,screenY=30,left=30,top=30,height=400,width=420"),window.golarge.document.open(),window.golarge.document.writeln("<html>"),window.golarge.document.writeln("<head>"),window.golarge.document.writeln("<title><\/title>"),window.golarge.document.writeln("<\/head>"),window.golarge.document.write("<body>\n"),window.golarge.document.write('<table width="100%" >\n'),window.golarge.document.write('<tr><td class="AlignCenter"><img src="'+n+'" onLoad="opener.imagePopup(this);" alt="image popup" /><br/><a href="javascript:window.close();"><img src="/assets/images/button_closewindow.gif" vspace="8" border="0"><\/a><\/td><\/tr><\/table>\n'),window.golarge.document.write("<\/body>\n"),window.golarge.document.write("<\/html>\n"),window.golarge.document.close()):document.layers?window.golarge.resizeTo(n.width,n.height):window.golarge.resizeTo(n.width+60,n.height+100)}function TelerikOnRequestStart(n,t){TelerikButton=$("[name='"+t.get_eventTarget()+"']");TelerikButton.attr("disabled",!0);document.body.style.cursor="wait"}function TelerikOnResponseEnd(){document.body.style.cursor="default";TelerikButton.attr("disabled",!1)}function LoadListInit(n,t){listurl=n;$("#ItemList").load(listurl,function(){t()})}function LoadListMore(n){size_li=$("#ItemList article").size();$("#LoadingCache").load(listurl+"&idx="+size_li,function(){MoveCacheItemsToOutputContainer();n()})}function MoveCacheItemsToOutputContainer(){$("#ItemList").append($("#LoadingCache").html())}var TelerikButton,listurl=""