function checkKey(w,a,c,g,f,h,u,l,p,n){var t=w.keyCode;var s=function(e){return(e==8||e==9||e==46||e==37||e==39||e==36||e==35||e==18||e==17||e==16)};var r=(t>=65&&t<=90);var m=(t==222)&&!w.shiftKey;var v=((t>=48&&t<=57)||(t>=96&&t<=105))&&!w.shiftKey;var o=(t==109||t==189)&&!w.shiftKey;var b=(t==57||t==48)&&w.shiftKey;var j=(t==188||t==186);var k=(t==32);var d=(t==110||t==190)&&!w.shiftKey;var q=(t==189)&&w.shiftKey;return s(t)||(a&&r)||(c&&m)||(g&&v)||(f&&o)||(h&&b)||(u&&j)||(l&&k)||(p&&d)||(n&&q)}function EncodeRus(c){var b="";for(i=0;i<c.length;i++){var a=c.charCodeAt(i);if(a<256){b+=c.charAt(i)}else{b+="%26#"+a+";"}}return b}$(function(){$("span[id$='siteMap'] span").filter(":odd").addClass("breadcrumb-sep");$("#topmenu a").each(function(){var a=$(this);var c=a.attr("menu");var b=$(c);var d=function(){a.data("hide-timeout",setTimeout(function(){if(b.is(":visible")){if($.browser.msie){b.hide()}else{b.fadeOut(200)}a.removeClass("hover")}},1500))};b.hover(function(){clearTimeout(a.data("hide-timeout"))},function(){d()});a.hover(function(){clearTimeout(a.data("hide-timeout"));clearTimeout(a.data("show-timeout"));$("#topmenu a").filter(":not(menu='"+c+"')").each(function(){$($(this).attr("menu")).hide();$(this).removeClass("hover")});if(!b.is(":visible")){a.data("show-timeout",setTimeout(function(){b.css({left:a.offset().left,top:a.offset().top+36});if($.browser.msie){b.show()}else{b.fadeIn(200)}a.addClass("hover")},250))}},function(){clearTimeout(a.data("show-timeout"));d()})});$("#header-search-text").keydown(function(a){if(a.keyCode==13){$("#header-search").click();return false}});$("#header-search").click(function(){var b=escape($("#header-search-text").val());var a=globals.appPath+"Search.aspx";if(b.length!=0){a+="?q="+b+"&where=0,1"}window.location=a});$("#bookmark").click(function(){var a=$("#bookmark-popup");var b=$(this).offset();a.css({left:-1000,top:b.top+55}).show().animate({left:(b.left+19)+"px"},500)});bookmarkTimeout=null;$("#bookmark-popup").hover(function(){clearTimeout(bookmarkTimeout)},function(){bookmarkTimeout=setTimeout(function(){$("#bookmark-popup").animate({left:"-1000px"},500,function(){$(this).hide()})},1000)}).find("a.grouplogin").click(function(){$.getJSON("AjaxUtil.axd?cmd=grouplogin&id="+$(this).attr("rel"),function(a){if(a.success){location=globals.appPath+"MyGroup/GroupDetails.aspx"}else{$.growlUI("Error",a.msg)}})});$("input[id$='textLogin']").keydown(function(a){if(a.keyCode==13){$("input[id$='textPassword']").focus();return false}});$("input[id$='textPassword']").keydown(function(a){if(a.keyCode==13){$("input[id$='buttonLogin']").click();return false}});$("#header-search-text").focus(function(){if($(this).val()==$(this).attr("stdvalue")){$(this).val("")}});$("span.tip").tooltip();$("#content").find(":button, :submit").button();setInterval(function(){var a=91-$("#content").height()%60;$("#content-bottom > div").height(a)},250);setTimeout(function(){$.preloadCssImages()},1500)});jQuery.expr[":"].containsNoCase=function(c,d,b){return jQuery(c).text().toUpperCase().indexOf(b[3].toUpperCase())>=0};function scrollbarWidth(){if(scrollbarWidth.calculatedSize){return scrollbarWidth.calculatedSize}var a=$('<div style="width:50px;height:50px;overflow:hidden;position:absolute;top:-200px;left:-200px;"><div style="height:100px;"></div>');$("body").append(a);var c=$("div",a).innerWidth();a.css("overflow-y","scroll");var b=$("div",a).innerWidth();$(a).remove();scrollbarWidth.calculatedSize=(c-b);return scrollbarWidth.calculatedSize}if(!window.JSON){window.JSON={stringify:function stringify(a){var d,e,g,f="",b;switch(typeof a){case"object":if(a){if(a.constructor==Array){for(e=0;e<a.length;++e){b=stringify(a[e]);if(f){f+=","}f+=b}return"["+f+"]"}else{if(typeof a.toString!="undefined"){for(e in a){b=stringify(a[e]);if(typeof b!="function"){if(f){f+=","}f+=stringify(e)+":"+b}}return"{"+f+"}"}}}return"null";case"number":return isFinite(a)?String(a):"null";case"string":g=a.length;f='"';for(e=0;e<g;e+=1){d=a.charAt(e);if(d>=" "){if(d=="\\"||d=='"'){f+="\\"}f+=d}else{switch(d){case"\b":f+="\\b";break;case"\f":f+="\\f";break;case"\n":f+="\\n";break;case"\r":f+="\\r";break;case"\t":f+="\\t";break;default:d=d.charCodeAt();f+="\\u00"+Math.floor(d/16).toString(16)+(d%16).toString(16)}}}return f+'"';case"boolean":return String(a);case"function":return a.toString();default:return"null"}},parse:function(a){if(a.substr(0,9)=="while(1);"){a=a.substr(9)}if(a.substr(0,2)=="/*"){a=a.substr(2,a.length-4)}return eval("("+a+")")}}};