var jQuery=window.jQuery=window.$=$telerik.$;$.fn.idle=function(b){var a=$(this);a.queue(function(){setTimeout(function(){a.dequeue()},b)});return this};function OpenDisclaimer(a){$(".popup").colorbox({href:a,opacity:"0.5",width:"650px",height:"595px",iframe:true,escKey:false,overlayClose:false,onLoad:function(){$("#cboxClose").remove()}}).click()}function OpenCantosVideo(a){$(".popup").colorbox({href:a,opacity:"0.5",width:"600px",height:"480px",iframe:true,escKey:true,overlayClose:false,scrolling:false}).click()}function reload(){window.location.reload()}function OpenWindow(c,b){var a=window.radopen(b,c);return false}function OpenWindow(f,d,a,b){var c=window.radopen(d,f);var e=c.getWindowBounds();c.setSize(a,b);return false}function GetRadWindow(){var a=null;if(window.radWindow){a=window.radWindow}else{if(window.frameElement.radWindow){a=window.frameElement.radWindow}}return a}function CloseWindow(){var a=GetRadWindow();a.close()}function ShowToolTip(c,a){var b=$find(c);if(b==null){alert("Sorry this function is not working correctly.")}b.set_targetControlID(a);b.show()}function ShowToolTipWithText(e,a,b,c){var d=$find(e);if(d==null){alert("Sorry this function is not working correctly.")}d.set_targetControlID(b);d.set_text('<div class="ttipcontent">'+a+"</div>");d.set_width(c);d.show()}function ShowToolTipManual(e,a,b,c){var d=$find(e);if(d==null){alert("Sorry this function is not working correctly.")}d.set_targetControlID(b);d.set_text('<div class="ttipcontent">'+a+"</div>");d.set_width(c);d.set_hideEvent(Telerik.Web.UI.ToolTipHideEvent.ManualClose);d.show()}function HideToolTip(b){var a=$find(b);if(a==null){alert("Sorry this function is not working correctly.")}a.hide()}function SetLinkAsSaved(b){var a=$("#"+b);if(a!=null){a.removeClass("save");a.addClass("saved")}return false}function TogglePanelExtender(a,c){var b=$find(""+a+"");b.set_Collapsed(c)}$.fn.togglelist=function(options){var defaults={number:5,showtext:"More...",showtitle:"Show more",hidetext:"Less...",hidetitle:"Show less",showonclick:""};var options=$.extend(defaults,options);var listid=$(this).attr("id");var togglehtml='<a id="'+listid+'toggle" class="expand-list" title="'+options.showtitle+'" href="#" onclick="'+options.showonclick+'">'+options.showtext+"</a>";var toggleselector="#"+listid+"toggle";var hidden=$(this).children().slice(eval(options.number)).hide();hidden.parents("ul#"+listid).after(togglehtml);$(toggleselector).click(function(){$(hidden).toggle();if($(hidden).is(":visible")){$(toggleselector).removeAttr("onclick").attr("title",""+options.hidetitle+"").attr("class","contract-list").text(options.hidetext)}else{$(toggleselector).attr("title",""+options.showtitle+"").attr("class","expand-list").attr("onclick",""+options.showonclick+"").text(options.showtext)}return false})};(function(a){a.fn.blink=function(f){var b={maxBlinks:null,blinkPeriod:1000,onMaxBlinks:function(){},onBlink:function(){},speed:null};if(f){a.extend(b,f)}var g=this;var c=true;var d=0;b.speed=b.speed?b.speed:b.blinkPeriod/2;h();var e=setInterval(h,b.blinkPeriod/2);function h(){if(c){g.fadeTo(b.speed,0.01)}else{var i=(b.maxBlinks&&(++d)>=b.maxBlinks);g.fadeTo(b.speed,1,function(){b.onBlink.call();if(i){b.onMaxBlinks.call()}});if(i){clearInterval(e)}}c=!c}return this}})(jQuery);function setCookie(a,d,f,h,c,g){var e,b;if(typeof f=="number"){b=new Date();b.setTime(b.getTime()+(f*24*60*60*1000));e=b.toGMTString()}document.cookie=a+"="+escape(d)+((e)?"; expires="+e:"")+((h)?"; path="+h:"")+((c)?"; domain="+c:"")+((g)?"; secure":"")}function getCookie(b){var e=b+"=";var f=document.cookie.split(";");for(var d=0;d<f.length;d++){var a=f[d];while(a.charAt(0)==" "){a=a.substring(1,a.length)}if(a.indexOf(e)==0){return unescape(a.substring(e.length,a.length))}}return null}function utmvCookieCheck(a){var b=getCookie("__utmv");if(b==null){return false}b=b.replace(/^\d*\./,"");return(b==a)?true:false}function deleteCookie(a,c,b){if(getCookie(a)){document.cookie=a+"="+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function GoToUrl(a){document.location.href=a}function GoToUrlNewWindow(a){window.open(a,"_blank");return false};
