var _urlStockBase=$.snl.ir.models.api.urlTemplate.replace("{Controller}","Stock"),_urlStockData=_urlStockBase.replace("{Action}","StockData")+"?keyFndg=",_urlStockClosingPrice=_urlStockBase.replace("{Action}","ClosingPrice")+"?closingDate={closingDate}&keyFndg={keyFndg}",_urlStockCrossListedClosingPrice=_urlStockBase.replace("{Action}","CrossListedClosingPrice")+"?closingDate={closingDate}&keyFndg={keyFndg}",_urlStockChart=_urlStockBase.replace("{Action}","StockChart")+"?{query}",_urlStockMarketSummary=_urlStockBase.replace("{Action}","MarketSummary")+"?keyFndg={keyFndg}",_urlStockChartImageURL=_urlStockBase.replace("{Action}","ChartImageURL"),_urlCrossListedStockChart=_urlStockBase.replace("{Action}","CrossListedStockChart")+"?{query}",_urlCrossListedStockData=_urlStockBase.replace("{Action}","CrossListedStockData")+"?keyFndg=",currentCulture,iscrosslisted,Controller,getPopupData,populatePopupData,PopulateDefinitionData,GetDefinitionData,PopulateGroupDescriptionData,GetGroupDescriptions,PopulateGetTypeDescriptionsData,GetTypeDescriptions,PopulateFndgsInformationData,GetFndgsInformation;$.snl.ir.models.api.stock={},$.snl.ir.models.stock={},$.snl.ir.models.stockChart={},$.snl.ir.models.api.stock.getStockData=function(n,t){$.get(_urlStockData+n).done(function(i){(n!=null||n!=undefined)&&(window.snl.ir.globalVars.currentPageViewModel.keyFndg=n),window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrentCulture=i.cultureval.CultureVal,window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.shortDateformat=i.cultureval.ShortdateFormat,window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrencySymbol=i.cultureval.CurrencySymbol,window.snl.ir.globalVars.currentPageViewModel.IsCrossListed=!1;var r=$.snl.ir.models.stock.stockData.StockChart;$.snl.ir.models.stock.stockData=$.parseJSON(i.result.Content),$.snl.ir.models.stock.stockData.StockChart=r,t()}).fail(function(n){$.snl.ir.Log(n.responseText)}).always(function(){$.snl.ir.Log("complete")})},$.snl.ir.models.api.stock.getStockChart=function(n,t,i){$.get(_urlStockChart.replace("{query}",n)).done(function(n){$.snl.ir.models.stock.stockData.StockChart=$.parseJSON(n.Content).StockChart,t(i)}).fail(function(){}).always(function(){$.snl.ir.Log("complete")})},$.snl.ir.models.api.stock.getCrossListedStockData=function(n,t){$.get(_urlCrossListedStockData+n).done(function(i){(n!=null||n!=undefined)&&(window.snl.ir.globalVars.currentPageViewModel.keyFndg=n),window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrentCulture=i.cultureval.CultureVal,window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.shortDateformat=i.cultureval.ShortdateFormat,window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrencySymbol=i.cultureval.CurrencySymbol,window.snl.ir.globalVars.currentPageViewModel.IsCrossListed=!0;var r=$.snl.ir.models.stock.stockData.StockChart;$.snl.ir.models.stock.stockData=$.parseJSON(i.result.Content),$.snl.ir.models.stock.stockData.StockChart=r,t()}).fail(function(){}).always(function(){$.snl.ir.Log("complete")})},$.snl.ir.models.api.stock.getCrossListedStockChart=function(n,t,i){$.get(_urlCrossListedStockChart.replace("{query}",n)).done(function(n){$.snl.ir.models.stock.stockData.StockChart=$.parseJSON(n.Content).StockChart,t(i)}).fail(function(n){$.snl.ir.Log(n.responseText)}).always(function(){$.snl.ir.Log("complete")})},$.snl.ir.models.api.stock.getClosingPrice=function(n,t,i){var r=_urlStockClosingPrice.replace("{closingDate}",n).replace("{keyFndg}",t);$.get(r).done(function(n){$.snl.ir.models.stock.closingPrice=$.parseJSON(n.Content),i()}).fail(function(n){$.snl.ir.Log(n.responseText)}).always(function(){$.snl.ir.Log("complete")})},$.snl.ir.models.api.stock.getCrossListedClosingPrice=function(n,t,i){var r=_urlStockCrossListedClosingPrice.replace("{closingDate}",n).replace("{keyFndg}",t);$.get(r).done(function(n){$.snl.ir.models.stock.closingPrice=$.parseJSON(n.Content),i()}).fail(function(n){$.snl.ir.Log(n.responseText)}).always(function(){$.snl.ir.Log("complete")})},$.snl.ir.models.api.stock.getMarketSummary=function(n,t){var i=_urlStockMarketSummary.replace("{keyFndg}",n);$.get(i).done(function(n){$.snl.ir.models.stock.marketSummary=n,t()}).fail(function(){$.snl.ir.Log("error")}).always(function(){$.snl.ir.Log("complete")})},$.snl.ir.controls.grid=function(n){var o=this,f,t,e,r,s,u,i;o.grid=null;var h=function(n){f=n.gridElement||f,e=n.primaryKey||e,r=n.columns||r,s=n.features||s,u=n.otherOptions||u,i=n.footerRow||i,c(),$.preferCulture(window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrentCulture)},c=function(){var n={primaryKey:e,width:"100%",autoCommit:!0,fixedHeaders:!1,autoGenerateColumns:!1,alternateRowStyles:!1,enableHoverStyles:!1,columns:r,footerRow:i,features:[{name:"Updating",enableAddRow:!1,enableDeleteRow:!1,editMode:"none"}]};u&&$.each(u,function(t,i){n[i.name]=i.value}),t=$(f).igGrid(n),$.each(r,function(n,t){switch(t.dataType){case"number":t.formatter=l;break;case"date":t.formatter=a}}),o.grid=t},l=function(n){return $.format(n,"n4")},a=function(n){return n==null?"-":moment.utc(n).format(window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.shortDateformat.toUpperCase())};this.populateGrid=function(n,r){t.igGrid("dataSourceObject",n),t.igGrid("dataBind"),i&&$(t.children()[3]).append(i.format(r))},h(n)},$.snl.ir.controls.stockChart=function(n){function rt(n){var p=n.loadHighStockScript?n.loadHighStockScript:!1,s=$.snl.ir.GetConfiguration("StockChart.xml").StockChart,y,a,c;v=n.chartDiv,u=n.defaults.colors&&n.defaults.colors.length>0?n.defaults.colors:u,o=st.indexOf(n.defaults.timeRange),w=n.defaults.totalheight!=undefined?n.defaults.totalheight:400,y=n.defaults.vheight!=undefined?n.defaults.vheight:120,tt=(w-y)*100/w,h=95-tt,a=0,n.series!=undefined&&($.each(n.series,function(n,o){e=[],$.each(o.Values,function(n,t){e[n]=n==0&&t.Price==0?[moment.utc(t.Date)*1,null]:[moment.utc(t.Date)*1,convertedCurrency(t.Price)]}),t.mindate=o.Values[0].Date,t.earliestdate=o.Values[0].Date,t.maxdate=o.Values[o.Values.length-1].Date,r.push(o.TradingSymbol),i[a++]={name:o.TradingSymbol,id:o.TradingSymbol,data:e,lineWidth:f.lineWidth,type:f.type,peer:null,indexEvent:null,comparisonTicker:null,shadow:!0,marker:{enabled:!0,radius:2,lineColor:null},color:u[l++].Value.trim()}}),!(s.DisableVolume&&s.DisableVolume.toLowerCase()=="true")&&h>0&&(c=[],$.each(n.series[0].Values,function(n,t){c[n]=n==0&&t.Volume==0?[moment.utc(t.Date)*1,null]:[moment.utc(t.Date)*1,t.Volume]}),i[a++]={type:"column",name:"Volume",peer:null,comparisonTicker:null,indexEvent:null,color:u[1].Value.trim(),yAxis:1,index:9999,data:c})),p?$.when($.getScript($.snl.ir.vars.siteURL+"Scripts/Highstock/js/highstock.js").fail(ut)).done(function(){$.when($.getScript($.snl.ir.vars.siteURL+"Scripts/Highstock/js/modules/exporting.js").fail(ut)).done(function(){ft(s)})}):ft(s)}function ct(n,t){$("#rangeselectordatebegin")&&($("#rangeselectordatebegin").val(moment(n).format(p)),$("#rangeselectordateend").val(moment(t).format(p)))}function lt(n){t.datepickerchanged||($("#rangeselectordatebegin").val(moment(n.min).format(p)),$("#rangeselectordateend").val(moment(n.max).format(p))),t.datepickerchanged=!1}function ut(n,t,i){$.snl.ir.Log(i)}function ft(r){var c,a,s,f,p;Highcharts.setOptions({lang:{rangeSelectorZoom:""}}),c=[{labels:{align:"right",x:33,format:"{value:.2f}",style:{color:n.keyPage==187?u[2].Value.trim():null},formatter:function(){return $.format(this.value,"n2")}},title:{text:"Price ("+window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrencySymbol+")",margin:40,style:{color:n.keyPage==187?u[2].Value.trim():null}},height:!(r.DisableVolume&&r.DisableVolume.toLowerCase()=="true")&&h>0?tt+"%":"100%"}],!(r.DisableVolume&&r.DisableVolume.toLowerCase()=="true")&&h>0&&c.push({labels:{align:"right",x:33,style:{fontSize:8,color:n.keyPage==187?u[2].Value.trim():null}},gridLineWidth:.5,tickPixelInterval:10,title:{text:"Volume",margin:40,style:{color:r.VolumeTextColor?r.VolumeTextColor:n.keyPage==187?u[2].Value.trim():null}},top:Math.ceil(100-h)+"%",height:h+"%",offset:0});var e=new Date,b=Math.floor(e.getMonth()/3),l=new Date(e.getTime());if(l.setDate(1),a=new Date(e.getFullYear(),b*3,1),mtdCount=parseInt((e.getTime()-l.getTime())/864e5),qtdCount=parseInt((e.getTime()-a.getTime())/864e5),$(v).highcharts("StockChart",{chart:{backgroundColor:r.BackgroundColor?r.BackgroundColor:u[0].Value.trim(),borderColor:r.BorderColor,borderRadius:r.BorderRadius,height:n.keyPage==187?null:w,events:{load:function(){t.chart=this}}},title:{text:r.Title},subtitle:{text:r.SubTitle},scrollbar:{enabled:n.keyPage!=187},navigator:{enabled:r.DisableNavigator&&r.DisableNavigator.toLowerCase()=="true"?!1:n.keyPage!=187,handles:r.NavigatorHandles,maskFill:r.NavigatorMaskFill,maskInside:r.NavigatorMaskInside&&r.NavigatorMaskInside.toLowerCase()=="true"?!0:!0},plotOptions:{series:{enableMouseTracking:!0,states:{hover:{enabled:!0}},dataGrouping:{enabled:!1}}},credits:{text:"S&P Global Market Intelligence",href:"http://www.spglobal.com/marketintelligence",enabled:r.DisableCredits&&r.DisableCredits.toLowerCase()=="true"?!1:!0},tooltip:{enabled:r.DisableTooltip&&r.DisableTooltip.toLowerCase()=="true"?!1:!0,borderColor:r.TooltipBorderColor,backgroundColor:r.TooltipBackgroundColor,borderRadius:r.TooltipBorderRadius,useHTML:!0,pointFormat:r.TooltipPointFormat,formatter:function(){var t="";return this.point?this.series.name=="PRs"?t='Event Details - '+this.point.text+"<\/a>
"+this.point.formattedDate+" - Press Release":this.series.name=="Divs"?t="Event Details - "+this.point.text+"<\/strong>
"+this.point.formattedDate+" - Dividend":this.series.name=="Filings"?t='
Event Details - '+this.point.text+"<\/a>
"+this.point.formattedDate+" - Filing
":this.series.name=="Docs"?t='
Event Details - '+this.point.text+"<\/a>
"+this.point.formattedDate+" - Document":this.series.name=="Split"&&(t="Event Details - "+this.series.TradingSymbol+"<\/strong>
"+this.point.formattedDate+" - Splits
"+this.point.text):(t+=$.format(moment.utc(this.x).format(ht),"D")+"
",$.each(this.points,function(i,u){var e=u.series.tooltipPoints.indexOf(u.point)==0?0:u.series.tooltipPoints.indexOf(u.point)-1,f=i==0?u.series.tooltipPoints[0]:u.series.tooltipPoints[e];if(f){var h=f.y,o=r.TooltipSeriesColor!=null&&n.keyPage==187?r.TooltipSeriesColor:u.series.color,s=n.keyPage==187?u.series.name.length>15?u.series.name.substring(0,15)+"...":u.series.name:u.series.name;t+=''+s+"<\/span>: "+(u.series.name=="Volume"?"":" "+window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrencySymbol)+"<\/b>"+(u.series.name=="Volume"?$.format(u.y,"n0"):$.format(u.y,"n2"))+"
"}})),t}},exporting:{enabled:!1},rangeSelector:{selected:o,inputEnabled:!1,enable:r.DisableRangeSelector&&r.DisableRangeSelector.toLowerCase()=="true"?!1:!0,buttons:[{type:"day",count:1,text:"1d"},{type:"week",count:1,text:"1w"},{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"year",count:1,text:"1y"},{type:"year",count:2,text:"2y"},{type:"year",count:3,text:"3y"},{type:"year",count:5,text:"5y"},{type:"day",count:mtdCount,text:"mtd"},{type:"day",count:qtdCount,text:"qtd"},{type:"ytd",text:"ytd"}]},legend:{enabled:r.DisableLegend&&r.DisableLegend.toLowerCase()=="true"?!1:!0,title:{text:r.LegendTitle,style:{color:r.LegendTextColor}},align:r.LegendAlign,layout:r.LegendLayout},yAxis:c,xAxis:{minRange:moment.utc(n.defaults.startDate),maxRange:moment.utc(t.maxdate),labels:{style:{color:n.keyPage==187?u[2].Value.trim():null}},ordinal:!1,events:{afterSetExtremes:lt}},series:i},function(){}),o==11){t.datepickerchanged=!0,s=$("#rangeselectordatebegin").datepicker("getDate"),f=s.toString().indexOf("+"),f==-1&&(f=s.toString().indexOf("-"));var k=s.toString().substring(0,f)+"+0000",y=$("#rangeselectordateend").datepicker("getDate"),f=y.toString().indexOf("+");f==-1&&(f=s.toString().indexOf("-")),p=y.toString().substring(0,f)+"+0000",t.chart.xAxis[0].setExtremes(moment.utc(k),moment.utc(p))}$(".highcharts-button",$(v)).hide(),o>-1?t.setRange(o):t.setRange(4),i.length>2&&(t.chart.yAxis[0].setCompare("percent"),t.chart.yAxis[0].setTitle({text:"Price (% change)"}))}function a(n,t){return $.grep(n,function(n){return n!=t})}function at(n){for(var i=0;i-1?$(".rangeBtn")[n]:$(".rangeBtn")[4],i&&$(i).addClass("btn-default btn-primary").siblings(".rangeBtn").removeClass("btn-primary"),n!=11&&t.chart.rangeSelector.clickButton(n*1),ct(moment.utc(t.chart.xAxis[0].min),moment.utc(t.chart.xAxis[0].max))},t.setChartType=function(n,r){if($.snl.ir.models.stock.stockData.StockChart.HasData){$.each(i,function(t,i){i.type!="flags"&&i.name!="Volume"&&i.name!="Navigator"&&(n=="point"?(i.lineWidth=0,i.type="line"):(i.type=n,i.lineWidth=2),f.lineWidth=i.lineWidth,f.type=i.type)}),t.setRange(t.chart.rangeSelector.selected?t.chart.rangeSelector.selected:o);var r=r?r:t.chart.options;r.series=i,r.plotOptions.series.compare=y?"percent":"none",t.chart=new Highcharts.Chart(r),$(".highcharts-button",$(v)).hide()}else $("#stockchart").html("



Data is not available for the selected option(s), please try other option.<\/p")},t.setTrackerType=function(n,i){var r=t.chart.options;n=="ball"?(r.plotOptions.series.enableMouseTracking=!0,r.plotOptions.series.states.hover.enabled=!0,r.tooltip.crosshairs=!1):n=="line"?(r.tooltip.crosshairs=!0,r.plotOptions.series.enableMouseTracking=!0,r.plotOptions.series.states.hover.enabled=!1):r.plotOptions.series.enableMouseTracking=!1,t.setChartType(i,r)},t.getSVG=function(){var n=t.chart,i=t.chart.getSVG();return t.chart=n,i},t.exportChart=function(n){var i=t.chart;t.chart.options.plotOptions.series.compare=y?"percent":"none",t.chart.exportChart({scale:n}),t.chart=i},t.updateSeries=function(n,u,o,s,h,l){var v,w=0,p=[];y=l&&l.length>0||o&&o.length>0||s&&s.length>0,$.each(t.chart.series,function(n,t){$.inArray(t.name,et)!=-1&&$.inArray(t.name,u)==-1?p.push(t):t.options.peer&&$.inArray(t.options.peer,s)==-1?(p.push(t),r=a(r,t.options.name.toUpperCase())):t.options.indexEvent&&$.inArray(t.options.indexEvent,o)==-1?(p.push(t),r=a(r,t.options.name.toUpperCase())):t.options.comparisonTicker&&$.inArray(t.options.comparisonTicker,l)==-1?(p.push(t),r=a(r,t.options.comparisonTicker.toUpperCase())):$.inArray(t.name,it)!=-1&&$.inArray(ot[it.indexOf(t.name)],h)==-1&&(p.push(t),r=a(r,t.name))}),$.each(p,function(n,r){$.each(i,function(n,t){if(t.name==r.name){i=a(i,t);return}}),t.chart.series[at(r.name)].remove(!0)}),$.each(n,function(n,h){e=[],b=[],k=[],d=[],g=[],nt=[],$.inArray(h.TradingSymbol,r)==-1&&(r.push(h.TradingSymbol),$.each(h.Values,function(n,t){e[n]=n==0&&t.Price==0?[moment.utc(t.Date)*1,null]:[moment.utc(t.Date)*1,t.Price]}),v={name:h.TradingSymbol,id:h.TradingSymbol,data:e,indexEvent:$.inArray(h.KeyIndex,o)!=-1?h.KeyIndex:null,peer:$.inArray(h.KeyInstn,s)!=-1?h.KeyInstn:null,comparisonTicker:$.inArray(h.TradingSymbol.toLowerCase(),l)!=-1||$.inArray(h.TradingSymbol.toUpperCase(),l)!=-1?h.TradingSymbol.toLowerCase():null,marker:{enabled:!0,radius:2,lineColor:null},type:f.type,lineWidth:f.lineWidth,shadow:!0,color:c()},i.push(v),t.chart.addSeries(v)),$.inArray("PRs",u)>-1>0&&h.Events.PressReleases.length>0&&($.each(h.Events.PressReleases,function(n,t){var i=window.snl.ir.globalVars.fullSiteURL.toLowerCase().indexOf("/irw/")!=-1;b.push({x:moment.utc(t.Date),text:t.Title,link:window.location.protocol+"//"+window.location.hostname+(i?"/IRW":"")+"/file/"+(i?h.KeyInstn+"/":"")+"Index?KeyFile="+t.KeyFile,formattedDate:Highcharts.dateFormat("%a %d %b",moment.utc(t.Date))})}),v={name:"PRs",data:b,showInLegend:!1,onSeries:h.TradingSymbol,type:"flags",title:"P",shape:"circlepin",width:16,color:c()},i.push(v),t.chart.addSeries(v)),$.inArray("Divs",u)>-1>0&&h.Events.Dividends.length>0&&($.each(h.Events.Dividends,function(n,t){k.push({x:moment.utc(t.Date),text:t.Value,formattedDate:Highcharts.dateFormat("%a %d %b",moment.utc(t.Date))})}),v={name:"Divs",data:k,onSeries:h.TradingSymbol,showInLegend:!1,type:"flags",title:"D",shape:"circlepin",width:16,color:c()},i.push(v),t.chart.addSeries(v)),$.inArray("Filings",u)>-1>0&&h.Events.Filings.length>0&&($.each(h.Events.Filings,function(n,t){var i=window.snl.ir.globalVars.fullSiteURL.toLowerCase().indexOf("/irw/")!=-1;g.push({x:moment.utc(t.Date),text:t.FilingAlias,link:window.location.protocol+"//"+window.location.hostname+(i?"/IRW":"")+"/Doc/"+(i?h.KeyInstn+"/":"")+"index?did="+t.KeyDoc,formattedDate:Highcharts.dateFormat("%a %d %b",moment.utc(t.Date))})}),v={name:"Filings",data:g,onSeries:h.TradingSymbol,showInLegend:!1,type:"flags",title:"F",shape:"squarepin",width:16,color:c()},i.push(v),t.chart.addSeries(v)),$.inArray("Docs",u)>-1>0&&h.Events.Documents.length>0&&($.each(h.Events.Documents,function(n,t){var i=window.snl.ir.globalVars.fullSiteURL.toLowerCase().indexOf("/irw/")!=-1;d.push({x:moment.utc(t.Date),text:t.WebSiteURLText,link:window.location.protocol+"//"+window.location.hostname+(i?"/IRW":"")+"/Doc/"+(i?h.KeyInstn+"/":"")+"index?did="+t.KeyDoc,formattedDate:Highcharts.dateFormat("%a %d %b",moment.utc(t.Date))})}),v={name:"Docs",data:d,onSeries:h.TradingSymbol,showInLegend:!1,type:"flags",title:"Do",shape:"squarepin",width:16,color:c()},i.push(v),t.chart.addSeries(v)),$.inArray("Split",u)>-1>0&&h.Events.Splits.length>0&&($.each(h.Events.Splits,function(n,t){nt.push({x:moment.utc(t.Date),text:t.WebSiteURL,formattedDate:Highcharts.dateFormat("%a %d %b",moment.utc(t.Date))})}),v={name:"Split",data:nt,onSeries:h.TradingSymbol,showInLegend:!1,type:"flags",title:"S",shape:"squarepin",width:16,color:c()},i.push(v),t.chart.addSeries(v))}),y?(t.chart.yAxis[0].setCompare("percent"),t.chart.yAxis[0].setTitle({text:"Price (% change)"})):(t.chart.yAxis[0].setCompare(null),t.chart.yAxis[0].setTitle({text:"Price ("+window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrencySymbol+")"}))},t.reloadChart=function(n){l=1,f.type=$(".chartType.graph_radio.graph_but_active").data("type"),f.type=="point"&&(f.lineWidth=0,f.type="line"),rt(n)},rt(n)},currentCulture=window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrentCulture,iscrosslisted=window.snl.ir.globalVars.currentPageViewModel.IsCrossListed==!0,$(document).ready(function(){$("#accordion a[data-parent='#accordion']").click(function(){$("div.panel-heading").removeClass("panel-heading-Select"),$(this).parents("div.panel-heading").addClass("panel-heading-Select")}),$("#cmdShowConfigMenu").click(function(){return $(".irwConfigMenuWrapper").hasClass("opened")?$(".irwConfigMenuWrapper").removeClass("opened"):($(".irwConfigMenuPanel .irwConfigMenuBody").length>0||$(".irwConfigMenuPanel").append($(".irwConfigMenuBody")),$(".irwConfigMenuWrapper").addClass("opened")),!1}),$("#cmdShowConfigModal").click(function(){return $(".irwConfigMenuBody").appendTo(".irwConfigMenuModalContent"),$("#irwConfigMenuModal").modal("show"),!1}),$("ul.first_node li:first-child").addClass("graph_top_border"),$("ul.graph_nav li").mouseover(function(){$(this).children().next("ul").css("display","block")}).bind("mouseleave",function(){$(this).children().next("ul").css("display","none")})}),$(function(){function ut(){var t=null,n;return $.snl.ir.vars.isIE8?$("#stockchart").highcharts().getSVG():($("#stockchart svg")[0]!=null&&(svgElement=$("#stockchart svg")[0],n=$("

",{"class":"SVGDiv"}),n.append($(svgElement).clone()).html(),t=n.html(),$("SVGDiv").remove()),t)}function dt(n){var t=ut();if(t!=null)if(window.snl.ir.globalVars.useHighStockServer.toLowerCase()=="true")Highcharts.post("http://export.highcharts.com",{filename:"chart",type:"png",scale:n,svg:t});else{var e=$.snl.ir.models.api.urlTemplate.replace("{Controller}","Stock"),i=_urlStockBase.replace("{Action}","DownloadStockChartImage")+"?title=StockChart&Scale="+n,r=JSON.stringify(t),u={svg:r},f=JSON.stringify(u);$.ajax({type:"POST",url:i,dataType:"json",data:f,contentType:"application/json; charset=utf-8",success:function(n){var t=window.snl.ir.globalVars.downloadURL+"?cacheId="+n+"&format=png&title=StockChart";window.location.href=t},error:function(n,t,i){$.snl.ir.Log("Error: "+i.message)},complete:function(){}})}}function et(n){$("#irwAsReportDropDownName").text(n.text());var t=n.children().attr("rel");n.children().attr("data-rel")=="True"&&(iscrosslisted=!1,$("#keyFndg option").remove(),$("#showOverlayMetrics").show(),$("#showOverlayPeers").show(),l(t),y(),$.snl.ir.models.api.stock.getStockChart("&keyFndg="+t,s,!1),v()),n.children().attr("data-rel")=="False"&&(iscrosslisted=!0,$("#keyFndg option").remove(),$("#showOverlayMetrics").hide(),$("#showOverlayPeers").hide(),g(t),y(),$.snl.ir.models.api.stock.getCrossListedStockChart("&keyFndg="+t,s,!1),v()),$("#showOverlayMetrics").is(":visible")||$("#showOverlayPeers").is(":visible")||$("#showOverlayCustomPeerEntry").is(":visible")||$("#showOverlayEvents").is(":visible")||$("#showOverlayIndexes").is(":visible")?($("#reset").show(),$("#update").show()):($("#reset").hide(),$("#update").hide())}var p,w,b,k,c,d,n,o,t=!1,ft,h;$.snl.ir.models.stock.stockData=window.snl.ir.globalVars.currentPageViewModel,window.snl.ir.globalVars.exportCallback=function(n){n.StockChart.Series=null,n.StockChart.SVG=t?null:ut()},setTimeout(function(){$("#rangeselectordatebegin, #rangeselectordateend").datepicker({dateFormat:datepickerformat(window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.shortDateformat),showOn:"focus",closeAtTop:!1,showStatus:!0,maxDate:"-1d",yearRange:"1980:c",changeMonth:!0,changeYear:!0,minDate:new Date(1980,1,1),maxDate:n!=null?moment(n.maxdate).toDate():null,fixFocusIE:!1,beforeShow:function(n,t){$widget=t.dpDiv,window.$uiDatepickerDiv=$widget},onClose:function(n,t){$widget=t.dpDiv,$widget.data("top",$widget.position().top)},onSelect:function(t){if(n!=null){n.datepickerchanged=!0;var i=$("#rangeselectordatebegin").datepicker("getDate"),r=$("#rangeselectordateend").datepicker("getDate");i!=null&&r!=null&&(n.mindate=i.toJSON(),n.maxdate=moment(r),$(".irwStockChartRange").find(".btn-primary").removeClass("btn-primary").addClass("btn-default"),this.id.indexOf("begin")>-1?$("#rangeselectordateend").datepicker("option","minDate",t):$("#rangeselectordatebegin").datepicker("option","maxDate",t),moment(n.earliestdate)>$("#rangeselectordatebegin").datepicker("getDate")||moment(n.earliestdate)>$("#rangeselectordateend").datepicker("getDate")?updateStockChart(!1,"all"):o==!0&&(o=!1,updateStockChart(!1)),moment(n.mindate)=0?!this.fixFocusIE:!0;return this.fixFocusIE=!1,i},onSelect:function(){this.fixFocusIE=!0},onClose:function(){this.fixFocusIE=!0}}),$("#calendarCntrl").focus(function(){$("#calendarCntrl").removeClass("errMsgBox")}),$("#calendarIcon").click(function(){$("#calendarCntrl").datepicker("show")}),$("#calendarCntrl").click(function(){$(this).focus()});$(document).on("mouseover",".graph_tab",function(){mCustomScrollbarUpdate(this)});$("#calendarCntrl").keydown(function(n){var t=n.keyCode||n.which;if(t==13)return $("#calendarCntrl").datepicker("hide"),$("#setMinDate").focus(),$("#setMinDate").trigger("click"),!1}),$("#inputgroupbegin").click(function(){$("#rangeselectordatebegin").datepicker("show")}),$("#inputgroupend").click(function(){$("#rangeselectordateend").datepicker("show")}),$("#setMinDate").click(function(){nt()}),$("#keyFndg").change(function(n){var t=$("#keyFndg").val();n.originalEvent!==undefined?(l(t),y(),$.snl.ir.models.api.stock.getStockChart("&keyFndg="+t,s,!1),v()):$.snl.ir.models.api.stock.getStockChart("&keyFndg="+t,s,!1)});var l=function(n){$.preferCulture(currentCulture),$.snl.ir.models.api.stock.getStockData(n,tt)},g=function(n){$.preferCulture(currentCulture),$.snl.ir.models.api.stock.getCrossListedStockData(n,tt)},nt=function(){var n=encodeURIComponent($("#calendarCntrl").datepicker().val()),t=$("#keyFndg").val();window.snl.ir.globalVars.currentPageViewModel.ClosingDate=moment($("#calendarCntrl").datepicker().val()).format("MM/DD/YYYY"),iscrosslisted==!0||window.snl.ir.globalVars.currentPageViewModel.IsCrossListed==!0?$.snl.ir.models.api.stock.getCrossListedClosingPrice(n,t,it):$.snl.ir.models.api.stock.getClosingPrice(n,t,it)},tt=function(){var t=$.snl.ir.models.stock.stockData.StockInfo,e,o,i,r,u,f,s;$("#keyFndg option").length==0&&($.each($.snl.ir.models.stock.stockData.CurrentSecurity,function(n,t){$("#keyFndg").append($("
${AvgDailyVolumeDisplay}<\/div>"}),n.push({headerText:"
% Of Shares Outstanding<\/div>",key:"PercentSharesOutstanding",dataType:"string",width:"150px",template:"
${PercentSharesOutstanding}<\/div>"}),t={gridElement:$("#igGridVolumeHighlights")[0],primaryKey:"Period",columns:n},p=new $.snl.ir.controls.grid(t)},ht=function(){var n=[],t;n.push({key:"Name",dataType:"string",hidden:!0}),n.push({headerText:"",key:"DisplayName",dataType:"string",template:"
${DisplayName}<\/a><\/div>"}),n.push({headerText:"",key:"ValueDisplay",dataType:"string",width:"150px",template:"
${ValueDisplay}<\/div>"}),n.push({key:"ItemName",dataType:"string",hidden:!0}),t={gridElement:$("#igGridFinancialData")[0],primaryKey:"Name",columns:n},w=new $.snl.ir.controls.grid(t)},ct=function(){var n=[],t;n.push({key:"Key",dataType:"string",hidden:!0}),n.push({headerText:"Stock Price History",key:"DisplayName",dataType:"string"}),n.push({headerText:"
<\/div>",key:"DisplayValueHigh",dataType:"string",width:"100px",template:"
${DisplayValueHigh}<\/div>"}),n.push({headerText:"
<\/div>",key:"DisplayValueLow",dataType:"string",width:"100px",template:"
${DisplayValueLow}<\/div>"}),t={gridElement:$("#igGridPriceHistory")[0],primaryKey:"Key",columns:n},b=new $.snl.ir.controls.grid(t)},lt=function(){var n=[],t;n.push({key:"Name",dataType:"string",hidden:!0}),n.push({headerText:"",key:"DisplayName",dataType:"string",template:"
${DisplayName}<\/a><\/div>"}),n.push({headerText:"",key:"ValueDisplay",dataType:"string",width:"150px",template:"
${ValueDisplay}<\/div>"}),n.push({key:"ItemName",dataType:"string",hidden:!0}),t={gridElement:$("#igGridPriceRatios")[0],primaryKey:"Name",columns:n,otherOptions:[{name:"showHeader",value:!1}]},k=new $.snl.ir.controls.grid(t)},at=function(){var n=[],t;n.push({key:"Key",dataType:"string",hidden:!0}),n.push({headerText:"Price Change (%)",key:"DisplayName",dataType:"string"}),n.push({headerText:"
<\/div>",key:"DisplayValueCurrent",dataType:"string",width:"150px",template:"
${DisplayValueCurrent}<\/div>"}),n.push({headerText:"
<\/div>",key:"DisplayValueComparative",dataType:"string",width:"150px",template:"
${DisplayValueComparative}<\/div>"}),t={gridElement:$("#igGridPriceChanges")[0],primaryKey:"Key",columns:n},c=new $.snl.ir.controls.grid(t)},vt=function(){var n=[],t;n.push({key:"Name",dataType:"string",hidden:!0}),n.push({headerText:"",key:"DisplayName",dataType:"string",template:"
${DisplayName}<\/a><\/div>"}),n.push({headerText:"",key:"ValueDisplay",dataType:"string",width:"150px",template:"
${ValueDisplay}<\/div>"}),n.push({key:"ItemName",dataType:"string",hidden:!0}),t={gridElement:$("#igGridDividends")[0],primaryKey:"Name",columns:n,otherOptions:[{name:"showHeader",value:!1}]},d=new $.snl.ir.controls.grid(t)},yt=function(){var n=$.snl.ir.models.stock.stockData.StockInfo;n.DisplayTradedFundingIssues?$(".FundDescription").show():$(".FundDescription").hide(),$("#volumeHighlightsPanel").css("display","none"),n.HighlightsTable&&n.HighlightsTable.Visible==!0&&(p.populateGrid(n.Aggregates.Highlights),$("#volumeHighlightsPanel").css("display","block")),$("#financialDataPanel").css("display","none"),n.FinancialDataTable&&n.FinancialDataTable.Visible==!0&&(n.Aggregates.FinancialData[0].DateEnded!=null&&n.Aggregates.FinancialData[0].DateEnded!=undefined&&$("#igGridFinancialData_ValueDisplay span.ui-iggrid-headertext").text(moment(n.Aggregates.FinancialData[0].DateEnded).format(window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.shortDateformat.toUpperCase())),w.populateGrid(n.Aggregates.FinancialData[0].FinancialFields),$("#financialDataPanel").css("display","block")),$("#priceHistoryPanel").css("display","none"),n.PriceHistoryTable&&n.PriceHistoryTable.Visible==!0&&($("#priceHistoryGridDisplayValueHighHeaderText").text("High ("+window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrencySymbol+")"),$("#priceHistoryGridDisplayValueLowHeaderText").text("Low ("+window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrencySymbol+")"),b.populateGrid($.snl.ir.models.stock.stockData.PriceHistory),$("#priceHistoryPanel").css("display","block")),$("#priceRatiosPanel").css("display","none"),n.PriceRatiosTable&&n.PriceRatiosTable.Visible==!0&&(k.populateGrid(n.Aggregates.PriceRatio.FinancialFields),$("#priceRatiosPanel").css("display","block")),$("#priceChangesPanel").css("display","none"),n.PriceChangeTable&&n.PriceChangeTable.Visible==!0&&(c.grid.igGrid("hideColumn","DisplayValueComparative"),$("#priceChangeGridDisplayValueCurrentHeaderText").text($("#keyFndg :selected").text()!=""||$("#keyFndg :selected").text()!=undefined?$("#keyFndg :selected").text():$.snl.ir.models.stock.stockData.PriceChange.CurrentIndexName),$.snl.ir.models.stock.stockData.PriceChange.ComparativeIndexName!=""&&($("#priceChangeGridDisplayValueComparativeHeaderText").text($.snl.ir.models.stock.stockData.PriceChange.ComparativeIndexName),c.grid.igGrid("showColumn","DisplayValueComparative")),c.populateGrid($.snl.ir.models.stock.stockData.PriceChangeRows),$("#priceChangesPanel").css("display","block")),$("#dividendsPanel").css("display","none"),n.DividendsTable&&n.DividendsTable.Visible==!0&&(d.populateGrid(n.Aggregates.Dividends.FinancialFields),$("#dividendsPanel").css("display","block")),$("#accordion").css("display","none"),(n.HighlightsTable&&n.HighlightsTable.Visible||n.FinancialDataTable&&n.FinancialDataTable.Visible||n.PriceHistoryTable&&n.PriceHistoryTable.Visible||n.PriceRatiosTable&&n.PriceRatiosTable.Visible||n.PriceChangeTable&&n.PriceChangeTable.Visible||n.DividendsTable&&n.DividendsTable.Visible)&&$("#accordion").css("display","block")},pt=function(){$(".meter > span").each(function(){var n=$(this).parent().parent().find("div.irwRangeToday"),t=$(".meter").width(),i=$(".meter span").width(),u=(100*(i/t)).toFixed(2)+"%",f=n.children("strong").width()/2,r=(100*((i-f)/t)).toFixed(2)+"%";parseInt(r)<80?n.css("padding-left",r):n.css("text-align","right"),$(this).data("origWidth",u).width(0).animate({width:$(this).data("origWidth")},1200)})},wt=function(n){n!=="undefined"&&(n=="1d"?(o=!0,updateStockChart(!1,n)):o==!0&&(o=!1,updateStockChart(!1,n)))},bt=function(){$(".rangeBtn").click(function(){n.setRange($(this).data("index")*1),wt($(this).attr("id").substring(5)),kt()})},kt=function(){$("#stockChartForm .form-group.Customform-group.has-error").length>0&&($("#stockChartForm").data("bootstrapValidator").updateStatus("rangeselectordatebegin","NOT_VALIDATED").validateField("rangeselectordatebegin"),$("#stockChartForm").data("bootstrapValidator").updateStatus("rangeselectordateend","NOT_VALIDATED").validateField("rangeselectordateend"))},s=function(i){var r,u;if($("#stockchart").hide(),$("#noStockChartData").hide(),r=$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes&&$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes.length>1?$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes[1].Value:1e3,r>=1e3||r==360?$("#stockchart").css("width","100%"):$("#stockchart").css("width",r/10+"%"),$.snl.ir.models.stock.stockData.StockChart.HasData&&$.snl.ir.models.stock.stockData.StockChart.Series!=null){t=!1;var e=$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes&&$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes.length>0?$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes[0].Value:203,f=$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes&&$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes.length>2?$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes[2].Value:120,u={chartDiv:$("#stockchart"),loadHighStockScript:i,series:$.snl.ir.models.stock.stockData.StockChart.Series.Series,defaults:{timeRange:$.snl.ir.models.stock.stockData.ChartInfo.DefaultStartDateShort,startDate:$.snl.ir.models.stock.stockData.ChartInfo.DefaultStartDate,colors:$.snl.ir.models.stock.stockData.ChartInfo.Colors,totalheight:(e+f)*1.25,vheight:f}};$("#stockchart").show(),n=new $.snl.ir.controls.stockChart(u),bt()}else t=!0,u={chartDiv:$("#stockchart"),loadHighStockScript:i,defaults:{colors:$.snl.ir.models.stock.stockData.ChartInfo.Colors}},n=new $.snl.ir.controls.stockChart(u),$("#noStockChartData").length||$("#stockchart").after($("
asdf
").html("



Data is not available for the selected option(s), please try other option.<\/p")),$("#noStockChartData").show()},i=[],r=[],u=[],f=[],a=[],rt=function(){n.updateSeries($.snl.ir.models.stock.stockData.StockChart.Series.Series,r,i,u,f,a),n.chart.hideLoading()},e=function(i){var r;if(i==undefined&&(i="all"),$("#stockchart").hide(),$("#noStockChartData").hide(),$.snl.ir.models.stock.stockData.StockChart.HasData){t=!1;var f=$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes&&$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes.length>0?$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes[0].Value:203,u=$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes&&$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes.length>2?$.snl.ir.models.stock.stockData.ChartInfo.DisplaychartSizes[2].Value:120,r={chartDiv:$("#stockchart"),series:$.snl.ir.models.stock.stockData.StockChart.Series.Series,defaults:{colors:$.snl.ir.models.stock.stockData.ChartInfo.Colors,timeRange:i.toLowerCase(),totalheight:(f+u)*1.25,vheight:u}};$("#stockchart").show(),n.reloadChart(r)}else t=!0,r={chartDiv:$("#stockchart"),loadHighStockScript:!1,defaults:{colors:$.snl.ir.models.stock.stockData.ChartInfo.Colors,timeRange:i.toLowerCase()}},n=new $.snl.ir.controls.stockChart(r),$("#noStockChartData").length||$("#stockchart").after($("

asdf
").html("



Data is not available for the selected option(s), please try other option.<\/p")),$("#noStockChartData").show()},v=function(){n.updateSeries([]),$(".graph_checkbox").removeClass("graph_but_active"),$(".TickerInputBox").val(""),i=[],r=[],u=[],f=[],a=[]};updateStockChart=function(t,o){var h,s;n.chart.showLoading(),h=new Date,a=typeof $(".TickerInputBox").val()=="undefined"||$(".TickerInputBox").val().trim()==""?[]:$(".TickerInputBox").val().split(","),s="&indexes="+i.join()+"&events="+r.join()+"&peers="+u.join()+"&metrics="+f.join()+"&tickers="+a.join()+"&keyFndg="+$("#keyFndg").val(),t==!0?(s=s+"&startDate="+n.mindate,iscrosslisted==!0?$.snl.ir.models.api.stock.getCrossListedStockChart(s,rt):$.snl.ir.models.api.stock.getStockChart(s,rt)):o=="1d"?(s=s+"&startDate="+h.toJSON()+"&endDate="+h.toJSON(),iscrosslisted==!0?$.snl.ir.models.api.stock.getCrossListedStockChart(s,e,o):$.snl.ir.models.api.stock.getStockChart(s,e,o)):o=="all"?(s=s+"&startDate="+n.mindate,iscrosslisted==!0?$.snl.ir.models.api.stock.getCrossListedStockChart(s,e,o):$.snl.ir.models.api.stock.getStockChart(s,e,o)):iscrosslisted==!0?$.snl.ir.models.api.stock.getCrossListedStockChart(s,e,o):$.snl.ir.models.api.stock.getStockChart(s,e,o)},$("#update").click(function(){$(".irwConfigMenuWrapper").removeClass("opened"),$("#irwConfigMenuModal").modal("hide"),updateStockChart(!0)}),$("#reset").click(function(){$(".irwConfigMenuWrapper").removeClass("opened"),$("#irwConfigMenuModal").modal("hide"),n.chart.showLoading(),v(),$(".irwConfigMenuWrapper").removeClass("opened"),$("#irwConfigMenuModal").modal("hide"),n.chart.hideLoading()}),$(".chartType").click(function(){var t=$(this);$(".chartType").removeClass("graph_but_active"),t.toggleClass("graph_but_active"),n.setChartType(t.data("type"))}),$(".trackerType").click(function(){var t=$(this),i;$(".trackerType").removeClass("graph_but_active"),t.toggleClass("graph_but_active"),i=$(".chartType.graph_radio.graph_but_active").data("type"),n.setTrackerType(t.data("type"),i)}),$(".irwSwitch .dropdown-menu li a").click(function(){var n=1;switch($(this).text()){case"Small Chart":n=.5;break;case"Large Chart":n=2}t||dt(n)}),$("#fullscreen").click(function(){$("#myModal").modal("toggle"),ft=$("#stockchart").clone(),ft.appendTo("#fullscreenchart .modal-body"),$("#fullscreenchart .modal-body").show(),$("#fullscreenchart").modal()});$("#fullscreenchart").on("hidden.bs.modal",function(){$("#fullscreenchart .modal-body #stockchart").remove()});$(".graph_checkbox").click(function(){var n=$(this),t=!1;n.hasClass("graph_but_active")?n.removeClass("graph_but_active"):(n.addClass("graph_but_active"),t=!0),n.hasClass("indexcb")?t?i.push(n.data("index")):i=removeItem(i,n.data("index")):n.hasClass("eventcb")?t?r.push(n.data("event")):r=removeItem(r,n.data("event")):n.hasClass("peercb")?t?u.push(n.data("peer")):u=removeItem(u,n.data("peer")):n.hasClass("performancecb")&&(t?f.push(n.data("metric")):f=removeItem(f,n.data("metric")))}),ot(),h=window.snl.ir.globalVars.currentPageViewModel.keyFndg,h!=null||h!=undefined?window.snl.ir.globalVars.currentPageViewModel.IsCrossListed==!0?(g(h),$("#showOverlayMetrics").hide(),$("#showOverlayPeers").hide(),$("#showOverlayMetrics").is(":visible")||$("#showOverlayPeers").is(":visible")||$("#showOverlayCustomPeerEntry").is(":visible")||$("#showOverlayEvents").is(":visible")||$("#showOverlayIndexes").is(":visible")||($("#reset").hide(),$("#update").hide())):(l(h),$("#showOverlayMetrics").show(),$("#showOverlayPeers").show()):l(),s(!0),window.snl.ir.globalVars.currentPageViewModel.ClosingDate!=null&&nt(),window.snl.ir.globalVars.currentPageViewModel.StockChart.SVG!=null&&$("#StockChartContainer").html(""),$("#irwTabsEvent a").click(function(n){if(n.preventDefault(),$("#irwstockInfoPanelTab").length>0){$(".irwAsReportDropDown li").removeAttr("class");var i=$(this).closest("li").index()+1,t=$(".irwAsReportDropDown li:nth-child("+i+")");t.addClass("active"),et(t)}}),$(document).delegate("#irwstockInfoPanelTab .irwAsReportDropDown a","click",function(){var t=$(this).text();$("#irwstockInfoPanelTab #irwAsReportDropDownName").text(t)}),$("#irwstockInfoPanelTab #irwTabsdropdown a").click(function(n){var t,i,r;n.preventDefault(),$("#irwTabsEvent li").removeAttr("class"),t=$(this).closest("li").index()+1,i=$("#irwTabsEvent li:nth-child("+t+")"),i.addClass("active"),$(".irwAsReportDropDown li").removeAttr("class"),r=$(".irwAsReportDropDown li:nth-child("+t+")"),r.addClass("active"),et(i)})}),Controller="CorporateProfile",$.snl.ir.models.api.FieldDescription={},$.snl.ir.models.FieldDescription={},$.snl.ir.models.api.FieldDescription.getPopupData=function(n,t,i){var u=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),f=u.replace("{Action}","GetPopupData")+"?KeyDoc={KeyDoc}&Type={Type}",r=f.replace("{KeyDoc}",n);r=r.replace("{Type}",t),$.post(r).done(function(n){$.snl.ir.models.api.FieldDescription.PopupData=n,i()}).fail(function(){alert("error")}).always(function(){})},getPopupData=function(n,t){$("#PopupDive").html(""),$("#ModelTitle").html(t),$.snl.ir.models.api.FieldDescription.getPopupData(n,t,populatePopupData)},populatePopupData=function(){var n=$.snl.ir.models.api.FieldDescription.PopupData;$(".PopupModel .irwLoading").hide(),$("#PopupDive").html(n),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},$(document).delegate(".IrwFilingType","click",function(){$(".irwGroupBack").hide(),$(".PopupModel .irwLoading").show();var t=$(this).attr("FileType");getPopupData(0,t)}),$.snl.ir.models.api.FieldDescription.GetDefinitionData=function(n,t,i){var u=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),f=u.replace("{Action}","GetDefinition")+"?itemName={itemName}&keyItem={keyItem}",r=f.replace("{itemName}",n);r=r.replace("{keyItem}",t),$.post(r).done(function(n){$.snl.ir.models.api.FieldDescription.DefinitionData=n,i()}).fail(function(){alert("error")}).always(function(){})},PopulateDefinitionData=function(){var n=$.snl.ir.models.api.FieldDescription.DefinitionData;$("#PopupDive").html(n),$("#ModelTitle").html($(".irwHiddenCaption").attr("value")),$(".PopupModel .irwLoading").hide(),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},GetDefinitionData=function(n,t){$("#PopupDive").html(""),$("#ModelTitle").html(" "),$.snl.ir.models.api.FieldDescription.GetDefinitionData(n,t,PopulateDefinitionData)},$(document).delegate(".FinancialData","click",function(){$(".PopupModel .irwLoading").show();var t=$(this).attr("ItemName"),i=$(this).attr("Title");GetDefinitionData(t,0,i)}),$.snl.ir.models.api.FieldDescription.GetGroupDescriptions=function(n){var i=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),t=i.replace("{Action}","GetGroupDescriptions");console.log(t),$.post(t).done(function(t){$.snl.ir.models.api.FieldDescription.GroupDescriptionData=t,n()}).fail(function(){alert("error")}).always(function(){})},PopulateGroupDescriptionData=function(){var n=$.snl.ir.models.api.FieldDescription.GroupDescriptionData;$("#PopupDive").html(n),$(".PopupModel .irwLoading").hide(),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},GetGroupDescriptions=function(){$("#PopupDive").html(""),$("#ModelTitle").html("Group Descriptions"),$.snl.ir.models.api.FieldDescription.GetGroupDescriptions(PopulateGroupDescriptionData)},$(document).delegate(".Descriptions","click",function(){$(".irwGroupBack").hide(),$(".PopupModel .irwLoading").show(),GetGroupDescriptions()}),$.snl.ir.models.api.FieldDescription.GetTypeDescriptions=function(n,t){var i=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),r=i.replace("{Action}","GetTypeDescriptions")+"?alias={alias}",u=r.replace("{alias}",n);$.post(u).done(function(n){$.snl.ir.models.api.FieldDescription.TypeDescriptionData=n,t()}).fail(function(){alert("error")}).always(function(){})},PopulateGetTypeDescriptionsData=function(){var n=$.snl.ir.models.api.FieldDescription.TypeDescriptionData;$("#PopupDive").html(n),$(".PopupModel .irwLoading").hide(),$(".irwGroupBack").show(),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},GetTypeDescriptions=function(n){$("#PopupDive").html(""),$("#ModelTitle").html(n),$.snl.ir.models.api.FieldDescription.GetTypeDescriptions(n,PopulateGetTypeDescriptionsData)},$(document).delegate(".TypeDescriptions","click",function(){$(".PopupModel .irwLoading").show();var t=$(this).attr("Alias");GetTypeDescriptions(t)}),$.snl.ir.models.api.FieldDescription.GetFndgsInformation=function(n){var t=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),i=t.replace("{Action}","GetFndgsInformation");$.post(i).done(function(t){$.snl.ir.models.api.FieldDescription.FndgsInformationData=t,n()}).fail(function(){alert("error")}).always(function(){})},PopulateFndgsInformationData=function(){var n=$.snl.ir.models.api.FieldDescription.FndgsInformationData;$("#PopupDive").html(n),$(".PopupModel .irwLoading").hide(),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},GetFndgsInformation=function(){$("#PopupDive").html(""),$("#ModelTitle").html("Funding Description"),$.snl.ir.models.api.FieldDescription.GetFndgsInformation(PopulateFndgsInformationData)},$(document).delegate(".FundingDescription","click",function(){$(".PopupModel .irwLoading").show(),GetFndgsInformation()})