function Master(){}Master.authenticated=true;Master.loginUrl="";Master.isAuthenticated=function(){if(Master.authenticated){return true}else{Master.forwardToLogin()}return false};Master.forwardToLogin=function(){try{var a=window.location,b=Master.loginUrl+"?RedirectUrl="+a;window.location=b}catch(c){}};var prevMethod;function sort(f){var b=f.cellIndex,a=f.parentNode.parentNode.parentNode.rows,m=f.parentNode.parentNode.parentNode.parentNode.clientID,o=m+"_"+b+"_asc";if(prevMethod!=null&&o==prevMethod){o=o.replace("_asc","_desc")}prevMethod=o;for(var g=1;g<a.length-1;g++){var c=a[g].getElementsByTagName("td");if(c.length>b){for(var e=g,n=c[b].innerHTML,j=g+1;j<a.length;j++){var l=a[j].getElementsByTagName("td");if(l.length>b){var h=l[b].innerHTML;if(o.match("_asc")&&h<n){n=h;e=j}else{if(o.match("_desc")&&h>n){n=h;e=j}}}}swapRow(a[e],a[g])}}for(var g=1;g<a.length;g++){for(var c=a[g].getElementsByTagName("td"),d="",j=1;j<c.length;j++){d="";if(j==b){d="testList-cellalt"}c[j].className=d}}}function swapRow(d,f){var a=d.getElementsByTagName("td"),c=f.getElementsByTagName("td");if(a.length!=c.length){return}for(var b=0;b<a.length;b++){var e=a[b].innerHTML;a[b].innerHTML=c[b].innerHTML;c[b].innerHTML=e}}var pixelsPerInterval=28,msecPerInterval=20,panelSize=new Array(10),panelStatus=new Array(10),panelLock=new Array(10);function slowTogglePanel(d){if(panelLock[d]==null||panelLock[d]!="Locked"){panelLock[d]="Locked"}else{return false}if(panelStatus[d]==null||panelStatus[d]==""){panelStatus[d]="Shown"}var a=document.getElementById(d+"Content");if(panelStatus[d]=="Shown"){var b=0;if(a.clientHeight==null||a.clientHeight==""||a.clientHeight<=0){var c=a.style.overflow;a.style.overflow="hidden";b=a.clientHeight;a.style.overflow=c}else{b=a.clientHeight}panelSize[d]=b;a.style.overflow="hidden";changeSize(d,0)}else{panelStatus[d]=="Hidden"&&changeSize(d,panelSize[d])}return true}function changeSize(d,b){var a=document.getElementById(d+"Content"),e=a.clientHeight,c=false;if(panelStatus[d]=="Shown"){c=true}if(isFinished(e,b)){return}if(c&&e>b&&e<pixelsPerInterval){e=b}else{if(!c&&e<b&&b-e<pixelsPerInterval){e=b}else{if(c){e=e-pixelsPerInterval}else{e=e+pixelsPerInterval}}}a.style.height=e+"px";if(isFinished(e,b)){changeComplete(d);return}else{setTimeout('changeSize("'+d+'", '+b+")",msecPerInterval)}}function changeComplete(b){var a=document.getElementById(b+"Content"),c=document.getElementById(b+"Title");if(panelStatus[b]=="Hidden"){panelSize[b]=null;a.style.overflow="visible";panelStatus[b]="Shown";c.innerHTML=c.innerHTML.replace("+","-")}else{panelStatus[b]="Hidden";c.innerHTML=c.innerHTML.replace("-","+")}panelLock[b]=null}function isFinished(a,b){if(a==null||b==null||a==b){return true}else{return false}}function togglePanel(b){var a=document.getElementById(b+"Content"),c=document.getElementById(b+"Title");if(a.style.display!="none"){a.style.display="none";c.innerHTML=c.innerHTML.replace("-","+")}else{a.style.display="block";c.innerHTML=c.innerHTML.replace("+","-")}}(function(aD,aE,aF){function a2(a){if(!aU){a5=a,aP(aD.extend(a0,aD.data(a5,aH))),ah=aD(a5),aQ=0,a0.rel!=="nofollow"&&(ah=aD("."+aM).filter(function(){var c=aD.data(this,aH).rel||this.rel;return c===a0.rel}),aQ=ah.index(a5),aQ===-1&&(ah=ah.add(a5),aQ=ah.length-1));if(!aS){aS=aT=!0,an.show();if(a0.returnFocus){try{a5.blur(),aD(a5).one(ay,function(){try{this.focus()}catch(b){}})}catch(d){}}am.css({opacity:+a0.opacity,cursor:a0.overlayClose?"pointer":"auto"}).show(),a0.w=aO(a0.initialWidth,"x"),a0.h=aO(a0.initialHeight,"y"),aX.position(0),aB&&ai.bind("resize."+aC+" scroll."+aC,function(){am.css({width:ai.width(),height:ai.height(),top:ai.scrollTop(),left:ai.scrollLeft()})}).trigger("resize."+aC),ar(aJ,a0.onOpen),aZ.add(ac).hide(),aY.html(a0.close).show()}aX.load(!0)}}function aK(){var f,h=aI+"Slideshow_",i="click."+aI,j,k,l;a0.slideshow&&ah[1]?(j=function(){ae.text(a0.slideshowStop).unbind(i).bind(aw,function(){if(aQ<ah.length-1||a0.loop){f=setTimeout(aX.next,a0.slideshowSpeed)}}).bind(av,function(){clearTimeout(f)}).one(i+" "+ax,k),an.removeClass(h+"off").addClass(h+"on"),f=setTimeout(aX.next,a0.slideshowSpeed)},k=function(){clearTimeout(f),ae.text(a0.slideshowStart).unbind([aw,av,ax,i].join(" ")).one(i,j),an.removeClass(h+"on").addClass(h+"off")},a0.slideshowAuto?j():k()):an.removeClass(h+"off "+h+"on")}function ar(a,d){d&&d.call(a5),aD.event.trigger(a)}function aP(a){for(var d in a){aD.isFunction(a[d])&&d.substring(0,2)!=="on"&&(a[d]=a[d].call(a5))}a.rel=a.rel||a5.rel||"nofollow",a.href=a.href||aD(a5).attr("href"),a.title=a.title||a5.title,typeof a.href=="string"&&(a.href=aD.trim(a.href))}function ak(b){return a0.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(b)}function aO(c,d){d=d==="x"?ai.width():ai.height();return typeof c=="string"?Math.round(/%/.test(c)?d/100*parseInt(c,10):parseInt(c,10)):c}function aN(a,b){var f=aE.createElement("div");a&&(f.id=aI+a),f.style.cssText=b||"";return aD(f)}var aG={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:!1},aH="colorbox",aI="cbox",aJ=aI+"_open",av=aI+"_load",aw=aI+"_complete",ax=aI+"_cleanup",ay=aI+"_closed",az=aI+"_purge",aA=aD.browser.msie&&!aD.support.opacity,aB=aA&&aD.browser.version<7,aC=aI+"_IE6",am,an,ao,ap,aq,aL,at,au,ah,ai,aj,aa,ab,ac,ad,ae,af,ag,aY,aZ,a0={},a1,al,a3,a4,a5,aQ,aR,aS,aT,aU,aV,aW,aX,aM=aI+"Element";aX=aD.fn[aH]=aD[aH]=function(e,h){var a=this,d;if(!a[0]&&a.selector){return a}e=e||{},h&&(e.onComplete=h);if(!a[0]||a.selector===undefined){a=aD("<a/>"),e.open=!0}a.each(function(){aD.data(this,aH,aD.extend({},aD.data(this,aH)||aG,e)),aD(this).addClass(aM)}),d=e.open,aD.isFunction(d)&&(d=d.call(a)),d&&a2(a[0]);return a},aX.init=function(){ai=aD(aF),an=aN().attr({id:aH,"class":aA?aI+(aB?"IE6":"IE"):""}),am=aN("Overlay",aB?"position:absolute":"").hide(),ao=aN("Wrapper"),ap=aN("Content").append(aj=aN("LoadedContent","width:0; height:0; overflow:hidden"),ab=aN("LoadingOverlay").add(aN("LoadingGraphic")),ac=aN("Title"),ad=aN("Current"),af=aN("Next"),ag=aN("Previous"),ae=aN("Slideshow").bind(aJ,aK),aY=aN("Close")),ao.append(aN().append(aN("TopLeft"),aq=aN("TopCenter"),aN("TopRight")),aN(!1,"clear:left").append(aL=aN("MiddleLeft"),ap,at=aN("MiddleRight")),aN(!1,"clear:left").append(aN("BottomLeft"),au=aN("BottomCenter"),aN("BottomRight"))).children().children().css({"float":"left"}),aa=aN(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),aD("body").prepend(am,an.append(ao,aa)),ap.children().hover(function(){aD(this).addClass("hover")},function(){aD(this).removeClass("hover")}).addClass("hover"),a1=aq.height()+au.height()+ap.outerHeight(!0)-ap.height(),al=aL.width()+at.width()+ap.outerWidth(!0)-ap.width(),a3=aj.outerHeight(!0),a4=aj.outerWidth(!0),an.css({"padding-bottom":a1,"padding-right":al}).hide(),af.click(function(){aX.next()}),ag.click(function(){aX.prev()}),aY.click(function(){aX.close()}),aZ=af.add(ag).add(ad).add(ae),ap.children().removeClass("hover"),am.click(function(){a0.overlayClose&&aX.close()}),aD(aE).bind("keydown."+aI,function(c){var d=c.keyCode;aS&&a0.escKey&&d===27&&(c.preventDefault(),aX.close()),aS&&a0.arrowKey&&ah[1]&&(d===37?(c.preventDefault(),ag.click()):d===39&&(c.preventDefault(),af.click()))})},aX.remove=function(){an.add(am).remove(),aD("."+aM).removeData(aH).removeClass(aM)},aX.position=function(b,h){function l(c){aq[0].style.width=au[0].style.width=ap[0].style.width=c.style.width,ab[0].style.height=ab[1].style.height=ap[0].style.height=aL[0].style.height=at[0].style.height=c.style.height}var i,j=0,k=0;an.hide(),a0.fixed&&!aB?an.css({position:"fixed"}):(j=ai.scrollTop(),k=ai.scrollLeft(),an.css({position:"absolute"})),a0.right!==!1?k+=Math.max(ai.width()-a0.w-a4-al-aO(a0.right,"x"),0):a0.left!==!1?k+=aO(a0.left,"x"):k+=Math.max(ai.width()-a0.w-a4-al,0)/2,a0.bottom!==!1?j+=Math.max(aE.documentElement.clientHeight-a0.h-a3-a1-aO(a0.bottom,"y"),0):a0.top!==!1?j+=aO(a0.top,"y"):j+=Math.max(aE.documentElement.clientHeight-a0.h-a3-a1,0)/2,an.show(),i=an.width()===a0.w+a4&&an.height()===a0.h+a3?0:b,ao[0].style.width=ao[0].style.height="9999px",an.dequeue().animate({width:a0.w+a4,height:a0.h+a3,top:j,left:k},{duration:i,complete:function(){l(this),aT=!1,ao[0].style.width=a0.w+a4+al+"px",ao[0].style.height=a0.h+a3+a1+"px",h&&h()},step:function(){l(this)}})},aX.resize=function(c){if(aS){c=c||{},c.width&&(a0.w=aO(c.width,"x")-a4-al),c.innerWidth&&(a0.w=aO(c.innerWidth,"x")),aj.css({width:a0.w}),c.height&&(a0.h=aO(c.height,"y")-a3-a1),c.innerHeight&&(a0.h=aO(c.innerHeight,"y"));if(!c.innerHeight&&!c.height){var d=aj.wrapInner("<div style='overflow:auto'></div>").children();a0.h=d.height(),d.replaceWith(d.children())}aj.css({height:a0.h}),aX.position(a0.transition==="none"?0:a0.speed)}},aX.prep=function(f){function a(c){aX.position(c,function(){function r(){aA&&an[0].style.removeAttribute("filter")}var s,t,u,l,m=ah.length,p,q;!aS||(q=function(){clearTimeout(aW),ab.hide(),ar(aw,a0.onComplete)},aA&&aR&&aj.fadeIn(100),ac.html(a0.title).add(aj).show(),m>1?(typeof a0.current=="string"&&ad.html(a0.current.replace(/\{current\}/,aQ+1).replace(/\{total\}/,m)).show(),af[a0.loop||aQ<m-1?"show":"hide"]().html(a0.next),ag[a0.loop||aQ?"show":"hide"]().html(a0.previous),s=aQ?ah[aQ-1]:ah[m-1],u=aQ<m-1?ah[aQ+1]:ah[0],a0.slideshow&&ae.show(),a0.preloading&&(l=aD.data(u,aH).href||u.href,t=aD.data(s,aH).href||s.href,l=aD.isFunction(l)?l.call(u):l,t=aD.isFunction(t)?t.call(s):t,ak(l)&&(aD("<img/>")[0].src=l),ak(t)&&(aD("<img/>")[0].src=t))):aZ.hide(),a0.iframe?(p=aD("<iframe/>").addClass(aI+"Iframe")[0],a0.fastIframe?q():aD(p).one("load",q),p.name=aI+ +(new Date),p.src=a0.href,a0.scrolling||(p.scrolling="no"),aA&&(p.frameBorder=0,p.allowTransparency="true"),aD(p).appendTo(aj).one(az,function(){p.src="//about:blank"})):q(),a0.transition==="fade"?an.fadeTo(i,1,r):r(),ai.bind("resize."+aI,function(){aX.position(0)}))})}function e(){a0.h=a0.h||aj.height(),a0.h=a0.mh&&a0.mh<a0.h?a0.mh:a0.h;return a0.h}function j(){a0.w=a0.w||aj.width(),a0.w=a0.mw&&a0.mw<a0.w?a0.mw:a0.w;return a0.w}if(!!aS){var i=a0.transition==="none"?0:a0.speed;ai.unbind("resize."+aI),aj.remove(),aj=aN("LoadedContent").html(f),aj.hide().appendTo(aa.show()).css({width:j(),overflow:a0.scrolling?"auto":"hidden"}).css({height:e()}).prependTo(ap),aa.hide(),aD(aR).css({"float":"none"}),aB&&aD("select").not(an.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(ax,function(){this.style.visibility="inherit"}),a0.transition==="fade"?an.fadeTo(i,0,function(){a(0)}):a(i)}},aX.load=function(e){var f,h,a=aX.prep;aT=!0,aR=!1,a5=ah[aQ],e||aP(aD.extend(a0,aD.data(a5,aH))),ar(az),ar(av,a0.onLoad),a0.h=a0.height?aO(a0.height,"y")-a3-a1:a0.innerHeight&&aO(a0.innerHeight,"y"),a0.w=a0.width?aO(a0.width,"x")-a4-al:a0.innerWidth&&aO(a0.innerWidth,"x"),a0.mw=a0.w,a0.mh=a0.h,a0.maxWidth&&(a0.mw=aO(a0.maxWidth,"x")-a4-al,a0.mw=a0.w&&a0.w<a0.mw?a0.w:a0.mw),a0.maxHeight&&(a0.mh=aO(a0.maxHeight,"y")-a3-a1,a0.mh=a0.h&&a0.h<a0.mh?a0.h:a0.mh),f=a0.href,aW=setTimeout(function(){ab.show()},100),a0.inline?(aN().hide().insertBefore(aD(f)[0]).one(az,function(){aD(this).replaceWith(aj.children())}),a(aD(f))):a0.iframe?a(" "):a0.html?a(a0.html):ak(f)?(aD(aR=new Image).addClass(aI+"Photo").error(function(){a0.title=!1,a(aN("Error").text("This image could not be loaded"))}).load(function(){var b;aR.onload=null,a0.scalePhotos&&(h=function(){aR.height-=aR.height*b,aR.width-=aR.width*b},a0.mw&&aR.width>a0.mw&&(b=(aR.width-a0.mw)/aR.width,h()),a0.mh&&aR.height>a0.mh&&(b=(aR.height-a0.mh)/aR.height,h())),a0.h&&(aR.style.marginTop=Math.max(a0.h-aR.height,0)/2+"px"),ah[1]&&(aQ<ah.length-1||a0.loop)&&(aR.style.cursor="pointer",aR.onclick=function(){aX.next()}),aA&&(aR.style.msInterpolationMode="bicubic"),setTimeout(function(){a(aR)},1)}),setTimeout(function(){aR.src=f},1)):f&&aa.load(f,a0.data,function(g,i,j){a(i==="error"?aN("Error").text("Request unsuccessful: "+j.statusText):aD(this).contents())})},aX.next=function(){!aT&&ah[1]&&(aQ<ah.length-1||a0.loop)&&(aQ=aQ<ah.length-1?aQ+1:0,aX.load())},aX.prev=function(){!aT&&ah[1]&&(aQ||a0.loop)&&(aQ=aQ?aQ-1:ah.length-1,aX.load())},aX.close=function(){aS&&!aU&&(aU=!0,aS=!1,ar(ax,a0.onCleanup),ai.unbind("."+aI+" ."+aC),am.fadeTo(200,0),an.stop().fadeTo(300,0,function(){an.add(am).css({opacity:1,cursor:"auto"}).hide(),ar(az),aj.remove(),setTimeout(function(){aU=!1,ar(ay,a0.onClosed)},1)}))},aX.element=function(){return aD(a5)},aX.settings=aG,aV=function(b){b.button!==0&&typeof b.button!="undefined"||b.ctrlKey||b.shiftKey||b.altKey||(b.preventDefault(),a2(this))},aD.fn.delegate?aD(aE).delegate("."+aM,"click",aV):aD("."+aM).live("click",aV),aD(aX.init)})(jQuery,document,this);(function(b){var a=b.scrollTo=function(f,d,g){b(window).scrollTo(f,d,g)};a.defaults={axis:"xy",duration:parseFloat(b.fn.jquery)>=1.3?0:1};a.window=function(d){return b(window)._scrollable()};b.fn._scrollable=function(){return this.map(function(){var f=this,d=!f.nodeName||b.inArray(f.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!d){return f}var g=(f.contentWindow||f).document||f.ownerDocument||f;return b.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};b.fn.scrollTo=function(f,d,e){if(typeof d=="object"){e=d;d=0}if(typeof e=="function"){e={onAfter:e}}if(f=="max"){f=9000000000}e=b.extend({},a.defaults,e);d=d||e.speed||e.duration;e.queue=e.queue&&e.axis.length>1;if(e.queue){d/=2}e.offset=c(e.offset);e.over=c(e.over);return this._scrollable().each(function(){var h=this,i=b(h),l=f,j,m={},n=i.is("html,body");switch(typeof l){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(l)){l=c(l);break}l=b(l,this);case"object":if(l.is||l.style){j=(l=b(l)).offset()}}b.each(e.axis.split(""),function(t,p){var v=p=="x"?"Left":"Top",g=v.toLowerCase(),u="scroll"+v,q=h[u],r=a.max(h,p);if(j){m[u]=j[g]+(n?0:q-i.offset()[g]);if(e.margin){m[u]-=parseInt(l.css("margin"+v))||0;m[u]-=parseInt(l.css("border"+v+"Width"))||0}m[u]+=e.offset[g]||0;if(e.over[g]){m[u]+=l[p=="x"?"width":"height"]()*e.over[g]}}else{var s=l[g];m[u]=s.slice&&s.slice(-1)=="%"?parseFloat(s)/100*r:s}if(/^\d+$/.test(m[u])){m[u]=m[u]<=0?0:Math.min(m[u],r)}if(!t&&e.queue){if(q!=m[u]){k(e.onAfterFirst)}delete m[u]}});k(e.onAfter);function k(g){i.animate(m,d,e.easing,g&&function(){g.call(this,f,e)})}}).end()};a.max=function(k,f){var o=f=="x"?"Width":"Height",d="scroll"+o;if(!b(k).is("html,body")){return k[d]-b(k)[o.toLowerCase()]()}var n="client"+o,g=k.ownerDocument.documentElement,j=k.ownerDocument.body;return Math.max(g[d],j[d])-Math.min(g[n],j[n])};function c(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(d){var c=location.href.replace(/#.*/,"");var a=d.localScroll=function(e){d("body").localScroll(e)};a.defaults={duration:1000,axis:"y",event:"click",stop:true,target:window,reset:true};a.hash=function(f){if(location.hash){f=d.extend({},a.defaults,f);f.hash=false;if(f.reset){var g=f.duration;delete f.duration;d(f.target).scrollTo(0,f);f.duration=g}b(0,location,f)}};d.fn.localScroll=function(f){f=d.extend({},a.defaults,f);return f.lazy?this.bind(f.event,function(g){var h=d([g.target,g.target.parentNode]).filter(e)[0];if(h){b(g,h,f)}}):this.find("a,area").filter(e).bind(f.event,function(g){b(g,this,f)}).end().end();function e(){return !!this.href&&!!this.hash&&this.href.replace(this.hash,"")==c&&(!f.filter||d(this).is(f.filter))}};function b(m,p,n){var o=p.hash.slice(1),q=document.getElementById(o)||document.getElementsByName(o)[0];if(!q){return}if(m){m.preventDefault()}var g=d(n.target);if(n.lock&&g.is(":animated")||n.onBefore&&n.onBefore.call(n,m,q,g)===false){return}if(n.stop){g.stop(true)}if(n.hash){var i=q.id==o?"id":"name",l=d("<a> </a>").attr(i,o).css({position:"absolute",top:d(window).scrollTop(),left:d(window).scrollLeft()});q[i]="";d("body").prepend(l);location=p.hash;l.remove();q[i]=o}g.scrollTo(q,n).trigger("notify.serialScroll",[q])}})(jQuery);
