/* START Channel9.Web.UI.Scripts.Globals.js */
Type.registerNamespace("Channel9");Channel9.Globals=function(){Channel9.Globals.initializeBase(this)};Channel9.Globals.appPath="";Channel9.Globals.themePath="";Channel9.Globals.registeredKeys=null;Channel9.Globals.onError=function(a){alert(Channel9.Globals._getFormattedError(a))};Channel9.Globals.onTimeout=function(a){alert(Channel9.Globals._getFormattedError(a))};Channel9.Globals._getFormattedError=function(c,d){var b=true,a;if(d==undefined||String.isNullOrEmpty(d))d="An unhandled exception occurred:";a=new Sys.StringBuilder(d);if(!String.isNullOrEmpty(c.get_exceptionType())){if(b)a.append("\n\n");a.append("\nType: ");a.append(c.get_exceptionType());b=false}if(!String.isNullOrEmpty(c.get_message())){if(b)a.append("\n\n");a.append("\nMessage: ");a.append(c.get_message());b=false}if(!String.isNullOrEmpty(c.get_message())){if(b)a.append("\n\n");a.append("\nStack Trace: ");a.append(c.get_stackTrace());b=false}return a.toString()};Channel9.Globals.getBrowserMeasurements=function(){var a={};a.page={};a.window={};if(window.innerHeight&&window.scrollMaxY){a.window.scrollWidth=document.body.scrollWidth;a.window.scrollHeight=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){a.window.scrollWidth=document.body.scrollWidth;a.window.scrollHeight=document.body.scrollHeight}else{a.window.scrollWidth=document.body.offsetWidth;a.window.scrollHeight=document.body.offsetHeight}if(self.innerHeight){a.window.width=self.innerWidth;a.window.height=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){a.window.width=document.documentElement.clientWidth;a.window.height=document.documentElement.clientHeight}else if(document.body){a.window.width=document.body.clientWidth;a.window.height=document.body.clientHeight}if(a.window.scrollHeight<a.window.height)a.page.height=a.window.height;else a.page.height=a.window.scrollHeight;if(a.window.scrollWidth<a.window.width)a.page.width=a.window.width;else a.page.width=a.window.scrollWidth;return a};Channel9.Globals.getElementSize=function(a){var b={};if(a.offsetHeight)b.height=a.offsetHeight;else if(a.clientHeight)b.height=a.clientHeight;if(a.offsetWidth)b.width=a.offsetWidth;else if(a.clientWidth)b.width=a.clientWidth;return b};Channel9.Globals.getElementLocation=function(c){var b={},d=0,e=0,a;if(c!=null){a=c;if(a.offsetParent)while(a.offsetParent){d+=a.offsetLeft;a=a.offsetParent}else if(a.x)d+=a.x;a=c;if(a.offsetParent)while(a.offsetParent){e+=a.offsetTop;a=a.offsetParent}else if(a.y)e+=a.y;b.x=d;b.y=e;return b}else alert(String.format("Element '{0}' was not found",id))};Channel9.Globals.scrollToElement=function(b){var a=Channel9.Globals.getElementLocation(b);window.scrollTo(a.x,a.y)};Channel9.Globals.registerClass("Channel9.Globals");var beacon;function resultBeacon(c,b,d){var a="";if(!d){a="/beacon.ashx?id="+c+"&t="+escape(b);beacon=new Image;beacon.src=a;return true}else{a="/beacon.ashx?id="+c+"&t="+escape(b)+"&u="+escape(d);window.location=a;return false}};
/* END Channel9.Web.UI.Scripts.Globals.js */
/* START Channel9.Web.UI.Scripts.String.js */
String.isNullOrEmpty=function(a){return a==null||a==""};String.trim=function(b,a){var c=b;if(a==undefined||a==null)a=" ";String.trimLeft(b,a);String.trimRight(b,a);return c};String.trimLeft=function(c,b){var a=c;if(b==undefined||b==null)b=" ";while(a.substring(0,1)==b)a=a.substring(1,a.length);return a};String.trimRight=function(c,b){var a=c;if(b==undefined||b==null)b=" ";while(a.substring(a.length-1,a.length)==b)a=a.substring(0,a.length-1);return a};String.shorten=function(a,b){if(a.length>b)return a.substring(0,b)+"&#8230;";else return a};String.prototype.encodeHtml=function(){var a=document.createElement("div");a.appendChild(document.createTextNode(this));return a.innerHTML};
/* END Channel9.Web.UI.Scripts.String.js */
/* START Channel9.Web.UI.Lightbox.Lightbox.js */
Type.registerNamespace("Channel9.Web.UI");Channel9.Web.UI.Lightbox=function(c){var a=this,b=document;if(window.Channel9_Web_UI_Lightbox_GlobalInstance)return this;window.Channel9_Web_UI_Lightbox_GlobalInstance=this;a.loadingButton="/default/4-other/images/lightbox/loading.gif";a.closeButton="/default/4-other/images/lightbox/close.gif";a.overlayZIndex="90";a.loadingImageZIndex="150";a.lightboxZIndex="100";a.closeButtonZIndex="200";a.anchors=[];a.rootCssPath="";a.overlay=0;a.imageBox=0;a.loadingImage=0;a.closeImage=0;a.imagePreloader=0;a.thebox=c;a.boxCaption=0;a.boxDetails=0;a.image=0;a.getKey=function(b){if(b.charCode==Sys.UI.Key.esc)a.hide()};a.show=function(b){a.cancelImageLoadHandler();if(b&&typeof b.target!=="undefined"){a._imagePrep();a._showImage(b)}else{a._nonImagePrep(b);a._show(b)}a.listenKey()};a._imagePrep=function(){if(a.__nonImage){a.frame.removeChild(a.__nonImage);a.__nonImage=0}a.image.style.display="block"};a._nonImagePrep=function(b){if(a.__nonImage&&a.__nonImage!=b){a.frame.removeChild(a.__nonImage);a.__nonImage=0}a.image.style.display="none"};a._showImage=function(e){var b=e.target;while(b&&!(b.tagName.toLowerCase()==="a"&&b.getAttribute("rel")==="lightbox"))b=b.parentNode;if(!b||e.ctrlKey)return;e.preventDefault();var c=a.getPageSize(),g=a.getPageScroll();if(a.loadingImage){a.loadingImage.style.top=g[1]+(c[3]-35-a.loadingImage.height)/2+"px";a.loadingImage.style.left=(c[0]-20-a.loadingImage.width)/2+"px";a.loadingImage.style.display="block"}a.overlay.style.height=c[1]+"px";a.overlay.style.display="block";a.imagePreloader=new Image;var d=a.imagePreloader;$addHandler(d,"load",a.imagePreloaderLoaded);a._watchingImagePreloaderLoad=1;d.src=b.getAttribute("href",2);var f=b.getAttribute("title");if(f)d.title=f};a._show=function(c){if(!a.__nonImage)a.frame.appendChild(c);a.__nonImage=c;var b=a.getPageSize(),e=a.getPageScroll();if(a.loadingImage){a.loadingImage.style.top=e[1]+(b[3]-35-a.loadingImage.height)/2+"px";a.loadingImage.style.left=(b[0]-20-a.loadingImage.width)/2+"px";a.loadingImage.style.display="block"}a.thebox.style.display="block";var d=c.clientHeight,h=c.clientWidth;a.overlay.style.height=(d>b[1]?d:b[1])+35+"px";a.overlay.style.display="block";var g=e[1]+(b[3]-35-d)/2,f=(b[0]-20-h)/2;a.thebox.style.top=g<0?"5px":g+"px";a.thebox.style.left=f<0?"5px":f+"px"};a.hide=function(d){if(d)d.preventDefault();a.cancelImageLoadHandler();a.boxCaption.style.display="none";a.thebox.style.display="none";a.overlay.style.display="none";var c=b.getElementsByTagName("select");for(i=0;i!=c.length;i++)c[i].style.visibility="visible";a.ignoreKey()};a.loadingImageLoaded=function(){var d=a.loadingImage,c=b.createElement("a");c.setAttribute("href","#");c.setAttribute("title","Click to close");$addHandler(a.loadingImage,"click",a.hide);a.overlay.appendChild(c);d.setAttribute("id","loadingImage");d.style.position="absolute";d.style.zIndex=a.loadingImageZIndex;c.appendChild(d);a._watchingLoadingImageLoad=0;$removeHandler(a.loadingImage,"load",a.loadingImageLoaded);return false};a.closeImageLoaded=function(){var b=a.closeImage;b.setAttribute("id","closeButton");b.style.position="absolute";b.style.zIndex=a.closeButtonZIndex;b.setAttribute("title","Click to close");$addHandler(b,"click",a.hide);a.frame.appendChild(b);a._watchingCloseImageLoad=0;$removeHandler(a.closeImage,"load",a.closeImageLoaded);return false};a.imagePreloaderLoaded=function(){a.cancelImageLoadHandler();a.image.src=a.imagePreloader.src;if(!a.image.src){a.hide();return}var k=a.imagePreloader.height,d=a.imagePreloader.width,c=a.getPageSize(),j=a.getPageScroll(),f=j[1]+(c[3]-35-k)/2,e=(c[0]-20-d)/2;a.thebox.style.top=f<0?"0px":f+"px";a.thebox.style.left=e<0?"0px":e+"px";a.boxDetails.style.width=d+"px";var g=a.imagePreloader.getAttribute("title");if(g){a.boxCaption.style.display="block";a.boxCaption.style.width=d+"px";a.boxCaption.innerHTML=g}else a.boxCaption.style.display="none";if(navigator.appVersion.indexOf("MSIE")!=-1)a.pause(250);if(a.loadingImage)a.loadingImage.style.display="none";var h=b.getElementsByTagName("select");for(i=0;i!=h.length;i++)h[i].style.visibility="hidden";a.thebox.style.display="block";a.overlay.style.height=c[1]+"px";return false};Channel9.Web.UI.Lightbox.initializeBase(a,[c])};Channel9.Web.UI.Lightbox.prototype={get_rootCssPath:function(){return this.rootCssPath},set_rootCssPath:function(a){this.rootCssPath=a},get_loadingButton:function(){return this.get_rootCssPath()+this.loadingButton},get_closeButton:function(){return this.get_rootCssPath()+this.closeButton},discover:function(a){var c=this;if(typeof a==="string")a=$get(a);if(!a||!document.getElementsByTagName)return;var d=a.getElementsByTagName("a"),b=0,e=0;while(b=d[e++])if(b.getAttribute("rel")==="lightbox"&&b.getAttribute("href",2)){c.anchors.push(b);$addHandler(b,"click",c.show)}},rediscover:function(a){this.lose(a);this.discover(a)},lose:function(b){var a=this,c=0,e=0;if(b){if(typeof b==="string")b=$get(b);if(!b||!document.getElementsByTagName)return;var g=b.getElementsByTagName("a"),d=0,f=0;while(c=g[e++])if(c.getAttribute("rel")==="lightbox"&&c.getAttribute("href",2))while(d=a.anchors[f++])if(c==d){$removeHandler(d,"click",a.show);Array.removeAt(a.anchors,f-1)}}else{while(c=a.anchors[e++])$removeHandler(c,"click",a.show);a.anchors=[]}},initialize:function(){Channel9.Web.UI.Lightbox.callBaseMethod(this,"initialize");var a=this,d=document,h=d.body;a.overlay=d.createElement("div");var b=a.overlay;b.setAttribute("id","lightboxOverlay");$addHandler(b,"click",a.hide);b.style.display="none";b.style.position="absolute";b.style.top="0";b.style.left="0";b.style.zIndex=a.overlayZIndex;b.style.width="100%";h.insertBefore(b,h.firstChild);var n=a.getPageSize(),m=a.getPageScroll();if(a.get_loadingButton()){a.loadingImage=new Image;var i=a.loadingImage;$addHandler(i,"load",a.loadingImageLoaded);a._watchingLoadingImageLoad=1;i.src=a.get_loadingButton()}a.thebox.parentNode.removeChild(a.thebox);var c=a.thebox;c.setAttribute("id","theLightbox");c.style.display="none";c.style.position="absolute";c.style.zIndex=a.lightboxZIndex;h.insertBefore(c,b.nextSibling);a.frame=d.createElement("div");var g=a.frame;g.setAttribute("id","lightboxFrame");c.appendChild(g);a.imageBox=d.createElement("div");var e=a.imageBox;e.setAttribute("title","Click to close");$addHandler(e,"click",a.hide);g.appendChild(e);if(a.get_closeButton()){a.closeImage=new Image;var j=a.closeImage;$addHandler(j,"load",a.closeImageLoaded);a._watchingCloseImageLoad=1;j.src=a.get_closeButton()}a.image=d.createElement("img");var l=a.image;l.setAttribute("id","lightboxImage");e.appendChild(l);a.boxDetails=d.createElement("div");var k=a.boxDetails;k.setAttribute("id","lightboxDetails");c.appendChild(k);a.boxCaption=d.createElement("div");var f=a.boxCaption;f.setAttribute("id","lightboxCaption");f.style.display="none";a.boxDetails.appendChild(f)},dispose:function(){var a=this;a.ignoreKey();a.cancelImageLoadHandler();if(a._watchingLoadingImageLoad)$removeHandler(a.loadingImage,"load",a.loadingImageLoaded);if(a._watchingCloseImageLoad)$removeHandler(a.closeImage,"load",a.closeImageLoaded);a.lose();$removeHandler(a.overlay,"click",a.hide);a.overlay=0;$removeHandler(a.closeImage,"click",a.hide);a.closeImage=0;$removeHandler(a.imageBox,"click",a.hide);a.imageBox=0;$removeHandler(a.loadingImage,"click",a.hide);a.loadingImage=0;Channel9.Web.UI.Lightbox.callBaseMethod(this,"dispose")},getPageSize:function(){var c,d;if(window.innerHeight&&window.scrollMaxY){c=document.body.scrollWidth;d=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;d=document.body.scrollHeight}else{c=document.body.offsetWidth+document.body.offsetLeft;d=document.body.offsetHeight+document.body.offsetTop}var b,a;if(self.innerHeight){b=self.innerWidth;a=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight}else if(document.body){b=document.body.clientWidth;a=document.body.clientHeight}if(d<a)pageHeight=a;else pageHeight=d;if(c<b)pageWidth=b;else pageWidth=c;arrayPageSize=[pageWidth,pageHeight,b,a];return arrayPageSize},getPageScroll:function(){var b,a=document;if(self.pageYOffset)b=self.pageYOffset;else if(a.documentElement&&a.documentElement.scrollTop)b=a.documentElement.scrollTop;else if(a.body)b=a.body.scrollTop;arrayPageScroll=["",b];return arrayPageScroll},listenKey:function(){$addHandler(window.document,"keypress",this.getKey);this._watchingDocumentKeypress=1},ignoreKey:function(){if(this._watchingDocumentKeypress){this._watchingDocumentKeypress=0;$removeHandler(window.document,"keypress",this.getKey)}},cancelImageLoadHandler:function(){var a=this;if(a._watchingImagePreloaderLoad){a._watchingImagePreloaderLoad=0;$removeHandler(a.imagePreloader,"load",a.imagePreloaderLoaded)}},pause:function(b){var a=new Date,c=a.getTime()+b;while(true){a=new Date;if(a.getTime()>c)return}}};Channel9.Web.UI.Lightbox.registerClass("Channel9.Web.UI.Lightbox",Sys.UI.Control);
/* END Channel9.Web.UI.Lightbox.Lightbox.js */
/* START Microsoft.Communities.CommunityBar.js */
var msc_menuDisplayTime,msc_displayTime,msc_speed,msc_wait,msc_itemCount,msc_itemIndex,msc_links,msc_MouseIsOver,msc_isFirstTime,msc_fadeOutElement,msc_fadeOutOpacity,msc_fadeInElement,msc_fadeInOpacity,msc_isMouseOverLink;function msc_hideMenu(){if(!msc_MouseIsOver)document.getElementById("cb_menu").style.display="none";else setTimeout(msc_hideMenu,msc_menuDisplayTime*500)}function cb_showmenu(){var a;a=document.getElementById("cb_menu");a.style.display="block";setTimeout(msc_hideMenu,msc_menuDisplayTime*1e3);msc_MouseIsOver=true}function msc_menuMouseOut(){msc_MouseIsOver=false;setTimeout(msc_hideMenu,msc_menuDisplayTime*500)}function msc_menuMouseOver(){msc_MouseIsOver=true}function msc_setTitle(a){window.title=a}function msc_mouseOverLink(){msc_isMouseOverLink=true}function msc_mouseOutLink(){msc_isMouseOverLink=false}function msc_rotateLinks(){if(!msc_isMouseOverLink){var b="cb_link"+msc_itemIndex,a=document.getElementById(b);if(a&&!msc_isFirstTime)a.style.display="none";msc_itemIndex++;if(msc_itemIndex>msc_itemCount)msc_itemIndex=1;b="cb_link"+msc_itemIndex;a=document.getElementById(b);if(a)a.style.display=msc_isFirstTime?"inline":"block"}setTimeout(msc_rotateLinks,msc_displayTime*1e3)}function msc_initVar(){var a;msc_menuDisplayTime=1;msc_displayTime=10;msc_itemCount=20;msc_itemIndex=Math.floor(Math.random()*msc_itemCount);msc_fadeOutElement=null;msc_fadeOutOpacity=null;msc_fadeInElement=null;msc_fadeInOpacity=null;msc_isFirstTime=true;msc_isMouseOverLink=false;msc_rotateLinks();msc_isFirstTime=false;msc_MouseIsOver=false;for(var b=1;b<=msc_itemCount;b++){a=document.getElementById("cb_link"+b.toString());if(a){a.onmouseover=msc_mouseOverLink;a.onmouseout=msc_mouseOutLink}}}function msc_fadeOut(b,a){if(b===undefined||b===null||a===undefined||a===null){b=fadeOutElement;if(msc_fadeOutOpacity===null)a=99;else a=msc_fadeOutOpacity}else msc_fadeOutElement=b;if(a>=5){msc_setOpacity(b,a);a-=4;msc_fadeOutOpacity=a;setTimeout(msc_fadeOut,50)}else{msc_fadeOutElement=null;msc_fadeOutOpacity=null;document.getElementById(b).style.display="none"}}function msc_fadeIn(b,a){if(b===undefined||b===null||a===undefined||a===null){b=fadeInElement;if(msc_fadeInOpacity===null)a=0;else a=msc_fadeInOpacity}else msc_fadeInElement=b;if(a<99){msc_setOpacity(b,a);a+=4;msc_fadeInOpacity=a;setTimeout(msc_fadeIn,50)}else{msc_fadeInElement=null;msc_fadeInOpacity=null;setOpacity(b,100)}}function msc_setOpacity(c,b){var a=document.getElementById(c);if(a){a.style.filter="alpha(style = 0, opacity:"+b+")";a.style.KHTMLOpacity=b/100;a.style.MozOpacity=b/100;a.style.opacity=b/100}};
/* END Microsoft.Communities.CommunityBar.js */
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
(function() {var fn = function() {$get('ctl00_RadScriptManager1_HiddenField').value += ';;Channel9.Web.UI:en-US:52f8064b-386c-4732-942c-e502aa05aad2:b1f64471:b6ad9aee:1b1af369;Microsoft.Communities.Bar:en-US:761324cc-1222-49cd-8e91-fb5268964cce:d49a8b24';Sys.Application.remove_load(fn);};Sys.Application.add_load(fn);})();
