var quoteProfiles={_object_info:"make changes to quoteProflie.js first then compact to make this file",cssText:"",flyoutHeight:220,flyoutWidth:175,hideSpeed:200,id:"",linkCharts:"",linkNews:"",linkQuote:"",linkReasearch:"",loadingText:"<div class='loading'><img src='/resources/images/animatedLoader.gif' border='0' /><div>",quote:"",ric:"",showSpeed:700,symbols:[],t:"",t2:"",x:0,y:0,yParent:document.getElementById("resizeableText").offsetTop,callback:function(){var b=document.getElementById("quoteAjaxResponse");
quoteProfiles.quote=eval(b.innerHTML);var b=document.getElementById("qpContents"),a="<h3 class='quoteHeader' id='quoteHeader'><a href='"+quoteProfiles.linkQuote+"?symbol="+quoteProfiles.quote.ric+"'>"+quoteProfiles.quote.company+" ("+quoteProfiles.quote.ric+")</a></h3>";a+="<div class='quoteLinks'><a href='"+quoteProfiles.linkNews+"?symbol="+quoteProfiles.quote.ric+"'>News</a>, <a href='"+quoteProfiles.linkCharts+"?symbol="+quoteProfiles.quote.ric+"'>Chart</a>, <a href='"+quoteProfiles.linkReasearch+
"?symbol="+quoteProfiles.quote.ric+"'>Research</a>, <a href='"+quoteProfiles.linkQuote+"?symbol="+quoteProfiles.quote.ric+"'>More...</a></div>";a+="<div class='quoteDetails'><span class='valueContent'>"+quoteProfiles.quote.quote+"<span class='currencyCode'>"+quoteProfiles.quote.currency+"</span></span><span class='valueContent'>";a+=quoteProfiles.quote.positiveChange=="true"?"<span class='pos'>":"<span class='neg'>";a+=quoteProfiles.quote.netChange+"</span></span></span><span class='valueContent'>";
a+=quoteProfiles.quote.positiveChange=="true"?"<span class='pos'>":"<span class='neg'>";a+=quoteProfiles.quote.percentChange+"</span></span><span></div>";a+="<div id='smallChart'><div class='imgLoaded' id='chartDiv'>"+document.getElementById("quoteChartLoader").innerHTML+"</div></div><div class='pagestamp'>As of&nbsp;"+quoteProfiles.quote.timeFormattedForEdition+"</div>";b.innerHTML=a;quoteProfiles.setDimensions()},clearSpanStyle:function(){for(var b=this.symbols.length,a=0;a<b;a++)document.getElementById(this.symbols[a].id).style.cssText=
"background-color:#FFFFF;"},getAjaxQuoteData:function(){com.reuters.rcom.utils.replaceContent("quoteAjaxResponse","/do/marketDataAjax?type=quote&symbol="+this.ric,null,quoteProfiles.callback)},getEditionLinks:function(){switch(strLocalization){case "US":this.linkCharts="/finance/stocks/chart";this.linkNews="/finance/stocks/companyNews";this.linkQuote="/finance/stocks/overview";this.linkReasearch="/finance/stocks/analystResearch";break;case "UK":this.linkCharts="/business/quotes/chart";this.linkNews=
"/business/quotes/companyNews";this.linkQuote="/business/quotes/quote";this.linkReasearch="https://commerce.uk.reuters.com/purchase/advancedSearch.do";break;case "JP":this.linkCharts="/investing/quotes/chart";this.linkNews="/investing/quotes/companyNews";this.linkQuote="/investing/quotes/quote";this.linkReasearch="https://commerce.jp.reuters.com/purchase/advancedSearch.do";break;case "IN":this.linkCharts="/money/quotes/chart",this.linkNews="/money/quotes/companyNews",this.linkQuote="/money/quotes/quote",
this.linkReasearch="#"}},hideFlyout:function(){var b=document.getElementById("quoteFlyout"),a=document.getElementById("quoteAjaxResponse");b.style.cssText="display:none;";document.getElementById("qpContents").innerHTML=this.loadingText;a.innerHTML="";a.style.cssText="display:none;";this.cssText=""},init:function(){var b=document.createElement("div"),a=document.createElement("div"),c=document.createElement("div"),d=document.createElement("div"),f=document.getElementById("resizeableText"),e=document.getElementsByTagName("span");
this.getEditionLinks();b.setAttribute("id","quoteFlyout");b.style.cssText="display:none;";b.innerHTML="<div class='qpTip' id='qpTip'><div class='qpTab' id='qpTab'></div><div class='qpShadow'><div class='qpContents' id='qpContents' style='width:"+this.flyoutWidth+"px; height:"+this.flyoutHeight+"px'>"+this.loadingText+"</div></div></div>";a.setAttribute("id","quoteChartLoader");a.style.cssText="display:none;";c.setAttribute("id","quoteAjaxResponse");c.style.cssText="display:none;";d.style.cssText=
"display:none;";f.appendChild(b);f.appendChild(d);d.appendChild(c);f.appendChild(a);for(b=0;b<e.length;b++)if(e[b].getAttribute("id")!=null&&e[b].getAttribute("id").search(/symbol_/)!=-1)a=e[b].getAttribute("id"),c=document.getElementById(a).innerHTML,d=document.getElementById(a),d.innerHTML='<a href="'+this.linkQuote+"?symbol="+c+'\t">'+d.innerHTML+"</a>",d.style.cssText="cursor:pointer;",this.symbols.push({id:a}),this.regEvents(a)},mouseOutEvent:function(){typeof quoteProfiles.t!="undefined"&&clearTimeout(quoteProfiles.t);
quoteProfiles.clearSpanStyle();quoteProfiles.t2=setTimeout("quoteProfiles.hideFlyout();",quoteProfiles.hideSpeed)},mouseOutEventContainer:function(){typeof quoteProfiles.t!="undefined"&&clearTimeout(quoteProfiles.t);quoteProfiles.clearSpanStyle();quoteProfiles.t2=setTimeout("quoteProfiles.hideFlyout();",quoteProfiles.hideSpeed)},mouseOverEvent:function(){quoteProfiles.quote.id!=this.id&&quoteProfiles.hideFlyout();typeof quoteProfiles.t2!="undefined"&&clearTimeout(quoteProfiles.t2);typeof quoteProfiles.t!=
"undefined"&&clearTimeout(quoteProfiles.t);var b=document.getElementById(this.id);b.style.cssText="background-color:#E5EEF3;";quoteProfiles.x=b.offsetLeft;quoteProfiles.y=b.offsetTop;quoteProfiles.id=this.id;quoteProfiles.ric=b.firstChild.innerHTML;document.getElementById("quoteChartLoader").innerHTML="<img src='/charts/cr/?symbol="+quoteProfiles.ric+"&display=mountain&width=175&height=142&frequency=1day&duration=1year' border='0' />";quoteProfiles.t=setTimeout("quoteProfiles.showFlyout();",quoteProfiles.showSpeed)},
mouseOverEventContainer:function(){typeof quoteProfiles.t2!="undefined"&&clearTimeout(quoteProfiles.t2);document.getElementById(quoteProfiles.id).style.cssText="background-color:#E5EEF3;"},regEvents:function(b){document.getElementById(b).onmouseover=this.mouseOverEvent;document.getElementById(b).onmouseout=this.mouseOutEvent},setDimensions:function(){var b=document.getElementById("quoteHeader"),a=document.getElementById("qpContents");a.style.cssText=a.style.cssText+"height:"+(this.flyoutHeight+b.offsetHeight)+
"px;width:"+this.flyoutWidth+"px;"},setFlyoutLocation:function(b,a){document.getElementById("resizeableText");quoteProfiles.cssText+=document.all&&!window.opera&&window.XMLHttpRequest?"display:inline;left:"+b+"px;top:"+(a+quoteProfiles.yParent)+"px;":"display:inline;left:"+b+"px;top:"+a+"px;"},setOrientation:function(b){var a=document.getElementById("qpTip"),c=document.getElementById("qpTab");b<270?(c.className="qpTab",a.className="qpTip"):(c.className="qpTab2",a.className="qpTip2")},showFlyout:function(){var b=
document.getElementById("quoteFlyout"),a=document.getElementById("qpTip");this.setOrientation(this.x);this.setFlyoutLocation(this.x,this.y);b.style.cssText=this.cssText;a.onmouseover=this.mouseOverEventContainer;a.onmouseout=this.mouseOutEventContainer;this.getAjaxQuoteData()}};quoteProfiles.init();

