var pagetitles=String(document.title);
var pagetitleselectTIMCOHEN = pagetitles.search("TIM COHEN:");
var pagetitleselectEDITORIAL = pagetitles.search("EDITORIAL:");
var pagetitleselectMICHAELBLEBY = pagetitles.search("MICHAEL BLEBY:");
function querySt2(ji) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == ji) {
return ft[1];
}
}
}

var articlecode= querySt2("id");
var runad = querySt2("runad");
var shareonline = "";
if(!articlecode)
{
	shareonline = "<a href=\"http://m.businessday.co.za/\" target=\"_Blank\"><img src=\"http://promo.businessday.co.za/advertising/mobile/bd-mobilesite-645x100.jpg\" border=\"0\"></a>";	
}
else
{
	shareonline = "<table width=\"640\" cellpadding=\"0\" cellspacing=\"0\" border=\"1\" style=\"border-collapse:collapse; border-color:#999\" height=\"125\"><tr><td width=\"240\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"120\"><img src=\"http://chart.apis.google.com/chart?cht=qr&chl=http://www.businessday.co.za/articles/Content.aspx?id="+articlecode+"&chs=120x120\"alt=\"View story on your mobile\" /></td><td width=\"120\" style=\"font-size:14px; color:#900\">Scan this code to view this story on your mobile<br /></td></tr></table></td><td>&nbsp;&nbsp;&nbsp;<a href=\"http://m.businessday.co.za/\" target=\"_blank\"><img src=\"http://promo.businessday.co.za/images/bdmobile.jpg\" border=\"0\" /></a></td></tr></table>";
}
var authocode = "";
if(pagetitleselectTIMCOHEN>=0)
{
authocode = "<br><table><tr><td style=\"font-family:Verdana, Geneva, sans-serif; font-size:15px; color:#333\">&nbsp;MORE FROM TIM COHEN</td></tr></table><iframe src=\"http://promo.businessday.co.za/search/headline/?total=9&term=TIM COHEN:\" width=\"650px\" height=\"310px\" frameborder=\"0\" scrolling=\"no\"></iframe><br><img src=\"http://test.businessday.co.za/images/NewSite/index_69.png\"><br>";
}
if(pagetitleselectEDITORIAL>=0)
{
authocode = "<br><table><tr><td style=\"font-family:Verdana, Geneva, sans-serif; font-size:15px; color:#333\">&nbsp;MORE FROM EDITORIAL</td></tr></table><iframe src=\"http://promo.businessday.co.za/search/headline/?total=9&term=EDITORIAL:\" width=\"650px\" height=\"300px\" frameborder=\"0\" scrolling=\"no\"></iframe><br><img src=\"http://test.businessday.co.za/images/NewSite/index_69.png\"><br>";
}
if(pagetitleselectMICHAELBLEBY>=0)
{
authocode = "<br><table><tr><td style=\"font-family:Verdana, Geneva, sans-serif; font-size:15px; color:#333\">&nbsp;MORE FROM MICHAEL BLEBY</td></tr></table><iframe src=\"http://promo.businessday.co.za/search/headline/?total=9&term=MICHAEL BLEBY:\" width=\"650px\" height=\"310px\" frameborder=\"0\" scrolling=\"no\"></iframe><br><img src=\"http://test.businessday.co.za/images/NewSite/index_69.png\"><br>";
}
if(runad=="show")
		{
			document.getElementById('featured_top_stories').innerHTML = authocode + "<br>"+shareonline+"<br><img src=\"http://www.businessday.co.za/images/NewSite/index_69.png\"><br><br><a href=\"http://www.businessday.co.za/life/motoring_techno.aspx?runad=run\"><img src=\"http://promo.businessday.co.za/images/advertising/bmw/BMW-3series2012-banner.jpg\" target=\"_Blank\" border=0></a><br><br><img src=\"http://www.businessday.co.za/images/NewSite/index_69.png\"><br><br><iframe src=\"http://promo.businessday.co.za/featuredstories/\" width=\"645px\" height=\"640px\" frameborder=\"0\" scrolling=\"no\"></iframe><br><br>"
		}
		else
		{
document.getElementById('featured_top_stories').innerHTML = authocode + "<br>"+shareonline+"<br><img src=\"http://www.businessday.co.za/images/NewSite/index_69.png\"><br><br><iframe src=\"http://promo.businessday.co.za/featuredstories/\" width=\"645px\" height=\"640px\" frameborder=\"0\" scrolling=\"no\"></iframe><br><br>"
		}
