
if(typeof window.Csp=='undefined'){window.Csp={};}
Csp.SearchComponent=function(withSiteScoping,withAutoScoping,searchWebHidden,withWatermark,watermarkText,searchBoxContainerId,searchTextBoxId,searchSiteButtonId,searchWebButtonId,scopingDropdownLinkId,scopingMenuContainerId){this.WithSiteScoping=withSiteScoping;this.WithAutoScoping=withAutoScoping;this.SearchWebHidden=searchWebHidden;this.WithWatermark=withWatermark;this.WatermarkText=watermarkText;this.SearchBoxContainerId=searchBoxContainerId;this.SearchTextBoxId=searchTextBoxId;this.SearchSiteButtonId=searchSiteButtonId;this.SearchWebButtonId=searchWebButtonId;this.DropdownLinkId=scopingDropdownLinkId;this.ScopingMenuContainerId=scopingMenuContainerId;this.isOpen=false;this.init();};Csp.SearchComponent.prototype={init:function(){var _this=this;$('#'+this.SearchSiteButtonId).click(function(){_this.search_onClick('mscom');});$('#'+this.SearchWebButtonId).click(function(){_this.search_onClick('live');});if(this.WithWatermark==true){$('#'+this.SearchTextBoxId).blur(function(){_this.setWatermark(false);}).focus(function(){_this.clearWatermark();});this.setWatermark(true);}
if(this.WithSiteScoping==true&&this.WithAutoScoping==false){var ddLink=$('#'+this.DropdownLinkId);if(ddLink.length){ddLink.toggle(jQuery.proxy(this.openMenu_onClick,this),jQuery.proxy(this.closeMenu_onClick,this));$('#'+this.SearchPanelId+' span.src_box, #'+this.ScopingMenuContainerId).mouseover(jQuery.proxy(this.clearMenuTimer,this));$("body").mouseover(jQuery.proxy(this.startMenuTimer,this));}}},setWatermark:function(always){var el=$('#'+this.SearchTextBoxId);if(always==true&&el.val().length>0&&el.val()!=this.WatermarkText){this.clearWatermark();}else if(always==true||el.val().length==0){el.addClass('src_watermark').val(this.WatermarkText);}},clearWatermark:function(){var el=$('#'+this.SearchTextBoxId);if(el.val()==this.WatermarkText){el.removeClass('src_watermark').val('');}else{el.removeClass('src_watermark');}},search_onClick:function(stype){var el=$('#'+this.SearchTextBoxId);var sterm;if(el.val()!=this.WatermarkText){sterm=el.val();}
if(typeof window.dcsMultiTrack!='undefined'){dcsMultiTrack('DCS.dcsuri',document.location.pathname,'WT.ti','FormButton:'+stype,'WT.dl','2','WT.fm','post','DCSext.sterm',sterm||'*','DCSext.stype',stype);delete DCS.dcsuri
WT.ti='';delete WT.fm;delete DCSext.sterm;delete DCSext.stype;}},openMenu:function(){var h=$('#'+this.SearchPanelId+' span.src_box').height()-1;if($('body').hasClass('rtl')==true){$('#'+this.ScopingMenuContainerId).css({'display':'inline-block','top':h+'px','left':'-1px'});}else{$('#'+this.ScopingMenuContainerId).css({'display':'inline-block','top':h+'px','right':'-1px'});}
this.isOpen=true;},closeMenu:function(){$('#'+this.ScopingMenuContainerId).css('display','none');this.isOpen=false;},startMenuTimer:function(e){var fnHide=function(){this.hideTimer=undefined;if(this.isOpen==true){$('#'+this.DropdownLinkId).click();}};if(!this.hideTimer){this.hideTimer=window.setTimeout(jQuery.proxy(fnHide,this),300);}},clearMenuTimer:function(e){e.stopPropagation();if(this.hideTimer){window.clearTimeout(this.hideTimer);this.hideTimer=undefined;}},openMenu_onClick:function(e){e.preventDefault();this.openMenu();},closeMenu_onClick:function(e){e.preventDefault();this.closeMenu();}};

function cspMediaBlock_parseMetaTag(linkId){wtRemoveCId(linkId);return true;}
function cspMediaBlock_setImageStyle(divClass,divId,imgStyle){var browserUA=navigator.userAgent.toLowerCase();var object_div=document.getElementById(divId);if(object_div!=null&&object_div.getElementsByTagName("object").length>0){var img_div=cspGetObjectsOfElementByTagAndClass(object_div.parentNode,"div",divClass);if(img_div.length>0){for(var i=0;i<img_div.length;i++){if((browserUA.indexOf("firefox")!=-1||browserUA.indexOf("msie")!=-1||browserUA.indexOf("safari")!=-1||browserUA.indexOf("opera")!=-1)&&object_div.getElementsByTagName("object")[i].type!="application/x-shockwave-flash"){img_div[i].style.display=imgStyle;}}}}
return true;}
function cspMediaBlock_isFlashInstalled(){return cspMediaBlock_getFlashVersion()>=6;}
function cspMediaBlock_getFlashVersion(){var i;if(window.ActiveXObject){for(i=12;i>5;i--){try{var flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);return i;}catch(e){}}}else if(navigator.plugins&&navigator.plugins.length){for(i=0;i<navigator.plugins.length;i++){if(navigator.plugins[i].name.indexOf("Shockwave Flash")!=-1){return navigator.plugins[i].description.split(" ")[2];}}}
return 0;}
function cspMediaBlock_writeFlashObject(swfFile,width,height,divId){if(width==0||width==undefined){width="";}
if(height==0||height==undefined){height="";}
document.getElementById(divId).innerHTML="<object "+(width!=""?" width=\""+width+"\"":"")+(height!=""?" height=\""+height+"\"":"")+" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"><param name=\"movie\" value=\""+swfFile+"\"><param name=\"allowScriptAccess\" value=\"always\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed "+(width!=""?" width=\""+width+"\"":"")+(height!=""?" height=\""+height+"\"":"")+" src=\""+swfFile+"\" quality=\"high\" bgcolor=\"#ffffff\" align=\"middle\" allowScriptAccess=\"always\" type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" wmode=\"transparent\"></object>";return true;}
function cspMediaBlock_showFlash(swfFile,width,height,divId,flImgCid,flCid,flImgId){if(cspMediaBlock_isFlashInstalled()){cspMediaBlock_writeFlashObject(swfFile,width,height,divId);if(flCid!=flImgCid){cspMediaBlock_parseMetaTag(flImgCid);}}else{cspMediaBlock_setImageStyle(flImgId,divId,"block");if(flCid!=flImgCid){cspMediaBlock_parseMetaTag(flCid);}}}
function cspMediaBlock_shouldShowSilverlight(version){return Silverlight.supportedUserAgent()&&Silverlight.isInstalled(version);}
function cspMediaBlock_showSilverlight(slVer,slId,xamlFile,slWidth,slHeight,slColor,isWinLess,slFramerate,slImgCid,slImgId,slCid){if(cspMediaBlock_shouldShowSilverlight(slVer)){var silverlightDiv=document.getElementById(slId);cspMediaBlock_CreateSilverlightObject(xamlFile,silverlightDiv,slId,slWidth,slHeight,slColor,isWinLess,slFramerate,slVer);if(slCid!=slImgCid){cspMediaBlock_parseMetaTag(slImgCid);}}else{cspMediaBlock_setImageStyle(slImgId,slId,"block");if(typeof $$SL!="undefined"){$$SL.registerCreative(jQuery.proxy(function(){var silverlightDiv=document.getElementById(slId);cspMediaBlock_CreateSilverlightObject(xamlFile,silverlightDiv,slId,slWidth,slHeight,slColor,isWinLess,slFramerate,slVer);var dcsuri=window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1)+($$SG.get_IsDirectInstall()==true?"directinstall/panel":"pagegate/panel");dcsMultiTrack("DCS.dcsuri",dcsuri,"DCSext.wt_linkid",slCid,"WT.dl","5","WT.ti","Silverlight Panel Refresh","WT.ad","","WT.mc_id","","WT.seg_4","Yes","WT.sli","Yes","WT.slv","1.0");cspMediaBlock_setImageStyle(slImgId,slId,"none");},window));}
if(slCid!=slImgCid){cspMediaBlock_parseMetaTag(slCid);}}}
function cspMediaBlock_CreateSilverlightObject(xamlFile,silverlightDiv,slId,slWidth,slHeight,slColor,isWinLess,slFramerate,slVer){Silverlight.createObject(xamlFile,silverlightDiv,slId+"_object",{width:slWidth,height:slHeight,background:slColor,isWindowless:isWinLess,framerate:slFramerate,version:slVer,enableFramerateCounter:"false",ignoreBrowserVer:"false",inplaceInstallPrompt:"false"},{onError:function(){},onLoad:null,onResize:null},null);}

if(typeof window.Csp=="undefined"){window.Csp={};}
Csp.Menu=function(id){this._id=id;this._menu=document.getElementById(id);this._hider=null;this._shower=null;$(document).keypress(jQuery.proxy(this.bodyKeyPress,this)).mouseover(jQuery.proxy(this.bodyMouseOver,this));$("a.h15-group",this._menu).click(jQuery.proxy(this.toggleMenu,this)).mouseover(jQuery.proxy(this.triggerShow,this));if(jQuery.browser.msie){$("a.h15-link",this._menu).click(jQuery.proxy(this.linkClick,this));}else{$("a.h15-link",this._menu).mousedown(jQuery.proxy(this.linkClick,this));}
$("div.h15-menu-container",this._menu).mouseover(jQuery.proxy(this.keepMenuVisible,this));};Csp.Menu.prototype={bodyKeyPress:function(e){if(e.keyCode==27){var menu=$(".h15-menu-container:visible",this._menu);this.hideMenus();menu.prev("a.h15-group").each(function(){this.focus();});}},bodyMouseOver:function(e){this.clearShower();this.triggerHide();},clearHider:function(){if(this._hider!=null){window.clearTimeout(this._hider);this._hider=null;}},clearShower:function(){if(this._shower!=null){window.clearTimeout(this._shower);this.shower=null;}},doubleQuote:function(s){return s.replace("'","''");},hideMenus:function(e){$("div.h15-groups table td").removeClass("h15-selected");$(".h15-menu-container",this._menu).hide();},keepMenuVisible:function(e){e.stopPropagation();this.clearHider();this.clearShower();},linkClick:function(e){var link=$(e.target);var subgroup=link.parents("ul.h15-links").prev("h6.h15-menu-header");var group=subgroup.parents("div.h15-menu-container").prev("a.h15-group");this.webTrends3(link.text(),subgroup.text(),group.text());},showFlyout:function(e){var count=$(".h15-menu-container",this._menu).length;var index=$(".h15-menu-container",this._menu).index(e);if(document.documentElement.dir!="rtl"){if(index<2){this.showFlyoutLeft(e);}else if(index<count-2){if($(".h15-column:has(.h15-menu)",e).length>1){this.showFlyoutRightMulti(e);}else{this.showFlyoutLeft(e);}}else{if($(".h15-column:has(.h15-menu)",e).length>1){this.showFlyoutLeftMulti(e);}else{this.showFlyoutRight(e);}}}else{if(index<2){this.showFlyoutRight(e);}else if(index<count-2){if($(".h15-column:has(.h15-menu)",e).length>1){this.showFlyoutLeftMulti(e);}else{this.showFlyoutRight(e);}}else{this.showFlyoutLeft(e);}}
e.show();window.setTimeout(function(){$(".h15-m1, .h15-m2, .h15-m3, .h15-m4",e).css("background","#fff");},0);},showFlyoutLeft:function(e){if(document.documentElement.dir=="rtl"){e.css("left",220-e.parent("td").width());}},showFlyoutLeftMulti:function(e){if(document.documentElement.dir=="rtl"){e.css("left",200-e.parent("td").width());}else{e.css("left",-200+e.parent("td").width());}},showFlyoutRight:function(e){if(document.documentElement.dir=="ltr"){e.css("left",-220+e.parent("td").width());}},showFlyoutRightMulti:function(e){e.css("left",-200+e.parent("td").width());},showMenu:function(e){this.hideMenus();var el=$(e.target);el.parent("td").addClass("h15-selected");this.showFlyout(el.next(".h15-menu-container"));if(typeof el.attr("h15:tag")=="undefined"){this.webTrends1(el.text());el.attr("h15:tag","1");}},toggleMenu:function(e){e.preventDefault();this.clearHider();this.clearShower();var el=$(e.target).next(".h15-menu-container");var shown=el.css("display")!="none";this.hideMenus();if(!shown){el.parent("td").addClass("h15-selected");this.showFlyout(el);}},triggerHide:function(){if(this._hider==null){this._hider=window.setTimeout(jQuery.proxy(this.hideMenus,this),1000);}},triggerShow:function(e){e.stopPropagation();this.clearHider();if(this._shower!=null){this.clearShower();}
this._shower=window.setTimeout(jQuery.proxy(function(){this.showMenu(e);},this),125);},webTrends1:function(name){if(typeof window.dcsMultiTrack!="undefined"){var name=dcsEscape(dcsEncode(this.doubleQuote(name)));try{dcsMultiTrack("DCS.dcsuri",this.normalizePathname(location.pathname),"DCSext.ngn_clevel","Level 1","DCSext.ngn_lname",name,"DCS.ngn_type","Master Navigation","WT.si_p","Level 2a","WT.ti",name+":menu:menu","WT.dl","1","DCS.wt_linkid","");}catch(e){}}},webTrends3:function(name,subgroup,group){if(typeof window.dcsMultiTrack!="undefined"){var campaignID="";var query=(location.search.length>0)?location.search.substring(1):"";var name=dcsEscape(dcsEncode(this.doubleQuote(name)));var title=dcsEscape(dcsEncode(this.doubleQuote(group)))+":"+dcsEscape(dcsEncode(this.doubleQuote(subgroup)))+":"+name;try{dcsMultiTrack("DCS.dcssip",location.hostname,"DCS.dcsuri",this.normalizePathname(location.pathname),"DCS.dcsqry",query,"DCSext.ngn_clevel","Level 2b","DCSext.ngn_lname",name,"DCS.ngn_type","Master Navigation","WT.si_p","Level 3","WT.ti",title,"WT.dl",1,"DCSext.wt_linkid",campaignID);}catch(e){}}},normalizePathname:function(path){return path[0]=='/'?path:"/"+path;}};Csp.Menu.layout=function(layout,menu){var columns=$("div.h15-column",menu);var currentHeight=0;var index=0;var height=0;$("div.h15-menu",layout).each(function(){height=$(this).height()+20;if(currentHeight>0&&index<3&&currentHeight+height>350){index++;currentHeight=0;}
currentHeight+=height;$(this).appendTo(columns[index]);});var menuHeight=0;columns.each(function(){menuHeight=Math.max(menuHeight,$(this).height());});var menuWidth=(index+1)*200;$(menu).height(Math.min(menuHeight,350)+10).width(menuWidth).css({visibility:"visible"});$(".h15-menu-inner",menu).height(menuHeight);columns.each(function(){var column=$(this);var ix=columns.index(this);if(ix<index){column.addClass("h15-dotted");}
if(ix<=index){column.height(menuHeight);}else{column.hide();}});};

if(typeof window.Csp=='undefined'){window.Csp={};}
Csp.Nbd=function(id,hasStatic,rssUrl,vrtPath,campaignId,campaignName){this.MaxRssItems=4;this.RssTimeOut=5000;this.RotationSpeed=1000;this.RotationTimerTimeout=5000;this.HoverTimeout=350;this.rotateTimer=0;this.hoverTimer=0;this.rssFeed;this.hasStatic=hasStatic;this.rssUrl=rssUrl;this.vrtPath=vrtPath;this.campaignId=campaignId;this.campaignName=campaignName;this.rssFeedBeconSent;this.id(id);var _this=this;if(jQuery.browser.msie){$(this.cssId()+' .nbd_headline a').click(function(e){_this.sendClickImpression($(e.target));});}else{$(this.cssId()+' .nbd_headline a').mousedown(function(e){_this.sendClickImpression($(e.target));});}
if(rssUrl!=''){if(this.hasStatic==true){this.MaxRssItems-=1;}
this.loadFeed(rssUrl);this.fnClose=function(e){if($(e.target).parents(_this.cssId()).length<1){$(_this.cssId()+' a.nbd_arrow').click();}};this.fnBodyKeyPress=function(e){if(e.keyCode==27||$(e.target).parents(_this.cssId()).length<1){$(_this.cssId()+' a.nbd_arrow').click();}};}else{this.waitToEnable();}};Csp.Nbd.prototype={id:function(newId){if(newId!=''&&newId!=undefined){this._id=newId;this._cssId='#'+newId;}
return this._id;},cssId:function(){return this._cssId;},loadFeed:function(url){url=encodeURIComponent(url);var _this=this;jQuery.ajax({type:'GET',url:this.vrtPath+'/shared/templates/components/cspMscomNewsBand/Rss.ashx?u='+url,timeout:this.RssTimeOut,cache:false,dataType:'xml',success:function(data,textStatus){_this.rssFeed=new Csp.Nbd.Rss(data,_this.MaxRssItems);var menu=$(_this.cssId()+' .nbd_menu');var rssItem;var listItem;var items=_this.rssFeed.items;if(items.length>1){for(var i=0;i<items.length;i++){rssItem=items[i];var li='<li><a class="nbd_NotSent" href="'+rssItem.link+'"';if(_this.campaignId!=''){li+=' cid="'+_this.campaignId+'"';}
if(_this.campaignName!=''){li+=' cpgn="'+_this.campaignName+'"';}
li+='>'+rssItem.title+'</a></li>';$(menu).prepend(li);}
if(jQuery.browser.msie){$(_this.cssId()+' .nbd_menu a').click(function(e){_this.sendClickImpression($(e.target));});}else{$(_this.cssId()+' .nbd_menu a').mousedown(function(e){_this.sendClickImpression($(e.target));});}
if(_this.hasStatic==false){$(_this.cssId()+' .nbd_headline a').attr('ltype','remove');}
_this.rssFeedBeconSent=false;_this.rssLoaded=true;_this.waitToEnable();}
$('head').append('<link rel="alternate" type="application/rss+xml" title="'+_this.rssFeed.title+'" href="'+_this.rssUrl+'" />');if(jQuery.browser.msie&&jQuery.browser.version>6){try{window.external.ContentDiscoveryReset();}catch(e){}}}});},waitToEnable:function(){if(window.silvergate&&!$$SG.get_IsUnloaded()){var _this=this;silvergate.registerUnload(function(){_this.enable();});}else{this.enable();}},enable:function(){var headline=$(this.cssId()+' .nbd_headline a');this.sendImpression(new Array(headline.attr('cid')),new Array(headline.attr('cpgn')),new Array(headline.text()),'/impression/load ','5');this.fallBackBeconSent=!this.hasStatic;if(this.rssLoaded==true){var _this=this;$(this.cssId()+' a.nbd_arrow').show().toggle(function(){_this.open();},function(){_this.close();});this.startRotateTimer();$(this.cssId()+' .nbd_bandWrapper').hover(function(){_this.hoverTimer=window.setTimeout(function(){_this.stopRotateTimer();},_this.HoverTimeout);},function(){window.clearTimeout(_this.hoverTimer);});$(this.cssId()+' a').focus(function(){_this.stopRotateTimer();});}},open:function(){$(this.cssId()+' .nbd_menuOverflowWrapper').show();if(this.rssFeedBeconSent==false||this.fallBackBeconSent==false){var cid=new Array();var cpgn=new Array();var ti=new Array();if(this.rssFeedBeconSent==false){var _this=this;$(this.cssId()+' .nbd_menu li a.nbd_NotSent').each(function(i,el){cid.push(_this.campaignId);cpgn.push(_this.campaignName);ti.push($(el).text());}).removeClass('nbd_NotSent');this.rssFeedBeconSent=true;}
if(this.fallBackBeconSent==false){var lnkFallback=$(this.cssId()+' .nbd_menu li:last a');cid.push(lnkFallback.attr('cid'));cpgn.push(lnkFallback.attr('cpgn'));ti.push(lnkFallback.text());this.fallBackBeconSent=true;}
this.sendImpression(cid,cpgn,ti,'/impression/open ','5');}
if($('html').attr('dir')=='rtl'){$(this.cssId()+' .nbd_menuWrapper').css({'width':($(this.cssId()+' .nbd_bandContainer').width()-$(this.cssId()+' .nbd_heading').width()-5)+'px','margin-right':($(this.cssId()+' .nbd_heading').width()+18)+'px'});}else{$(this.cssId()+' .nbd_menuWrapper').css({'width':($(this.cssId()+' .nbd_bandContainer').width()-$(this.cssId()+' .nbd_heading').width()-5)+'px','margin-left':($(this.cssId()+' .nbd_heading').width()+18)+'px'});}
$(document).bind('mousedown',this.fnClose).bind('keypress',this.fnBodyKeyPress);$('a,:input').bind('focus',this.fnBodyKeyPress);},close:function(){$(this.cssId()+' .nbd_menuOverflowWrapper').hide();$(document).unbind('mousedown',this.fnClose).unbind('keypress',this.fnBodyKeyPress);$('a,:input').unbind('focus',this.fnBodyKeyPress);},rotate:function(){if(this.rotateTimer==null){return;}
var headline=$(this.cssId()+' .nbd_headline');var mrgBtm=6;var distance=headline.height()+mrgBtm;var old_x=$(this.cssId()+' .nbd_heading').outerWidth();if($('html').attr('dir')=='rtl'&&jQuery.browser.msie&&document.documentMode&&document.documentMode>=8){old_x--;}
else if($('html').attr('dir')=='rtl'&&jQuery.browser.msie&&jQuery.browser.version==7){old_x-=this.convertToNumber($(this.cssId()+' .nbd_bandContainer').css('padding-left'));}
var old_y=headline.children('div:first').position().top;var old_y2=headline.append('<div><span></span></div>').children('div:last').position().top;if($('html').attr('dir')=='rtl'){headline.children('div:first').css({'position':'absolute','top':old_y,'right':old_x,'margin-bottom':mrgBtm+'px'});headline.children('div:last').css({'position':'absolute','top':old_y2+mrgBtm,'right':old_x});if(jQuery.browser.msie&&jQuery.browser.version==7){headline.children('div').css('width','932px');}}else{headline.children('div:first').css({'position':'absolute','top':old_y,'left':old_x,'margin-bottom':mrgBtm+'px'});headline.children('div:last').css({'position':'absolute','top':old_y2+mrgBtm,'left':old_x});}
var menuItem=$(this.cssId()+' .nbd_menu li:first');menuItem.children('a').appendTo(this.cssId()+' .nbd_headline div:last span');menuItem.remove();var _this=this;headline.children('div:first').animate({'top':(-1*distance)+'px'},this.RotationSpeed,function(){if($(this).find('a').attr('ltype')!='remove'){var index=$(_this.cssId()+' .nbd_menu li').size()-1;$(_this.cssId()+' .nbd_menu li:last').before('<li></li>');$(this).find('a').appendTo(_this.cssId()+' .nbd_menu li:eq('+index+')');}
$(this).remove();});headline.children('div:last').animate({'top':'0px'},this.RotationSpeed,function(){$(this).css({'position':'relative','top':'auto','left':'auto','right':'auto','width':'auto'});if(_this.rssFeedBeconSent==false){var lnkHeadline=$(this).find('a');if(lnkHeadline.hasClass('nbd_NotSent')==true){_this.sendImpression(new Array(_this.campaignId),new Array(_this.campaignName),new Array(lnkHeadline.text()),'/impression/rotate ','5');lnkHeadline.removeClass('nbd_NotSent');if($(_this.cssId()+' .nbd_menu li a.nbd_NotSent').length<1){_this.rssFeedBeconSent=true;}}}
_this.startRotateTimer();});},startRotateTimer:function(){if(this.rotateTimer!=null&&!(jQuery.browser.msie&&jQuery.browser.version<=6)){var _this=this;this.rotateTimer=window.setTimeout(function(){_this.rotate();},this.RotationTimerTimeout);}},stopRotateTimer:function(){this.rotateTimer=null;},sendImpression:function(cid,cpgn,title,type,dl){if(typeof window.dcsMultiTrack!='undefined'){for(var i=0;i<title.length;i++){if(title[i].length>150){title[i]=title[i].substring(0,150);}
title[i]=title[i].replace(/;/g,'%3B');}
var path=document.location.pathname;path=path.substring(0,path.lastIndexOf('/'));dcsMultiTrack('DCS.dcsuri',path+'/newsband'+type,'DCSext.hpti',title.join(';'),'WT.dl',dl,'DCSext.wt_linkid',cid.join(';'),'DCSext.hpcpgn',cpgn.join(';'));delete DCS.dcsuri
delete DCSext.hpti;delete DCSext.wt_linkid;delete DCSext.hpcpgn;}},sendClickImpression:function(lnk){this.sendImpression(new Array(lnk.attr('cid')),new Array(lnk.attr('cpgn')),new Array(lnk.text()),'/Click','1');},convertToNumber:function(str){if(/^\d+(px|em|pt|ex|in|cm|mm|pc)$/i.test(str)){return Number(str.substring(0,str.length-2));}
else if(/^\d+%$/.test(str)){return Number(str.substring(0,str.length-1));}
else if(/^\d+/.test(str)){return Number(str);}else{return 0;}}};Csp.Nbd.Rss=function(xml,maxItems){this.title='';this.link='';this.items=null;this.parse(xml,maxItems);};Csp.Nbd.Rss.prototype={parse:function(xml,maxItems){var channel=$('channel',xml).eq(0);this.title=$(channel).find('title:first').text();this.link=$(channel).find('link:first').text();this.items=new Array();var _this=this;$('item:lt('+maxItems+')',xml).each(function(){var item=new Csp.Nbd.Rss.FeedItem();item.title=$(this).find('title').eq(0).text();item.link=$(this).find('link').eq(0).text();_this.items.push(item);});}};Csp.Nbd.Rss.FeedItem=function(){};Csp.Nbd.Rss.FeedItem.prototype={title:'',link:''};

if(typeof window.Csp=='undefined'){window.Csp={};}
Csp.Vrtc=function(showTab,tabIds,linkIds,enableStickyTabs){this.TabIds=tabIds;this.LinkIds=linkIds
this.StickyTabsEnabled=enableStickyTabs;this.CookieExpirationWindow=365;this.CookieName='mscomhp';this.CookieRecords=[];this.RecordIndex=-1;this.StickyTabIndex=-1;this.ActiveTabIndex;this.ProposedTabIndex=0;this.TabTimer=null;this.ImpressionTimer=null;this.TabTimerDelay=250;this.ImpressionTimerDelay=1000;this.init(showTab);};Csp.Vrtc.AdCtrlDelegates=[];Csp.Vrtc.ActiveAdCtrlId;Csp.Vrtc.prototype={init:function(showTab){this.readMscomCookie();if(this.StickyTabsEnabled){this.StickyTabIndex=this.getStickyTabIndex();}
if(this.StickyTabIndex!=-1){if(!this.isTabIndexValid(this.StickyTabIndex)){if(!this.isTabIndexValid(showTab)){showTab=0;}}else{showTab=this.StickyTabIndex;}}else{if(!this.isTabIndexValid(showTab)){showTab=0;}}
var $defaultAd=$('#vrtc_ad_default');for(var i=0;i<this.LinkIds.length;i++){var $ad=$('#vrtc_ad_'+i);if($ad.length==0&&$defaultAd.length>0){var $scr=$defaultAd.find('script');if($scr.attr('linkid')!=undefined){this.LinkIds[i]+=';'+$scr.attr('linkid');}}}
this.collapseTabs(showTab);this.suppressImpressions();var biTabLoad=function(){if(typeof window._tag!='undefined'&&typeof _tag.dcsJSONTrack!='undefined'){var title=$('div.vrtc_ulTabs ul.vrtc_tab_headings li').eq(showTab).text();_tag.dcsJSONTrack({},{'DCSext.wt_linkid':this.getVisibleLinkIds(),'WT.dl':'5','WT.ti':'Tab:'+title,'WT.z_Area':'cspVerticalRolloverTab','WT.z_NavT':title,'WT.z_NavI':showTab,'WT.z_initial':this.getStickyState()});}}
$($.proxy(biTabLoad,this));if(showTab==0){var $scr;var $ad=$('#vrtc_ad_0');if($ad.length>0){$scr=$ad.find('script');}
else if($defaultAd.length>0){$scr=$defaultAd.find('script');}
if($scr!=undefined&&$scr.attr('linkid')!=undefined){var $wtCampaignId=$('#WtCampaignId');if($wtCampaignId.length==0){$wtCampaignId=$('#ctl00_WtCampaignId');}
if($wtCampaignId.length>0){var content=$wtCampaignId.attr('content');$wtCampaignId.attr('content',content+';'+$scr.attr('linkid'));}}}
$('div.vrtc_ulTabs ul.vrtc_tab_headings li a').mouseover(jQuery.proxy(this.activateTab,this)).click(jQuery.proxy(this.activateTab,this)).mouseout(jQuery.proxy(this.mouseOut,this));if(window.addEventListener){$('div.vt_tabPanel a').mousedown(jQuery.proxy(this.tabLinkClick,this));}else{$('div.vt_tabPanel a').click(jQuery.proxy(this.tabLinkClick,this));}
$(function(){var index=$('div.vt_tabPanel').index($('.vrtc_activetabdiv'));Csp.Vrtc.prototype.revealAd(index);});},getVisibleLinkIds:function(){var items=jQuery.find('.vrtc_activetabdiv a[cid]');var linkCIDList='';var unqLinks=[];for(var i=0;i<items.length;i++){var found=false;var cid=items[i].getAttribute('cid');for(var j=0;j<unqLinks.length;j++){if(cid==unqLinks[j]){found=true;break;}}
if(!found){unqLinks[unqLinks.length]=cid;linkCIDList+=cid;if(i<(items.length-1))
linkCIDList+=';';}}
return linkCIDList;},readMscomCookie:function(){var cookie=this.getCookieValue(this.CookieName);var path=this.getDocumentPath();this.CookieRecords=cookie.split('|');if(this.CookieRecords.length==1&&this.CookieRecords==''){this.CookieRecords=new Array();}
this.RecordIndex=-1;for(i=0;i<this.CookieRecords.length;++i){if(this.CookieRecords[i].search('path:'+path)>=0){if(this.CookieRecords[i].search('stickyTabIndex:')>=0){this.RecordIndex=i;break;}}}},getStickyTabIndex:function(){if(this.RecordIndex!=-1){var tabIndex;var matchSet=this.CookieRecords[this.RecordIndex].match('stickyTabIndex:([0-9]+)[,$]');if(matchSet==null){tabIndex=-1;}else{tabIndex=matchSet[1];}
return tabIndex;}else{return-1;}},isTabIndexValid:function(tabIndex){var numTabs=$('div.vrtc_ulTabs ul.vrtc_tab_headings li').length;if(tabIndex<0||tabIndex>=numTabs){return false;}
return true;},getCookieValue:function(cname){var cookie=document.cookie;if(cookie.length>0){var startIndex=cookie.indexOf(cname);if(startIndex!=-1){var endIndex=cookie.indexOf(';',startIndex);if(endIndex==-1){endIndex=cookie.length;}
return unescape(cookie.substring(startIndex+cname.length+1,endIndex));}}
return'';},getDocumentPath:function(){var path=document.location.pathname;var index=path.lastIndexOf('/');path=path.substr(0,index);if(path.length==0){path='/';}
return path;},getStickyState:function(){var index=$('div.vrtc_ulTabs ul li').index($('.vrtc_tabActive'));if(this.StickyTabIndex==-1){return 0;}else if(this.StickyTabIndex==index){return 1;}else{return 2;}},tabLinkClick:function(e){var linkTitle;var linkCid;var linkUri;if(e.target.tagName.toLowerCase()=="img"){linkCid=$(e.target).parent().attr('cid');linkTitle=$(e.target).attr('alt');linkUri=$(e.target).parent().attr('href');}else{linkCid=$(e.target).attr('cid');linkTitle=$(e.target).text();linkUri=$(e.target).attr('href');}
var index=$('div.vrtc_ulTabs ul li').index($('.vrtc_tabActive'));if(typeof window._tag!='undefined'&&typeof _tag.dcsJSONTrack!='undefined'){var tabTitle=$('div.vrtc_ulTabs ul.vrtc_tab_headings li').eq(index).text();var evt=_tag.dcsEvt(e,"A");var dcssip=evt.hostname?(evt.hostname.split(":")[0]):"";var dcsuri=evt.pathname?((evt.pathname.indexOf("/")!=0)?"/"+evt.pathname:evt.pathname):"/";var dcsqry=evt.search?evt.search.substring(evt.search.indexOf("?")+1,evt.search.length):"";var wtNavigation=_tag.dcsNavigation(e);_tag.dcsJSONTrack({},{'DCSext.wt_linkid':linkCid,'WT.dl':'1','WT.ti':'Link:'+linkTitle,'WT.z_Area':'cspVerticalRolloverTab','WT.z_NavT':tabTitle,'WT.z_NavI':index,'WT.z_initial':this.getStickyState(),'DCS.dcssip':dcssip,'DCS.dcsuri':dcsuri,'DCS.dcsqry':dcsqry,'DCS.dcsref':window.location.toString(),'WT.nv':wtNavigation,'DCSext.wtNavigation':wtNavigation});}
this.storeStickyTabIndex(index);},storeStickyTabIndex:function(index){var expDate=new Date();expDate.setDate(expDate.getDate()+this.CookieExpirationWindow);var path=this.getDocumentPath();var newRecord='stickyTabIndex:'+index+',path:'+path;if(this.RecordIndex!=-1){this.CookieRecords[this.RecordIndex]=newRecord;}
else this.CookieRecords.push(newRecord);if(this.CookieRecords.length>1){this.CookieRecords=this.CookieRecords.join('|');}
document.cookie=this.CookieName+'='+escape(this.CookieRecords)+'; expires='+expDate.toUTCString()+'; path=/';},revealAd:function(index){var $oldAd=$('li.vrtc_ad_visible');var $ad=$('#vrtc_ad_'+index);if($ad.length==0){$ad=$('#vrtc_ad_default');}
if($ad.length>0){var adCtrlId=$('div.cspAdControl',$ad).attr('id');var delegate=Csp.Vrtc.AdCtrlDelegates[adCtrlId];if(delegate!=undefined){delegate.call();Csp.Vrtc.AdCtrlDelegates[adCtrlId]=undefined;}
$oldAd.removeClass('vrtc_ad_visible').addClass('vrtc_ad_hidden');$ad.removeClass('vrtc_ad_hidden').addClass('vrtc_ad_visible');}},collapseTabs:function(except){this.ActiveTabIndex=except;$('div.vt_tabPanel').each(function(i){if(i==except){$(this).addClass('vrtc_activetabdiv').data('ViewCounter',1);}else{$(this).addClass('vrtc_tabHiddenPanel').data('ViewCounter',0);}});$('div.vrtc_ulTabs ul li').eq(except).addClass('vrtc_tabActive');},activateTab:function(e){var index=$('div.vrtc_ulTabs ul li').index($(e.target).closest('li'));if(index!=this.ActiveTabIndex){window.clearTimeout(this.TabTimer);this.ProposedTabIndex=index;this.TabTimer=window.setTimeout(jQuery.proxy(this.showActivatedTab,this),this.TabTimerDelay);}},showActivatedTab:function(){window.clearTimeout(this.ImpressionTimer);$('div.vrtc_activetabdiv').addClass('vrtc_tabHiddenPanel').removeClass('vrtc_activetabdiv');$('#vrtc_tbh_'+this.ActiveTabIndex).removeClass('vrtc_tabActive');$('#'+this.TabIds[this.ProposedTabIndex]).addClass('vrtc_activetabdiv').removeClass('vrtc_tabHiddenPanel');$('#vrtc_tbh_'+this.ProposedTabIndex).addClass('vrtc_tabActive');this.ActiveTabIndex=this.ProposedTabIndex;this.revealAd(this.ActiveTabIndex);if(this.LinkIds[this.ActiveTabIndex]!=false){this.ImpressionTimer=window.setTimeout(jQuery.proxy(this.sendImpression,this),this.ImpressionTimerDelay);}},mouseOut:function(){window.clearTimeout(this.TabTimer);},suppressImpressions:function(){for(var i=0;i<this.LinkIds.length;i++){if(this.LinkIds[i]!=false){wtRemoveCId(this.LinkIds[i]);}}},sendImpression:function(index){var index=this.ActiveTabIndex;var title=$('div.vrtc_ulTabs ul.vrtc_tab_headings li').eq(index).text();var tab=$('div.vt_tabPanel').eq(index)
var tabViews=tab.data('ViewCounter');tab.data('ViewCounter',++tabViews);var dl=5;if(tabViews>1){dl=8;}
var cidList=this.getVisibleLinkIds();if(typeof window._tag!='undefined'&&typeof _tag.dcsJSONTrack!='undefined'){_tag.dcsJSONTrack({},{'DCSext.wt_linkid':cidList,'WT.dl':dl,'WT.ti':'Tab:'+title,'WT.z_Area':'cspVerticalRolloverTab','WT.z_NavT':title,'WT.z_NavI':index,'WT.z_initial':this.getStickyState()});}
if(typeof window.$$O!='undefined'&&$$O.get_handlerUrl()!=''){$$O.recordComponentImpression({cattr:'/tabs/'+index,cid:cidList,cname:'cspVerticalRolloverTab',uri:window.location.href});}}};

function vt_setStyle(id){if(jQuery.browser.msie==true&&jQuery.browser.version>=7){var el=document.getElementById(id);if(el){var s=el.style;s.removeAttribute("filter");s.removeAttribute("-ms-filter");}}}

if(typeof window.Csp=="undefined"){window.Csp={};}
$$SL=Csp.Silverlight=function(version,interval){var handlers=new $$E();var silverlightVersion=version||"4.0";var timeout=interval||3000;return{displayCreatives:function(){handlers.callHandlers();},get_SilverlightVersion:function(){return silverlightVersion;},refreshCreatives:function(){if(Silverlight.isInstalled(silverlightVersion)){$$SL.displayCreatives();}else if($.browser.msie){window.setTimeout($$SL.refreshCreatives,timeout);}},registerCreative:function(handler){handlers.addHandler(handler);}};}();var silvergate;$$SG=Csp.SilverGate=function(args){if(args!==null){this._DaysToLive=args.daysToLive||1095;this._InstallID=args.installID;this._IsDirectInstall=args.isDirectInstall||false;this._NoThanksID=args.noThanksID;this._PopupID=args.popupID;this._Version=args.version||"4.0";}
this._CloseHandlers=new $$E();this._InstallHandlers=new $$E();this._ShowHandlers=new $$E();this._UnloadHandlers=new $$E();if(this._InstallID!==null){$('#'+this._InstallID).click(jQuery.proxy(this.onInstallClick,this));}
if(this._NoThanksID!==null){$('#'+this._NoThanksID).click(jQuery.proxy(this.onCloseClick,this));}
if(jQuery.browser.msie){this._KeyPressHandler=$(document.body).keypress(jQuery.proxy(this.onKeyPress,this));}else{this._KeyPressHandler=$(document).keypress(jQuery.proxy(this.onKeyPress,this));}
this._InstallUrl="http://www.microsoft.com/silverlight/handlers/getsilverlight.ashx?v="+this._Version;};$$SG.prototype={dispose:function(){if(this._InstallID!==null){$('#'+this._InstallID).unbind();}
if(this._NoThanksID!==null){$('#'+this._NoThanksID).unbind();}
if(this._KeyPressHandler!==null){if(jQuery.browser.msie){$(document.body).unbind("keypress");}else{$(document).unbind("keypress");}}},hidePopup:function(){if(this._PageGate!=null){this._PageGate.hide();this._PageGate.dispose();}
this.unloadPopup();},onCloseClick:function(){$$C.setCookie("pgcld","true",this._DaysToLive);if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("DCSext.wt_pg","Page Gate Close","WT.dl","16");}
this.hidePopup();this._CloseHandlers.callHandlers();},onInstallClick:function(){if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("DCSext.wt_pg","Install now","WT.dl","16");}
$$SL.refreshCreatives();location.href=this._InstallUrl;this.hidePopup();this._InstallHandlers.callHandlers();},onKeyPress:function(e){var target=e.target;var keyCode=e.charCode;if(keyCode==13&&target.className.indexOf("sg-ignore-enter")==-1){this.onInstallClick();}else if(keyCode==27){this.onCloseClick();}},registerClose:function(handler){this._CloseHandlers.addHandler(handler);},registerShow:function(handler){this._ShowHandlers.addHandler(handler);},registerUnload:function(handler){this._UnloadHandlers.addHandler(handler);},showPopup:function(){var popup=document.getElementById(this._PopupID);if(popup!==null){this._PageGate=new Csp.PageGate(this._PopupID);this._PageGate.show();$('#'+this._PopupID).addClass('sg-popup-image');popup.style.display="block";var installButton=document.getElementById(this._InstallID);if(installButton!==null){installButton.focus();}}
if(typeof window.dcsMultiTrack!="undefined"){dcsFunc("dcsCookie");dcsMeta();dcsMultiTrack("DCS.dcssip",window.location.hostname,"DCS.dcsuri",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1)+"pagegate/","DCSext.wt_sppt",WT.sp+"hp","DCSext.wt_pg","Silverlight Page Gate","WT.dl","15","WT.seg_4","No","DCSext.wt_ver","","DCSext.wt_target","","DCSext.wt_linkid","");}
this._ShowHandlers.callHandlers();},showSilverGate:function(){if($$SG.overridePopup()){$$C.removeCookie("pgcld");this.showPopup();}else if(!Silverlight.supportedUserAgent()){this.unloadPopup();}else if(typeof window.Silverlight!="undefined"&&Silverlight.isInstalled(this._Version)){$$SL.displayCreatives();this.unloadPopup();}else if(!$$C.enabled()||$$C.hasCookie("pgcld")){this.unloadPopup();}else{this.showPopup();}},unloadPopup:function(){if(typeof window.dcsRun!="undefined"&&$$SG.get_IsDisplayed()){dcsRun();}
this.dispose();this._UnloadHandlers.callHandlers();$$SG.set_IsUnloaded(true);}};$$SG.get_IsDirectInstall=function(){return this.IsDirectInstall||false;};$$SG.set_IsDirectInstall=function(value){this.IsDirectInstall=value;};$$SG.get_IsDisplayed=function(){return this.IsDisplayed||false;};$$SG.set_IsDisplayed=function(value){this.IsDisplayed=value;};$$SG.get_IsUnloaded=function(){return this.IsUnloaded||false;};$$SG.set_IsUnloaded=function(value){this.IsUnloaded=value;};$$SG.createDirectInstall=function(id,event){$('#'+id).bind(event,function(e){if(Silverlight.supportedUserAgent()){e.preventDefault();if(typeof window.dcsMultiTrack!="undefined"){var el=document.getElementById(this._InstallID);var text=(el!=null)?el.title:"Click to install";dcsMultiTrack("WT.ti","Direct Install: "+text,"DCSext.wt_slditi","Direct Install: "+text,"WT.dl","18");}
$$SL.refreshCreatives();$$SG.set_IsDirectInstall(true);location.href="http://www.microsoft.com/silverlight/handlers/getsilverlight.ashx?v="+$$SL.get_SilverlightVersion();}});};$$SG.createPageGate=function(args){this.set_IsDisplayed(this.shouldShowSilverGate(args));if(typeof window.Silverlight!="undefined"&&typeof Silverlight.WaitForInstallCompletion!="undefined"){Silverlight.WaitForInstallCompletion=function(){};}
silvergate=new $$SG({daysToLive:args.daysToLive,installID:args.installID,noThanksID:args.noThanksID,popupID:args.popupID});$(document).ready(jQuery.proxy(silvergate.showSilverGate,silvergate));};$$SG.overridePopup=function(){return $$Q.hasValue("showPageGate")||$$Q.hasValue("showpagegate");};$$SG.shouldShowSilverGate=function(args){if(this.overridePopup()){return true;}else if(!Silverlight.supportedUserAgent()){return false;}else if(typeof window.Silverlight!="undefined"&&Silverlight.isInstalled($$SL.get_SilverlightVersion())){return false;}else if(!args.isDirectInstall&&(!$$C.enabled()||$$C.hasCookie("pgcld"))){return false;}else{return true;}};$$PG=Csp.PageGate=function(popupID){this._popupID=popupID;this.initialize();}
$$PG=Csp.PageGate.prototype={dispose:function(){if(this._ResizeHandler!=null){$(window).unbind("resize",this._ResizeHandler);}
if(this._ScrollHandler!=null){$(window).unbind("scroll",this._ScrollHandler);}},getClientBounds:function(){var clientWidth;var clientHeight;if(jQuery.browser.msie){clientWidth=document.documentElement.clientWidth;clientHeight=document.documentElement.clientHeight;}
else if(jQuery.browser.safari){clientWidth=window.innerWidth;clientHeight=window.innerHeight;}
else if(jQuery.browser.opera){clientWidth=Math.min(window.innerWidth,document.body.clientWidth);clientHeight=Math.min(window.innerHeight,document.body.clientHeight);}
else{clientWidth=Math.min(window.innerWidth,document.documentElement.clientWidth);clientHeight=Math.min(window.innerHeight,document.documentElement.clientHeight);}
return{x:0,y:0,width:clientWidth,height:clientHeight};},hide:function(){this._popup.style.display="none";this._backgroundEl.style.display="none";this.turnSelectsOn();this.turnTabsOn();},initialize:function(){if(typeof this._popupID!="undefined"){this._tagsWithTabIndex=["A","AREA","BUTTON","IFRAME","INPUT","OBJECT","SELECT","TEXTAREA"];this._popup=document.getElementById(this._popupID);if(typeof this._popup!="undefined"){this._popup.style.position="absolute";this._popup.style.zIndex="10001";if(document.body.childNodes.length>0){document.body.insertBefore(this._popup,document.body.childNodes[0]);}else{document.body.appendChild(this._popup);}
this._ResizeHandler=$(window).resize(jQuery.proxy(this.onResize,this));this._ScrollHandler=$(window).scroll(jQuery.proxy(this.onScroll,this));this.resize();this.hide();}}},resize:function(){var clientBounds=this.getClientBounds();var clientHeight=clientBounds.height;var clientWidth=clientBounds.width;var scrollTop=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;var scrollLeft=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;var scrollHeight=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var scrollWidth=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);if(jQuery.browser.msie&&jQuery.browser.version==6){var width=$('#'+this._popupID).width();if(typeof this._popup!="undefined"){this._popup.style.top="20px";this._popup.style.left=(scrollLeft+((clientWidth-width)/2))+"px";}
var backgroundEl=this._backgroundEl;if(typeof backgroundEl=="undefined"){backgroundEl=this._backgroundEl=document.createElement("DIV");backgroundEl.className="sg-background";backgroundEl.style.left="0px";backgroundEl.style.position="absolute";backgroundEl.style.top="0px";backgroundEl.style.zIndex="10000";if(document.body.childNodes.length>0){document.body.insertBefore(backgroundEl,document.body.childNodes[0]);}else{document.body.appendChild(backgroundEl);}}
backgroundEl.style.height=Math.max(clientHeight,scrollHeight)+"px";backgroundEl.style.width=Math.max(clientWidth,scrollWidth)+"px";}else{var width=$('#'+this._popupID).width();if(typeof this._popup!="undefined"){this._popup.style.top="20px";this._popup.style.left=((clientWidth-width)/2)+"px";}
var backgroundEl=this._backgroundEl;if(typeof backgroundEl=="undefined"){backgroundEl=this._backgroundEl=document.createElement("DIV");backgroundEl.className="sg-background";backgroundEl.style.left="0px";backgroundEl.style.position="fixed";backgroundEl.style.top="0px";backgroundEl.style.zIndex="10000";if(document.body.childNodes.length>0){document.body.insertBefore(backgroundEl,document.body.childNodes[0]);}else{document.body.appendChild(backgroundEl);}}
backgroundEl.style.height=Math.max(clientHeight,scrollHeight)+"px";backgroundEl.style.width=Math.max(clientWidth,scrollWidth)+"px";}},show:function(){this._popup.style.display="block";this._backgroundEl.style.display="block";this.resize();this.turnSelectsOff();this.turnTabsOff();},turnSelectsOff:function(){if(jQuery.browser.msie&&jQuery.browser.version==6){$("SELECT").css("visibility","hidden");}},turnSelectsOn:function(){if(jQuery.browser.msie&&jQuery.browser.version==6){$("SELECT").css("visibility","visible");}},turnTabsOff:function(){var popupEls=[];var els=this._popup.getElementsByTagName("*");for(var i=0;i<els.length;i++){popupEls.push(els[i]);}
this._tabbedEls=[];var allEls=document.getElementsByTagName("*");for(var i=0;i<allEls.length;i++){var el=allEls[i];if($(popupEls).index(el)==-1){for(var j=0;j<this._tagsWithTabIndex.length;j++){if(this._tagsWithTabIndex[j]==el.tagName){this._tabbedEls.push({tag:el,index:el.tabIndex});el.tabIndex="-1";break;}}}}},turnTabsOn:function(){if(typeof this._tabbedEls!="undefined"){for(var i=0;i<this._tabbedEls.length;i++){var tabbedEl=this._tabbedEls[i];tabbedEl.tag.tabIndex=tabbedEl.index;}}},onResize:function(){this.resize();},onScroll:function(){this.resize();}};

