function EXm_RigCounts(sPID,sParamName,sParamVal) {
	initChart1Props='i000000_i000000_i003688_i003697';

	sHTML="";
	sHTML=sHTML+"<META HTTP-EQUIV='Pragma' CONTENT='no-cache'><META HTTP-EQUIV='Expires' CONTENT='-1'>";
	sHTML=sHTML+"<!LANGUAGE='JavaScript' SRC='http://www.theFinancials.com/js/Thumbnails.js'></script>";
	sHTML=sHTML+"<div align='center'><center>";
	sHTML=sHTML+"<table id='WidgetTable' border='0' cellspacing='0' cellpadding='2'";
	
	if (typeof(sParamName)!='undefined' && typeof(sParamVal)!='undefined') {
	   if (sParamName.toLowerCase()=='table_width' && sParamVal) {
	       sHTML=sHTML+" width='" + sParamVal + "'";
	   }
	}
	
	sHTML=sHTML+"width='260'>";
	sHTML=sHTML+"<tr>";
	sHTML=sHTML+"    <td align='center' style='border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000' colspan='4' border='0' cellpadding='0' height='16' nowrap><div style='font-family: Arial; font-size: 10px;'>";
	sHTML=sHTML+"        <a title='view details/history' href='http://www.theFinancials.com/Default.aspx?SubSectionID=homesumm&ReportFileName=EX_RigCounts.html' target='_top'>view details/history</a><font style='font-family: Arial; font-size: 10px; color: #FF0000;'>&nbsp;|</font>";
	sHTML=sHTML+"        <a title='get widget' href='http://www.theFinancials.com/WidgetWizard.aspx?id=0166103911&src=free' target='_top'>get widget</a></div>";
	sHTML=sHTML+"    </td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+" <tr> <td align='center' nowrap colspan='4' style='border-left: 1px solid #000000; border-right: 1px solid #000000'><!-- ";
	sHTML=sHTML+"Code for Futures Press Banner 260x60";
	sHTML=sHTML+"Replace xxx with your Affiliate code";
	sHTML=sHTML+"-->";
	sHTML=sHTML+"<!type='text/javascript' src='http://futurespress.net/banner/ad.js?code=5OyPFYaxN2aaYcS1nbZ5VA,fin'></script><iframe src='http://futurespress.net/banner/RenderNS.ashx?code=5OyPFYaxN2aaYcS1nbZ5VA&AffCode=fin' scrolling='no' frameborder='0' width='260' height='60'></iframe></td><form name='Fname03651'>";
	sHTML=sHTML+"      <tr>";
	sHTML=sHTML+"        <td colspan='4' bgcolor='#000000' align='center'><font color='#FFFFFF' face='Arial, Helvetica' size='2'><b>Worldwide Rig Counts</b></font><br>";
	sHTML=sHTML+"<a href='#' onClick='ZoomThumbnail(&quot;commodities&quot;,&quot;Chart206908&quot;,&quot;&quot;,&quot;C&quot;);return false;' onmouseover='window.status=&quot;Click to Enlarge&quot;; return false' onmouseout='window.status=&quot;&quot;; return false' target='_self'><img src='http://www.thefinancials.com/charts//i003688p.jpg' name='Chart206908' alt='Click to Enlarge' border='0' width='260' height='130' style='padding-top: 1px; padding-left: 1px; padding-right: 1px;' hspace='1'></a></td>";
	sHTML=sHTML+"      </tr>";
	sHTML=sHTML+"<tr><td colspan='4' bgcolor='#000000' align='center' nowrap valign='middle'><font color='#FFFFFF' face='Arial, Helvetica' size='2'><b><input type='radio' value='Y-2' name='optTimeframe' onclick='ChangeTimeframes(&quot;Chart206908&quot;,&quot;Fname03651&quot;)' checked>1 Year&nbsp;<input type='radio' value='Y3-3' name='optTimeframe' onclick='ChangeTimeframes(&quot;Chart206908&quot;,&quot;Fname03651&quot;)'>3 Years</b></font>    </td></tr>      <tr>";
	sHTML=sHTML+"        <td  bgcolor='#000080' colspan='2' align='left'><font face='Arial, Helvetica' size='2' color='#FFFFFF' >9-Feb-12</font></td>";
	sHTML=sHTML+"        <td align='center' bgcolor='#000080'><font face='Arial, Helvetica' size='2' color='#FFFFFF'>Last</font></td>";
	sHTML=sHTML+"<td  bgcolor='#000080' align='center'><font face='Arial, Helvetica' size='2' color='#FFFFFF'>Change</font></td>";
	sHTML=sHTML+"      </tr>";
	sHTML=sHTML+"</form>";
	sHTML=sHTML+"<tr>   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:left; '><a href='#' onClick='LoadThumbnail(&quot;i000000&quot;,&quot;i000000&quot;,&quot;i003693&quot;,&quot;i003702&quot;,&quot;Chart206908_ChartInd_701521&quot;,&quot;Fname03651&quot;);return false;'  onmouseover='window.status=&quot;Baker Hughes Oil and Gas Rig Count - Canada as of 3-Feb-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font face='Arial, Helvetica'  size='1'>Rig Count - Canada</font></a>";
	sHTML=sHTML+" <img name='Chart206908_ChartInd_701521' border='0' src='http://www.thefinancials.com/images/blank.gif'></td>";
	sHTML=sHTML+"        <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:center; '><img src='http://www.thefinancials.com/images/uparrow.gif' border='0'></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;'><a onmouseover='window.status=&quot;up 133 as of 3-Feb-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font  size='1' face='Arial, Helvetica' color='#008000'>710</font></a></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;' ><font  size='1' face='Arial, Helvetica' color='#008000'>133</font></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"<tr>   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:left; '><a href='#' onClick='LoadThumbnail(&quot;i000000&quot;,&quot;i000000&quot;,&quot;i003686&quot;,&quot;i003695&quot;,&quot;Chart206908_ChartInd_78706&quot;,&quot;Fname03651&quot;);return false;'  onmouseover='window.status=&quot;Baker Hughes Oil and Gas Rig Count - United States as of 3-Feb-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font face='Arial, Helvetica'  size='1'>Rig Count - USA</font></a>";
	sHTML=sHTML+" <img name='Chart206908_ChartInd_78706' border='0' src='http://www.thefinancials.com/images/blank.gif'></td>";
	sHTML=sHTML+"        <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:center; '><img src='http://www.thefinancials.com/images/downarrow.gif' border='0'></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;'><a onmouseover='window.status=&quot;down 6 as of 3-Feb-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font  size='1' face='Arial, Helvetica' color='#FF0000'>1997</font></a></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;' ><font  size='1' face='Arial, Helvetica' color='#FF0000'>-6</font></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"<tr>   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:left; '><a href='#' onClick='LoadThumbnail(&quot;i000000&quot;,&quot;i000000&quot;,&quot;i003694&quot;,&quot;i003703&quot;,&quot;Chart206908_ChartInd_344062&quot;,&quot;Fname03651&quot;);return false;'  onmouseover='window.status=&quot;Baker Hughes Oil and Gas Rig Count - Total World as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font face='Arial, Helvetica'  size='1'>Rig Count - Total World</font></a>";
	sHTML=sHTML+" <img name='Chart206908_ChartInd_344062' border='0' src='http://www.thefinancials.com/images/blank.gif'></td>";
	sHTML=sHTML+"        <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:center; '><img src='http://www.thefinancials.com/images/uparrow.gif' border='0'></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;'><a onmouseover='window.status=&quot;up 139 as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font  size='1' face='Arial, Helvetica' color='#008000'>3751</font></a></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;' ><font  size='1' face='Arial, Helvetica' color='#008000'>139</font></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"<tr><td nowrap colspan='5' height='10'><hr color='#C0C0C0' size='1' width='100%'></td></tr><tr ><tr>   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:left; '><a href='#' onClick='LoadThumbnail(&quot;i000000&quot;,&quot;i000000&quot;,&quot;i003687&quot;,&quot;i003696&quot;,&quot;Chart206908_ChartInd_794759&quot;,&quot;Fname03651&quot;);return false;'  onmouseover='window.status=&quot;Baker Hughes Oil and Gas Rig Count - Latin America as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font face='Arial, Helvetica'  size='1'>Rig Count - LatAm</font></a>";
	sHTML=sHTML+" <img name='Chart206908_ChartInd_794759' border='0' src='http://www.thefinancials.com/images/blank.gif'></td>";
	sHTML=sHTML+"        <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:center; '><img src='http://www.thefinancials.com/images/downarrow.gif' border='0'></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;'><a onmouseover='window.status=&quot;down 18 as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font  size='1' face='Arial, Helvetica' color='#FF0000'>420</font></a></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;' ><font  size='1' face='Arial, Helvetica' color='#FF0000'>-18</font></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"<tr>   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:left; '><a href='#' onClick='LoadThumbnail(&quot;i000000&quot;,&quot;i000000&quot;,&quot;i003688&quot;,&quot;i003697&quot;,&quot;Chart206908_ChartInd_389871&quot;,&quot;Fname03651&quot;);return false;'  onmouseover='window.status=&quot;Baker Hughes Oil and Gas Rig Count - Europe as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font face='Arial, Helvetica'  size='1'>Rig Count - Europe</font></a>";
	sHTML=sHTML+" <img name='Chart206908_ChartInd_389871' border='0' src='http://www.thefinancials.com/images/ActiveChart.gif' alt='This marker indicates the current chart.'></td>";
	sHTML=sHTML+"        <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:center; '><img src='http://www.thefinancials.com/images/downarrow.gif' border='0'></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;'><a onmouseover='window.status=&quot;down 4 as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font  size='1' face='Arial, Helvetica' color='#FF0000'>108</font></a></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;' ><font  size='1' face='Arial, Helvetica' color='#FF0000'>-4</font></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"<tr>   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:left; '><a href='#' onClick='LoadThumbnail(&quot;i000000&quot;,&quot;i000000&quot;,&quot;i003689&quot;,&quot;i003698&quot;,&quot;Chart206908_ChartInd_700424&quot;,&quot;Fname03651&quot;);return false;'  onmouseover='window.status=&quot;Baker Hughes Oil and Gas Rig Count - Africa as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font face='Arial, Helvetica'  size='1'>Rig Count - Africa</font></a>";
	sHTML=sHTML+" <img name='Chart206908_ChartInd_700424' border='0' src='http://www.thefinancials.com/images/blank.gif'></td>";
	sHTML=sHTML+"        <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:center; '><img src='http://www.thefinancials.com/images/downarrow.gif' border='0'></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;'><a onmouseover='window.status=&quot;down 1 as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font  size='1' face='Arial, Helvetica' color='#FF0000'>78</font></a></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;' ><font  size='1' face='Arial, Helvetica' color='#FF0000'>-1</font></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"<tr>   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:left; '><a href='#' onClick='LoadThumbnail(&quot;i000000&quot;,&quot;i000000&quot;,&quot;i003690&quot;,&quot;i003699&quot;,&quot;Chart206908_ChartInd_668606&quot;,&quot;Fname03651&quot;);return false;'  onmouseover='window.status=&quot;Baker Hughes Oil and Gas Rig Count - Middle East as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font face='Arial, Helvetica'  size='1'>Rig Count - Middle East</font></a>";
	sHTML=sHTML+" <img name='Chart206908_ChartInd_668606' border='0' src='http://www.thefinancials.com/images/blank.gif'></td>";
	sHTML=sHTML+"        <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:center; '><img src='http://www.thefinancials.com/images/uparrow.gif' border='0'></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;'><a onmouseover='window.status=&quot;up 7 as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font  size='1' face='Arial, Helvetica' color='#008000'>311</font></a></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;' ><font  size='1' face='Arial, Helvetica' color='#008000'>7</font></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"<tr>   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:left; '><a href='#' onClick='LoadThumbnail(&quot;i000000&quot;,&quot;i000000&quot;,&quot;i003691&quot;,&quot;i003700&quot;,&quot;Chart206908_ChartInd_502035&quot;,&quot;Fname03651&quot;);return false;'  onmouseover='window.status=&quot;Baker Hughes Oil and Gas Rig Count - Far East as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font face='Arial, Helvetica'  size='1'>Rig Count - Far East</font></a>";
	sHTML=sHTML+" <img name='Chart206908_ChartInd_502035' border='0' src='http://www.thefinancials.com/images/blank.gif'></td>";
	sHTML=sHTML+"        <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:center; '><img src='http://www.thefinancials.com/images/uparrow.gif' border='0'></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;'><a onmouseover='window.status=&quot;up 7 as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font  size='1' face='Arial, Helvetica' color='#008000'>254</font></a></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;' ><font  size='1' face='Arial, Helvetica' color='#008000'>7</font></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"<tr>   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:left; '><a href='#' onClick='LoadThumbnail(&quot;i000000&quot;,&quot;i000000&quot;,&quot;i003692&quot;,&quot;i003701&quot;,&quot;Chart206908_ChartInd_475319&quot;,&quot;Fname03651&quot;);return false;'  onmouseover='window.status=&quot;Baker Hughes Oil and Gas Rig Count - Total Foreign as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font face='Arial, Helvetica'  size='1'>Rig Count - Foreign</font></a>";
	sHTML=sHTML+" <img name='Chart206908_ChartInd_475319' border='0' src='http://www.thefinancials.com/images/blank.gif'></td>";
	sHTML=sHTML+"        <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:center; '><img src='http://www.thefinancials.com/images/downarrow.gif' border='0'></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;'><a onmouseover='window.status=&quot;down 9 as of 31-Jan-2012 Close&quot;; return true' onmouseout='window.status=&quot;&quot;; return true'><font  size='1' face='Arial, Helvetica' color='#FF0000'>1171</font></a></td>";
	sHTML=sHTML+"   <td nowrap style='padding-top: 1; padding-bottom: 1; text-align:right;' ><font  size='1' face='Arial, Helvetica' color='#FF0000'>-9</font></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"<tr >";
	sHTML=sHTML+"<td colspan='4' align='center' valign='top'>";
	sHTML=sHTML+"<div align='center'>";
	sHTML=sHTML+"<table style='height:1px; margin: -2;' border='0' cellpadding='0' cellspacing='0' width='100%'>";
	sHTML=sHTML+"<tr >";
	sHTML=sHTML+"<td valign='top' colspan='2'> <hr color='#C0C0C0' size='1'></td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"</table>";
	sHTML=sHTML+"</div>";
	sHTML=sHTML+"</td>";
	sHTML=sHTML+"</tr>";
	sHTML=sHTML+"</table>";
	sHTML=sHTML+"<center>";
	sHTML=sHTML+"<table style='margin-top: -2; margin-bottom: 0;' width = '260'><tr><td><div align='center'> <a href='http://www.theFinancials.com' target='_top'><font SIZE='1' FACE='Arial, Helvetica'>&#169; theFinancials.com </a></font></div></td></tr></table></center>";
	sHTML=sHTML+"</center></div>";
	return sHTML;
}

