//added by mike 4/7/06- 
	jstag = document.getElementById("javascriptcode");
	var filename = jstag.getAttribute("src");
	var thestuff = filename.split("?");
if (thestuff[1] != null ) {
	var qs = thestuff[1].split("&");
	var subdata = '';
	for(var i = 0; i < qs.length; i++)	{
		var qs2 = qs[i].split('=');
		switch(qs2[0].toLowerCase())	{
			case 'kbid':
				kbId = qs2[1];
				break;
			case 'img':
				imgdata = qs2[1];
				break;
			case 'sub':
				subdata = qs2[1];
				break;
		}
	} //end for
	if (kbId != 0)	{
		var trackcode = 'kbid=' + kbId;
		if (imgdata != '')	{
			trackcode += '&img=' + imgdata;
		}
		if (subdata != '')	{
			trackcode += '&sub=' + subdata;
		}
	}
} else {
	trackcode = '';
}
//at the end of a link syntax: &"+trackcode+"
//if link does not have a ? already use: ?"+trackcode+"
//must use on all links that will be tracked.
document.write("<LINK REL='stylesheet' HREF='http://www.gannglobal.com/sharedcontent/article/affiliatestyles.css' TYPE='text/css'><table class='table-gray-border' width=160px><tr><td class= header-bkg><a href='http://www.gannglobal.com/gateway.php?"+trackcode+"' target='_blank'><img src='http://www.gannglobal.com/sharedcontent/article/banner-header160.jpg' border='0'></a></td></tr>");
document.write("<tr class= table-gray-border><td class= banner_pad><span class= program>Financial Outlook</span><p><img src='http://www.gannglobal.com/sharedcontent/article/linkimg.gif' border='0'> <a href='http://www.gannglobal.com/gateway.php?p=freeupdate&contentId=885"+trackcode+"' target='_blank'>Can Divergences Tell You When to Stick a Fork in the Stock Market?</a></br><span class= free-update> last updated: July 12, 2006</span> <p><span class= program>Commodity Forecast</span><p><img src='http://www.gannglobal.com/sharedcontent/article/linkimg.gif' border='0'> <a href='http://www.gannglobal.com/gateway.php?p=freeupdate&contentId=778&"+trackcode+"' target='_blank'>If You’re Merely Worth Your Weight in Gold, You Could’ve Bought Platinum Instead and Gone on a Diet</a></br><span class= free-update> last updated: Feb 28 2006</span><p><span class= program>W.D. Gann Articles</span><p><img src='http://www.gannglobal.com/sharedcontent/article/linkimg.gif' border='0'> <a href='http://www.gannglobal.com/gateway.php?p=freeupdate&contentId=670&"+trackcode+"' target='_blank'>Master this Simple Yet Powerful Tool, Then Apply it for Big Profits Across a Wide Range of Markets</a><p></td></tr>");				
document.write("<tr><td class= table-gray-border><p class= comment><b>Protect your assets while growing your profits with this Complete Forecasting Service package...<a href='http://www.gannglobal.com/research?"+trackcode+"'>click here for more info</a></b><br></br></p></td></tr>");
document.write("</table>");