/*
   Created by Jonathan Beyer/DreamScape
   www.dreamscapetechnologies.com
   Copyright 2004-2008 Jonathan Beyer/DreamScape
   This code may not be redistributed, resold, copied, re-compiled or altered, without express written permission from Jonathan Beyer/DreamScape.
*/


function functionliverate(table_width,color_name) {




		first_title="WTI Crude Oil";
		first_rate="81.80";
		second_title = "Brent Crude Oil";
		second_rate = "80.80";
		third_title = "Ethanol S/gal";
		third_rate = "1.5650";
		fourth_title = "Gas Oil";
		fourth_rate = "6.69";
		color = "#009900";







		
		if(table_width=="" || table_width==0) {
			table_width=271;
		}
		if(color=="") {
			color="#000000";
		}
//		alert(color_name)
	tablecontent="";
	tablecontent=tablecontent+"<table border=0 cellspacing='0' cellpadding='0' width='" + table_width + "'>";
	
	

	tablecontent=tablecontent+"            <tr><td colspan='7'><img src='http://www.permianco.com/img/blank.gif' width='271' height='1' alt='' /></td></tr> ";


	
	tablecontent=tablecontent+"                    <tr bgcolor='#BEBCB8'> ";
	tablecontent=tablecontent+"                      <td height='29' align=left colspan=2 border='0' cellpadding='0' style='padding-left:10px;padding-top:5px;'><font color='#4B4C3C' size='3' face='Arial, Helvetica, sans-serif'><b><font size='2'>March 22, 2010</font></b></font></td><td style='padding-right:10px;padding-top:5px;' height='29' align=right border='0' cellpadding='0'><font color='#4B4C3C' size='3' face='Arial, Helvetica, sans-serif'><b><font size='2'>Last</font></b></font></td>";
	tablecontent=tablecontent+"                    </tr>";
	tablecontent=tablecontent+"                    <tr bgcolor='#EBEBEB'> ";
	tablecontent=tablecontent+"                      <td  style='padding-left:10px;padding-top:5px;' height='10' nowrap > <font face='Arial, Helvetica, sans-serif' size='2'><font color='#4B4C3C'>"+first_title+"</font></font> </td>";
	tablecontent=tablecontent+"                      <td  style='padding-top:5px;' height='10' align='center' ><img src='http://www.permianco.com/img/arrow-up.gif' width='13' height='13'></td>";
	tablecontent=tablecontent+"                      <td style='padding-right:10px;padding-top:5px;' height='10'  align='right'><font size='2'><font face='Arial, Helvetica, sans-serif' color='#2e5b0a'>"+first_rate+"</font></font></td>";
	tablecontent=tablecontent+"                    </tr>";
	tablecontent=tablecontent+"	                    <tr bgcolor='#EBEBEB'> ";
	tablecontent=tablecontent+"                      <td  style='padding-left:10px;padding-top:2px;' height='10' nowrap> <font size='2' color='#4B4C3C' face='Arial, Helvetica, sans-serif'>" +second_title ;
	tablecontent=tablecontent+"	                        </font><font face='Arial, Helvetica' size='1'>&nbsp;";
	tablecontent=tablecontent+"	                        </font> </td>";
	tablecontent=tablecontent+"                       <td  style='padding-top:2px;' height='10' align='center' ><img src='http://www.permianco.com/img/arrow-up.gif' width='13' height='13'></td>";
	tablecontent=tablecontent+"                      <td style='padding-right:10px;padding-top:2px;' height='10'  align='right'><font size='2'><font face='Arial, Helvetica, sans-serif' color='#2e5b0a'>"+second_rate+"</font></font></td>";
	tablecontent=tablecontent+"                    </tr>";
	tablecontent=tablecontent+"	                    <tr bgcolor='#EBEBEB'> ";
	tablecontent=tablecontent+"                      <td  style='padding-left:10px;padding-top:2px;' height='10' nowrap> <font size='2' color='#4B4C3C' face='Arial, Helvetica, sans-serif'>" +third_title ;
	tablecontent=tablecontent+"	                        </font><font face='Arial, Helvetica' size='1'>&nbsp;";
	tablecontent=tablecontent+"	                        </font> </td>";
	tablecontent=tablecontent+"                      <td  style='padding-top:2px;' height='10' align='center' ><img src='http://www.permianco.com/img/arrow-down.gif' width='13' height='13'></td>";
	tablecontent=tablecontent+"                      <td style='padding-right:10px;padding-top:2px;' height='10'  align='right'><font size='2'><font face='Arial, Helvetica, sans-serif' color='#a50102'>"+third_rate+"</font></font></td>";
	tablecontent=tablecontent+"                    </tr>";
	tablecontent=tablecontent+"	                    <tr bgcolor='#EBEBEB'> ";
	tablecontent=tablecontent+"                      <td  style='padding-left:10px;padding-top:2px;' height='10' nowrap> <font size='2' color='#4B4C3C' face='Arial, Helvetica, sans-serif'>" +fourth_title ;
	tablecontent=tablecontent+"	                        </font><font face='Arial, Helvetica' size='1'>&nbsp;";
	tablecontent=tablecontent+"	                        </font> </td>";
	tablecontent=tablecontent+"                      <td  style='padding-top:2px;' height='10' align='center' ><img src='http://www.permianco.com/img/arrow-up.gif' width='13' height='13'></td>";
	tablecontent=tablecontent+"                      <td style='padding-right:10px;padding-top:2px;' height='10'  align='right'><font size='2'><font face='Arial, Helvetica, sans-serif' color='#2e5b0a'>"+fourth_rate+"</font></font></td>";
	tablecontent=tablecontent+"                    </tr>";
	tablecontent=tablecontent+"	                    <tr bgcolor='#EBEBEB'> ";
	tablecontent=tablecontent+"                      <td  height='10' nowrap colspan='3' > ";
	tablecontent=tablecontent+"                        <div align='center'><font size='1' face='Arial, Helvetica, sans-serif' color='#999999'>source: various exchanges";
	tablecontent=tablecontent+"                          </font></div>";
	tablecontent=tablecontent+"                      </td>";
	tablecontent=tablecontent+"                    </tr>";
	tablecontent=tablecontent+"                  </table>";
	return tablecontent;
}