function bfcEmbedded(d,c,a,b){this.bfcWidth=a;this.bfcHeight=b;this.pubID=c;this.chartID=d;this.borderColor="white";this.initParams="Symbol=dj-30";this.chartTemplate=null;this.targetElement=null;this.bfcEmbedCtl=null;bfcGlobal.bfcEmbedded.push(this);this.targetURL=null;this.writeChart=function(){var e="";e='<object id="'+this.chartID+'" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="'+this.bfcWidth+'" height="'+this.bfcHeight+'">';e+='<param name="source" value="http://FreeStockCharts.com/ClientBin/bfcChartSnip.xap"/>';e+='<param name="minRuntimeVersion" value="2.0.31005.0" />';e+='<param name="autoUpgrade" value="true" />';e+='<param name="background" value="'+this.borderColor+'" />';e+='<param name="enableHtmlAccess" value="true" />';e+='<param name="initParams" value="'+this.initParams+'" />';e+='<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">';e+='<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>';e+="</a>";e+='</object><div style="color:#777777;font-size:.9em;text-align:center;">Click for interactive chart</div>';if(this.targetElement!=null){if(bfcGlobal.isHoverPending()==false){document.getElementById(this.targetElement).innerHTML=e}}else{if(bfcGlobal.isHoverPending()){var f=new Date();this.targetElement="bfcEmbeddedTmpDiv_"+Math.random()*100;document.writeln("<span id='"+this.targetElement+"'></span>")}else{document.writeln(e)}}};this.callInstallTrack=function(){var e="<script type='text/javascript' src='http://widgets.FreeStockCharts.com/ScriptInstalled.ashx?pubid="+this.pubID+"&widget=embedded&url="+escape(window.location)+"'><\/script>";document.writeln(e)};this.embedChartLoaded=function(){this.bfcEmbedCtl=document.getElementById(this.chartID);if(this.targetURL!=null){this.updateDestURL(this.targetURL)}};this.updateDestURL=function(e){if(this.pubisPaid()){if(this.bfcEmbedCtl==null){return}try{this.bfcEmbedCtl.Content.bfcEmbedScript.SetClickDest(e)}catch(f){}}};this.pubisPaid=function(){try{return this.bfcEmbedCtl.Content.bfcEmbedScript.PubVerified()}catch(e){}};this.createChart=function(){if(typeof this.bfcWidth=="undefined"){this.bfcWidth=250}if(typeof this.bfcHeight=="undefined"){this.bfcHeight=250}this.initParams+=",pubID="+this.pubID;if(this.chartTemplate!=null){this.initParams+=",WebChartID="+this.chartTemplate}this.writeChart();this.callInstallTrack()}};