var ie=document.all;var ns6=document.getElementById&&!document.all;bfcGlobal.isHoverOnPage=true;function BFC_positiontip(b){for(var a=0;a<bfcGlobal.bfcHoverObjs.length;a++){if(ie){if(b!=null){bfcGlobal.bfcHoverObjs[a].BFC_positiontip(b)}}else{bfcGlobal.bfcHoverObjs[a].BFC_positiontip(b)}}}function BFC_hideTip(b){for(var a=0;a<bfcGlobal.bfcHoverObjs.length;a++){if(bfcGlobal.bfcHoverObjs[a].Instance==b){bfcGlobal.bfcHoverObjs[a].BFC_hideTip()}}}function StatsDateChange(b){for(var a=0;a<bfcGlobal.bfcHoverObjs.length;a++){bfcGlobal.bfcHoverObjs[a].bfc_asOfDate=b}}function SymbolStatIn(f,b,e,c,h,a,g){for(var d=0;d<bfcGlobal.bfcHoverObjs.length;d++){bfcGlobal.bfcHoverObjs[d].SymbolStatIn(f,b,e,c,h,a,g)}}function BFC_processJSON(){for(var a=0;a<bfcGlobal.bfcHoverObjs.length;a++){bfcGlobal.bfcHoverObjs[a].BFC_processJSON()}}function BFC_Parse(b){for(var a=0;a<bfcGlobal.bfcHoverObjs.length;a++){bfcGlobal.bfcHoverObjs[a].BFC_Parse(b)}}function BFC_changeSymbol(b,a){for(var c=0;c<bfcGlobal.bfcHoverObjs.length;c++){if(bfcGlobal.bfcHoverObjs[c].Instance==a){bfcGlobal.bfcHoverObjs[c].BFC_changeSymbol(b)}}}function BFC_onOverCtl(){for(var a=0;a<bfcGlobal.bfcHoverObjs.length;a++){bfcGlobal.bfcHoverObjs[a].BFC_onOverCtl()}}function BFC_onOutCtl(){for(var a=0;a<bfcGlobal.bfcHoverObjs.length;a++){bfcGlobal.bfcHoverObjs[a].BFC_onOutCtl()}}function BFC_hideTip(){for(var a=0;a<bfcGlobal.bfcHoverObjs.length;a++){bfcGlobal.bfcHoverObjs[a].BFC_hideTip()}}function bfc_OnLoad(){for(var a=0;a<bfcGlobal.bfcHoverObjs.length;a++){bfcGlobal.bfcHoverObjs[a].bfc_OnLoad()}}function bfcHoverWidget(instance){this.Instance=instance;this.bfc_offsetxpoint=0;this.bfc_offsetypoint=10;this.ie=document.all;this.ns6=document.getElementById&&!document.all;this.bfcIsTipEnabled=false;this.bfcTipObj=null;this.bfcPositioned=false;this.bfcCloseCancel=false;this.bfcHoverCtl=false;this.bfcEmbedCtl=null;this.bfcParams="Symbol=AAPL,TimeFrame=15-Minute,NumberOfBars=34,WebChartID=a0a5dac5-fe9d-4f41-8fb5-12e15d634e79";this.bfcWidth="330";this.bfcHeight="245";this.bfcSymbolIndex=0;this.BFC_JSONData;this.bfc_subSymbols=[];this.BFC_SymbolData=new Array();this.bfc_hoverSym=null;this.bfc_asOfDate=null;this.bfc_allSymbsParsed=false;this.bfc_ctlReady=false;this.bfc_silverInstalled=true;this.bfc_debug=false;this.bfcFinalW=599;this.bfcFilaH=599;this.bfcMode="hoverchart";this.symbolPrefixChar=" ";this.symbolSuffixChar=" ";this.pubID=501;this.targetURL=null;this.subscriptions=[];this.chartLoadedCallbacks=[];this.Init=function(){if(this.bfc_debug){alert("Init")}if(Silverlight.isInstalled("2.00")!=true){this.bfc_silverInstalled=false;this.bfcMode="hoverchart"}bfcGlobal.bfcHoverObjs.push(this);this.bfcParams+=",PubID="+this.pubID;this.WriteSilverlightHover()};this.addLoadedHandler=function(target){this.chartLoadedCallbacks.push(target)};this.EmbedChartLoaded=function(){this.bfc_ctlReady=true;this.SetStockFinder();if(this.bfc_debug){alert("embeded loaded "+this.bfc_allSymbsParsed)}if(this.bfc_allSymbsParsed){if(this.bfc_debug){alert("calling subscribe ")}this.BFC_Subscribe()}this.FixIEVis()};this.notifyLoadedCallbacks=function(){if(this.chartLoadedCallbacks.length>0){for(var i=0;i<this.chartLoadedCallbacks.length;i++){eval(this.chartLoadedCallbacks[i])}this.chartLoadedCallbacks=[]}};this.FixIEVis=function(){if((ie)&&(this.bfcIsTipEnabled==false)){var div=document.getElementById("bfc_chart_tip");div.style.visibility="hidden"}if((this.bfcMode=="hoverchart")){if(ie){if((this.bfcIsTipEnabled==false)){var div=document.getElementById("bfc_chart_tip");div.style.visibility="hidden"}var silver=document.getElementById("BFC_SilverCtl");silver.style.width=this.bfcFinalW+"px";silver.style.height=this.bfcFilaH+"px"}}};this.bfc_updateDestURL=function(ctlName,url){this.bfcEmbedCtl=document.getElementById(ctlName);if(this.bfcEmbedCtl==null){return}try{this.bfcEmbedCtl.Content.bfcEmbedScript.SetClickDest(url)}catch(err){}};this.isPaidPub=function(){try{var silver=document.getElementById("BFC_SilverCtl");return silver.Content.bfcEmbedScript.PubVerified()}catch(ex){}};this.SetStockFinder=function(){if(this.bfTargetMode=="sf"){var url="http://www.stockfinder.com";if(this.bfc_hoverSym!=null){url+="/hoverchartlanding.aspx?symbol="+this.bfc_hoverSym+"&source="+(location.hostname)}this.bfc_updateDestURL("bfc_mini",url);this.bfc_updateDestURL("BFC_SilverCtl",url)}else{if((this.isPaidPub())&&(this.targetURL!=null)){this.bfc_updateDestURL("bfc_mini",this.targetURL);this.bfc_updateDestURL("BFC_SilverCtl",this.targetURL)}}};this.getChildText=function(n){if(n.childNodes.length>0){for(j=0;j<n.childNodes.length;j++){var child=n.childNodes[j];if(child.nodeType==3){return child.data}}}};this.getChildText2=function(n){if(n.childNodes.length>0){for(j=0;j<n.childNodes.length;j++){var child=n.childNodes[j];if(child.nodeType==3){var ret=child.data;return child.data}}}};this.containsInputTags=function(n){if(n.childNodes.length>0){for(j=0;j<n.childNodes.length;j++){var child=n.childNodes[j];if(this.isNodeNameValid(child.nodeName)==false){return true}}}return false};this.IEDomWalk2=function(oNode,find,repl,subSymbol){for(var a=0;a<oNode.childNodes.length;a++){var n=oNode.childNodes[a];if((n.nodeName!="SCRIPT")&&((n.nodeType==1)||(n.nodeType==3))){if((n.nodeName!="FORM")&&(n.nodeName!="BODY")){if((n.nodeType==1)&&(typeof n.innerHTML!="undefined")){var txt=this.getChildText(n);if(txt!=null){var start=n.innerHTML.search('[.> ",:]'+find+'[.< ?!",:]');var len=find.length;if(find[0]=="\\"){len-=1}if(start>0){if(this.bfc_debug){alert("Replacing symbol "+subSymbol)}try{var newHTML=n.innerHTML.substr(0,start+1)+repl+n.innerHTML.substr(start+1+len);n.innerHTML=newHTML;this.BFC_SubscribeSymbol(subSymbol);return true}catch(ex){}}}}}if(n.childNodes.length>0){var ret=this.IEDomWalk2(n,find,repl,subSymbol);if(ret){return true}}}}};this.BFC_getReplaceString=function(sym,text){var rep;if(this.bfTargetMode=="sf"){rep=' <a href="http://www.stockfinder.com/?Symbol='+sym+'" onmouseover="BFC_changeSymbol(\''+sym+"','"+this.Instance+"');\" onmouseout=\"BFC_hideTip('"+this.Instance+"')\">"+text+"</a>"}else{rep=' <a href="http://www.FreeStockCharts.com/?Symbol='+sym+'" onmouseover="BFC_changeSymbol(\''+sym+"','"+this.Instance+"');\" onmouseout=\"BFC_hideTip('"+this.Instance+"')\">"+text+"</a>"}if(this.bfcEmbedLastNet){rep+="<span style='text-decoration:none;' id='bfcInlineData_"+sym+"'></span>"}this.addEmbeddedReportTarget(sym,"bfcInlineData_"+sym);return rep};this.addEmbeddedReportTarget=function(sym,span){if(typeof this.subscriptions[sym]=="undefined"){this.subscriptions[sym]=new Array()}this.subscriptions[sym].push(span)};this.BFC_SubscribeSymbol=function(sym){if(this.bfcEmbedLastNet){this.bfc_subSymbols.push(sym)}};this.SymbolStatIn=function(Symbol,Price,YestPrice,TodaysVolume,AvgVolume,company,exchID){for(var i=0;i<this.subscriptions[Symbol].length;i++){var spanID=this.subscriptions[Symbol][i];var span=document.getElementById(spanID);if(span!=null){var net=Price-YestPrice;var percent=(net/YestPrice)*100;percent=percent.toFixed(2);var data={C:Price.toFixed(2),C1:YestPrice.toFixed(2),net:net.toFixed(2),percent:percent,vol:TodaysVolume,avgvol:AvgVolume,company:company,exch:exchID};this.BFC_SymbolData[Symbol]=data;if(net>=0){span.innerHTML="<sub><span style='color:green;text-decoration:none;'>+"+percent+"% </span></sub>"}else{span.innerHTML="<sub><span style='color:red;text-decoration:none;'>"+percent+"% </span></sub>"}}if((this.bfcIsTipEnabled)&&(this.bfc_hoverSym==Symbol)){if(this.bfcMode=="report"){this.bfc_UpdateHoverDiv(Symbol)}else{if(this.bfcMode=="hybrid"){var div=document.getElementById("bfc_Floating_Report_"+Symbol);if(div!=null){div.innerHTML=this.bfc_getFloatingReport(Symbol)}}}}}};this.BFC_Subscribe=function(){this.bfcEmbedCtl=document.getElementById("BFC_SilverCtl");if(this.bfcEmbedCtl==null){return}for(var i=0;i<this.bfc_subSymbols.length;i++){var sym=this.bfc_subSymbols[i];this.subscribeToSymbol(sym)}try{this.bfcEmbedCtl.Content.bfcEmbedScript.SendTimeStamp()}catch(err){}this.notifyLoadedCallbacks()};this.subscribeToSymbol=function(sym){try{this.bfcEmbedCtl.Content.bfcEmbedScript.SubscribeToSymbol(sym)}catch(err){}};this.BFC_processJSON=function(){if(this.bfc_debug){alert("Process JSON "+this.bfcSymbolIndex)}var keepLooping=true;var sleep=false;while(keepLooping){if(this.bfcSymbolIndex<this.BFC_JSONData.length){if(this.symbolPrefixChar==" "){this.symbolPrefixChar=""}if(this.symbolSuffixChar==" "){this.symbolSuffixChar=""}var regexPrefix=this.symbolPrefixChar;var regexSuffix=this.symbolSuffixChar;if(regexPrefix.length>0){regexPrefix="\\"+regexPrefix}if(regexSuffix.length>0){regexSuffix="\\"+regexSuffix}var find=this.symbolPrefixChar+this.BFC_JSONData[this.bfcSymbolIndex].find+this.symbolSuffixChar;var regexFind=regexPrefix+this.BFC_JSONData[this.bfcSymbolIndex].find+regexSuffix;var bfcSym=this.BFC_JSONData[this.bfcSymbolIndex].s;if(this.bfc_debug){alert("Process JSON "+find)}var replacement="";replacement+=this.BFC_JSONData[this.bfcSymbolIndex].find;var rep=this.BFC_getReplaceString(bfcSym,replacement);this.IEDomWalk2(document.body,regexFind,rep,bfcSym);if(this.bfcSymbolIndex%30==0){keepLooping=false;sleep=true}}else{this.bfc_allSymbsParsed=true;bfcGlobal.doHoverFinished();if(this.bfc_ctlReady){this.BFC_Subscribe()}keepLooping=false}this.bfcSymbolIndex+=1}if(sleep){var thisObj=this;setTimeout(function(){thisObj.BFC_processJSON()},20)}};this.bfc_textForPage=function(){var strings=[];this.bfc_getStrings(document.body,strings);return strings.join("")};this.isValidNode=function(node){if(this.isNodeNameValid(node.nodeName)==false){return false}if((node.nodeName=="#text")&&(this.isNodeNameValid(node.parentNode.nodeName)==false)){return false}return true};this.isNodeNameValid=function(nodeName){if(nodeName=="SCRIPT"){return false}if(nodeName=="BODY"){return false}if(nodeName=="FORM"){return false}if(nodeName=="STYLE"){return false}if(nodeName=="INPUT"){return false}return true};this.bfc_getStrings=function(oNode,strings){for(var a=0;a<oNode.childNodes.length;a++){var n=oNode.childNodes[a];if((n.nodeName!="SCRIPT")&&((n.nodeType==1)||(n.nodeType==3))){if(this.isValidNode(n)){if((n.nodeType==1)&&(typeof n.innerHTML!="undefined")){var txt=this.getChildText(n);if(txt!=null){strings.push(txt)}}}if(n.childNodes.length>0){var ret=this.bfc_getStrings(n,strings);if(ret){return true}}}}};this.BFC_changeSymbol=function(sym){if(this.bfcMode=="hoverchart"){this.bfcEmbedCtl=document.getElementById("BFC_SilverCtl");try{this.bfcEmbedCtl.Content.bfcEmbedScript.ChangeToSymbol(sym)}catch(err){}}else{this.bfc_hoverSym=sym;if(this.bfcMode=="report"){this.bfc_UpdateHoverDiv(sym)}else{if(this.bfcMode=="hybrid"){this.bfc_UpdateHoverDivMiniChart(sym)}}}this.BFC_showTip("bfc_chart_tip")};this.bfcExchangeForID=function(id){switch(id){case 1:return"NYSE";break;case 2:return"NYX";break;case 3:return"NASDAQ";break;case 4:return"BFC";break;case 5:return"USINDEX";break;case 6:return"TSX";break;case 7:return"TSXV";break}};this.bfc_UpdateHoverDiv=function(sym){var div=document.getElementById("bfc_chart_tip");var data=this.BFC_SymbolData[sym];var html="";div.style.width="250px";div.style.background="#ECF4F6";div.style.border="solid 1px black";div.style.padding="10px";div.style.zindex="200";var asOf=this.bfc_FormatTime(this.bfc_asOfDate.getHours())+":"+this.bfc_FormatTime(this.bfc_asOfDate.getMinutes())+":"+this.bfc_FormatTime(this.bfc_asOfDate.getSeconds());html="<span style=\"font-family: 'Times New Roman' , Times, serif;font-size:12pt;color:black;\">";html+="<style type='text/css'>";html+=".bfc_popupdataRow { border-bottom:solid 1px silver; padding-top:5px; }";html+="</style>";html+="<span style='font-size:.8em'><strong style='font-size:1.1em'>"+sym+"-&nbsp;"+data.company+"&nbsp;<span style='font-size:.8em;color:#555555'>"+this.bfcExchangeForID(data.exch)+"</span></strong>";html+="<div style='font-size:.8em;color:#555555;'><strong>as of "+asOf+"</div>";html+="<table border=0 cellpadding=0 cellspacing=0>";html+="<tr ><td class='bfc_popupdataRow '>Last</td><td class='bfc_popupdataRow ' align=right><strong>$"+data.C+"</strong></td><td width=15></td>";html+="<td class='bfc_popupdataRow '>Net</td><td class='bfc_popupdataRow ' align=right><strong>"+data.net+"</strong></td></tr>";html+="<tr><td class='bfc_popupdataRow '>Percent</td><td align=right class='bfc_popupdataRow '><strong>"+data.percent+"</strong></td><td width=15></td>";html+="<td class='bfc_popupdataRow '>Vol&nbsp;&nbsp;</td><td align=right class='bfc_popupdataRow '><strong>"+data.vol+"</strong></td></tr>";html+="<tr><td class='bfc_popupdataRow '>AvgVol&nbsp;&nbsp;</td><td class='bfc_popupdataRow ' align=right><strong>"+data.avgvol+"</strong></td><td width=15></td>";html+="</table>";html+="</span>";if(this.bfTargetMode=="sf"){html+="<div style='margin-top:5px;font-face:Tahoma Arial;font-size:.7em'>compliments of <a target=_blank href='http://www.stockfinder.com/?source=HoverTip'>StockFinder.com</a></div>"}else{if((this.isPaidPub())&&(this.targetURL!=null)){}else{html+="<div style='margin-top:5px;font-face:Tahoma Arial;font-size:.7em'>powered by <a target=_blank href='http://www.FreeStockCharts.com/?source=HoverTip'>FreeStockCharts.com</a></div>"}}html+="<div style='margin-top:5px;font-face:Tahoma Arial;font-size:.6em;color:#8F9393'>Real-time from BATS Exchange</div>";html+="</span>";div.innerHTML=html};this.bfc_getFloatingReport=function(sym){var html="";var asOf=this.bfc_FormatTime(this.bfc_asOfDate.getHours())+":"+this.bfc_FormatTime(this.bfc_asOfDate.getMinutes())+":"+this.bfc_FormatTime(this.bfc_asOfDate.getSeconds());var data=this.BFC_SymbolData[sym];if(data==null){return""}html+="<span style='font-size:.8em;color:#555555;'><strong>as of "+asOf+"</strong></span><br/>";html+="<br/>";html+="<div style='float:left;width:75px;'>Last</div><span><strong>"+data.C+"</strong></span><br/>";html+="<div class='bfc_popupdataRow' style='clear:both;width:100%;height:5px;'></div>";html+="<div style='float:left;width:75px;'>Net</div><span><strong>"+data.net+"</strong></span><br/>";html+="<div class='bfc_popupdataRow' style='clear:both;width:100%;height:5px;'></div>";html+="<div style='float:left;width:75px;'>Percent</div><span><strong>"+data.percent+"</strong></span><br/>";html+="<div class='bfc_popupdataRow' style='clear:both;width:100%;height:5px;'></div>";html+="<div style='float:left;width:75px;'>Volume</div><span><strong>"+data.vol+"</strong></span><br/>";html+="<div class='bfc_popupdataRow' style='clear:both;width:100%;height:5px;'></div>";html+="<div style='float:left;width:75px;'>Avg Volume</div><span><strong>"+data.avgvol+"</strong></span><br/>";html+="<div class='bfc_popupdataRow' style='clear:both;width:100%;height:5px;'></div>";return html};this.bfc_UpdateHoverDivMiniChart=function(sym){var div=document.getElementById("bfc_chart_tip");var html="";div.style.width="380px";div.style.background="#ECF4F6";div.style.border="solid 1px black";div.style.padding="10px";html="<div style=\"font-family: 'Times New Roman' , Times, serif;font-size:12pt;color:black;\">";html+="<style type='text/css'>";html+=".bfc_popupdataRow { border-bottom:solid 1px silver;}";html+="</style>";var data=this.BFC_SymbolData[sym];html+="<span style='font-size:.8em'><div><strong style='font-size:1.1em'>"+sym+"-&nbsp;"+data.company+"&nbsp;<span style='font-size:.8em;color:#555555'>"+this.bfcExchangeForID(data.exch)+"</span></strong></div>";html+="<div id='bfc_Floating_Report_"+sym+"' style='float:left;width:140px'>";html+=this.bfc_getFloatingReport(sym);html+="</div>";html+="<div style='float:left;margin-left:25px;margin-top:7px;width:200px;'>";html+=this.getMiniChart(sym);html+="</div>";html+="</span>";if(this.bfTargetMode=="sf"){html+="<div style='clear:both;margin-top:5px;font-face:Tahoma Arial;font-size:.7em'>compliments of <a target=_blank href='http://www.stockfinder.com/?source=HoverTip'>StockFinder.com</a></div>"}else{if((this.isPaidPub())&&(this.targetURL!=null)){}else{if(this.bfcMode=="report"){html+="<div style='clear:both;margin-top:5px;font-face:Tahoma Arial;font-size:.7em'>powered by <a target=_blank href='http://www.FreeStockCharts.com/?source=HoverTip'>FreeStockCharts.com</a></div>"}}}if(this.bfcMode=="report"){html+="<div style='margin-top:5px;font-face:Tahoma Arial;font-size:.6em;color:#8F9393'>Real-time from BATS Exchange</div>"}html+="</div>";div.innerHTML=html};this.getMiniChart=function(sym){var ret="";ret+=('<object data="data:application/x-silverlight-2," id="bfc_mini" onmouseover="javascript:BFC_onOverCtl();"  type="application/x-silverlight-2" width="200" height="150">');ret+=('<param name="source" value="http://www.FreeStockCharts.com/ClientBin/bfcChartSnip.xap"/>');ret+=('<param name="background" value="#ECF4F6" />');ret+=('<param name="minRuntimeVersion" value="2.0.31005.0" />');ret+=('<param name="autoUpgrade" value="true" />');ret+=('<param name="enableHtmlAccess" value="true" />');ret+=('<param name="initParams" value="Symbol='+sym+",PubID="+this.pubID+',TimeFrame=15-Minute,NumberOfBars=25,WebChartID=41620e66-3b59-4067-ab8d-1dbfcd040fe2" />');ret+=('<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">');ret+=('<img src="http://widgets.FreeStockCharts.com/images/nosilverlight.jpg" alt="Get Microsoft Silverlight" style="border-style: none"/>');ret+=("</a>");ret+=("</object>");if(this.bfTargetMode!="sf"){ret+=('<div style="color:#777777;font-size:.9em;text-align:center;">Click for interactive chart</div>')}return ret};this.WriteSilverlightHover=function(){document.writeln('<div id="bfc_chart_tip" onmouseover="javascript:BFC_onOverCtl();" onmouseout="javascript:BFC_onOutCtl();"  >');if(this.bfcMode=="hoverchart"){if(ie){this.bfcFinalW=this.bfcWidth;this.bfcFilaH=this.bfcHeight;this.bfcWidth="1px";this.bfcHeight="1px";document.writeln(this.getBFCCode("BFC_SilverCtl"));document.writeln("</div>")}else{document.writeln(this.getBFCCode("BFC_SilverCtl"));document.writeln("</div>")}}else{document.writeln("</div>");document.writeln('<div id="bfc_control_div" style="">');this.bfcWidth="1px";this.bfcHeight="1px";document.writeln(this.getBFCCode("BFC_SilverCtl"));document.writeln("</div>")}if(this.bfc_silverInstalled==false){this.FixIEVis()}};this.bfc_FormatTime=function(i){if(i<10){i="0"+i}return i};this.getBFCCode=function(ctlName){var ret;ret=('<div id="silverlightControlHost" >');if(typeof this.bfcWidth=="undefined"){this.bfcWidth=250}if(typeof this.bfcHeight=="undefined"){this.bfcHeight=250}if(typeof this.bfcParams=="undefined"){this.bfcParams="Symbol=dj-30"}if(typeof bfcBackColor!="undefined"){this.bfcParams+=",BackColor="+this.bfcBackColor}ret+=('<object data="data:application/x-silverlight-2,"id="'+ctlName+'" onmouseover="javascript:BFC_onOverCtl();" onmouseout="javascript:BFC_onOutCtl();" type="application/x-silverlight-2" width="'+this.bfcWidth+'" height="'+this.bfcHeight+'">');ret+=('<param name="source" value="http://www.FreeStockCharts.com/ClientBin/bfcChartSnip.xap"/>');ret+=('<param name="background" value="white" />');ret+=('<param name="minRuntimeVersion" value="2.0.31005.0" />');ret+=('<param name="autoUpgrade" value="true" />');ret+=('<param name="enableHtmlAccess" value="true" />');ret+=('<param name="onLoad" value="BFC_SilverLightLoad" />');ret+=('<param name="initParams" value="'+this.bfcParams+'" />');ret+=('<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">');ret+=('<img src="http://widgets.FreeStockCharts.com/images/nosilverlight.png" alt="Get Microsoft Silverlight" style="border-style: none"/>');ret+=("</a>");ret+=("</object>");ret+=("</div>");return ret};this.ietruebody=function(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body};this.BFC_showTip=function(elementID){if(this.ns6||this.ie){this.bfcTipObj=document.getElementById(elementID);this.bfcCloseCancel=true;this.bfcIsTipEnabled=true;this.bfcPositioned=false;return false}};this.BFC_positiontip=function(e){if((this.bfcPositioned==false)&&(this.bfcIsTipEnabled)){var curX=(ns6)?e.pageX:event.clientX+this.ietruebody().scrollLeft;var curY=(ns6)?e.pageY:event.clientY+this.ietruebody().scrollTop;this.bfcPositioned=true;var rightedge=ie&&!window.opera?this.ietruebody().clientWidth-event.clientX-this.bfc_offsetxpoint:window.innerWidth-e.clientX-this.bfc_offsetxpoint-20;var bottomedge=ie&&!window.opera?this.ietruebody().clientHeight-event.clientY-this.bfc_offsetypoint:window.innerHeight-e.clientY-this.bfc_offsetypoint-20;var leftedge=(this.bfc_offsetxpoint<0)?this.bfc_offsetxpoint*(-1):-1000;if(rightedge<this.bfcTipObj.offsetWidth){this.bfcTipObj.style.left=ie?this.ietruebody().scrollLeft+event.clientX-this.bfcTipObj.offsetWidth+"px":window.pageXOffset+e.clientX-this.bfcTipObj.offsetWidth+"px"}else{if(curX<leftedge){this.bfcTipObj.style.left="5px"}else{this.bfcTipObj.style.left=curX+this.bfc_offsetxpoint+"px"}}if(bottomedge<this.bfcTipObj.offsetHeight){this.bfcTipObj.style.top=ie?this.ietruebody().scrollTop+event.clientY-this.bfcTipObj.offsetHeight-this.bfc_offsetypoint+"px":window.pageYOffset+e.clientY-this.bfcTipObj.offsetHeight-this.bfc_offsetypoint+"px"}else{this.bfcTipObj.style.top=curY+this.bfc_offsetypoint+"px"}this.bfcTipObj.style.visibility="visible"}};this.BFC_onOverCtl=function(){this.bfcHoverCtl=true};this.BFC_onOutCtl=function(){this.bfcHoverCtl=false};this.BFC_hideTip=function(){this.bfcCloseCancel=false;var thisObj=this;setTimeout(function(){thisObj.BFC_checkHideTip()},1000)};this.BFC_isOverObj=function(obj){return this.bfcHoverCtl};this.BFC_checkHideTip=function(){if(this.bfcCloseCancel){return}if(this.bfcIsTipEnabled){if(this.BFC_isOverObj(this.bfcTipObj)==false){if(this.ns6||this.ie){this.bfcIsTipEnabled=false;this.bfcTipObj.style.visibility="hidden"}}else{if(this.bfcCloseCancel==false){var thisObj=this;setTimeout(function(){thisObj.BFC_checkHideTip()},500)}}}};this.bfc_urlencode=function(str){str=escape(str);return str};this.BFC_Parse=function(data){if(this.bfc_debug){alert("Got Symbols Data "+data)}this.BFC_JSONData=data;this.bfcSymbolIndex=0;var thisObj=this;setTimeout(function(){thisObj.BFC_processJSON()},20)};this.callInstallTrack=function(){var oScript=document.createElement("script");oScript.src="http://widgets.FreeStockCharts.com/ScriptInstalled.ashx?pubid="+this.pubID+"&widget=hover&url="+escape(window.location);document.body.appendChild(oScript)};this.bfc_getSymbolsForPage=function(){var text=this.bfc_textForPage();text=text.replace(/[\r\n]/g," ");text=text.substring(0,2083);if(this.bfc_debug){alert("Calling for Symbols "+text)}var oScript=document.createElement("script");oScript.src="http://widgets.FreeStockCharts.com/symbolsRegEx.ashx?callback=BFC_Parse";if((this.symbolPrefixChar.length>0)){oScript.src+="&prefix="+this.ascii_value(this.symbolPrefixChar)}else{oScript.src+="&prefix=0"}if((this.symbolSuffixChar.length>0)){oScript.src+="&suffix="+this.ascii_value(this.symbolSuffixChar)}else{oScript.src+="&suffix=0"}oScript.src+="&text="+text;document.body.appendChild(oScript)};this.bfc_OnLoad=function(){if(this.bfc_debug){alert("On Load:"+this.Instance)}this.SetStockFinder();this.bfc_getSymbolsForPage();this.callInstallTrack()};this.ascii_value=function(c){c=c.charAt(0);var i;for(i=0;i<256;++i){var h=i.toString(16);if(h.length==1){h="0"+h}h="%"+h;h=unescape(h);if(h==c){break}}return i}}document.writeln("<style type='text/css'>");if(typeof bfcBorderColor=="undefined"){bfcBorderColor="transparent"}if(ie){document.writeln("#bfc_chart_tip {position: absolute;width: 330px;border: 0px;padding: 1px;background-color: "+bfcBorderColor+";z-index: 200;}")}else{document.writeln("#bfc_chart_tip {position: absolute;width: 330px;border: 0px;padding: 1px;background-color: "+bfcBorderColor+";visibility:hidden;z-index: 200;}")}document.writeln("</style>");addEvent(window,"load",bfc_OnLoad);addEvent(document,"mousemove",BFC_positiontip);