﻿
(function($){$.log=function(msg){};$.fn.logall=function(label){return this.each(function(){$.log(label,this,'id:'+this.id,'class:'+this.className,'parentID:'+(this.parentNode!==undefined?this.parentNode.id:'NoParent'),'parentClass:'+(this.parentNode!==undefined?this.parentNode.className:'NoParent'));});};$.browser.ie6=($.browser.msie&&parseFloat($.browser.version)<=6);$.fn.center=function(inwhat){return this.each(function(){inwhat=(inwhat===undefined)?$(this).parent():$(inwhat);var ww=inwhat.width();var wh=inwhat.height();var t=$(this);t.css({left:(ww-t.width())/2,top:(wh-t.height())/2});});};$.fn.winCenter=function(){var win=$(window);var ww=win.width();var wh=win.height();var wt=win.scrollTop();var wl=win.scrollLeft();return this.each(function(){var t=$(this);t.css({left:(ww-t.width())/2+wl,top:(wh-t.height())/2+wt});});};$.debounce=function(name,timeout,fn){var ev=$.debounce.events[name];if(ev==undefined){ev={};ev.t=setTimeout(function(){if(ev.f!=0){ev.f();}
$.debounce.events[name]=undefined;},timeout);ev.f=0;$.debounce.events[name]=ev;fn();}
else{ev.f=fn;}};$.debounce.events={};$.fn.debounceBind=function(eventType,name,timeout,fn){return this.bind(eventType,null,function(){$.debounce(name,timeout,fn);});};$.fn.keepCenter=function(){if($.fn.keepCenter.set==undefined){$.fn.keepCenter.set=this;$(window).debounceBind('resize scroll','fn.keepCenter',10,$.fn.keepCenter.onCenter);}
else
$.fn.keepCenter.set=$.fn.keepCenter.set.add(this);return this.winCenter();};$.fn.keepCenter.onCenter=function(){$.fn.keepCenter.set.winCenter();};$.alertBar={add:function(text,url){$("tr:last",$("#AlertBarDiv").show()).clone().show().insertAfter("#AlertBarDiv tr:last").find("a").attr('href',url).text(text);}};$.fn.hoverClass=function(className){return this.hover(function(){$(this).addClass(className);},function(){$(this).removeClass(className);});};$.webmethod=function(options){var o=$.extend({type:'POST',contentType:'application/json; charset=utf-8',data:"{}",dataType:"json"},options);$.ajax(o);};$.tempCss=function(css){$('head').append('<style type="text/css" id="TempCSS">'+css+'</style>');};$.tempCssRevert=function(){$('head #TempCSS').remove();}})(jQuery);
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();