var pageurlpath=String(document.location);
var istestwebsite = pageurlpath.search("test.businessday.co.za");

function querySt(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];
}
}
}
if(istestwebsite>0)
{
document.getElementById('toppromo_masterheadlines').innerHTML = "<table width=\"870\" align=\"left\" cellpadding='0' cellspacing='0'><tr><td align=\"left\"><table border='0' cellpadding='0' cellspacing='0' bordercolor='#999999' style='border-collapse:collapse;font-family:Verdana, Geneva, sans-serif;font-size:14px;color:#666;'>	<tr>    	<td width='85' align='left' style='font-weight:bold;color:#C00;font-size:14px'>In Depth:</td> <td>        	<a href=\"http://www.businessday.co.za/Home/InDepth.aspx?rid=14\" style='text-decoration:none; cursor:pointer;color:#060;'>Climate Change (COP-17)</a>&nbsp;|&nbsp;<a href=\"http://www.businessday.co.za/Home/InDepth.aspx?rid=12\" style='text-decoration:none; cursor:pointer;'>Nationalisation</a>&nbsp;|&nbsp;<a href=\"http://www.businessday.co.za/Home/InDepth.aspx\" style='text-decoration:none; cursor:pointer;color:#C00;'>&nbsp;&nbsp;View all</a>&nbsp;&nbsp;</td><td>&nbsp;&nbsp;<img src=\"http://promo.businessday.co.za/images/divide.gif\" height=\"28px\"></td><td align='left' style='font-weight:bold;font-size:14px'>&nbsp;&nbsp;&nbsp;&nbsp;INSIGHTS:</td><td><a href=\"http://www.businessday.co.za/Home/insights.aspx?rid=1\">&nbsp;&nbsp;<img src=\"http://promo.businessday.co.za/images/insights/india/india-icon.jpg\" height=\"28px\" border=\"0\"></a>&nbsp;</td><td align=\"left\" valign=\"top\"><span style='font-size:11px;color:#999'>Country Report</span><br><a href=\"http://www.businessday.co.za/Home/insights.aspx?rid=1\" style='text-decoration:none; cursor:pointer;color:#FF3300;font-size:11px'>ENGAGING INDIA</a></td><td>&nbsp;&nbsp;|&nbsp;<a href=\"http://www.businessday.co.za/Home/insights.aspx\" style='text-decoration:none; cursor:pointer;color:#666;'>&nbsp;&nbsp;View all</a></td></tr></table></td></tr></table>";
}
else
{
document.getElementById('toppromo_masterheadlines').innerHTML = "<table width=\"870\" align=\"left\" cellpadding='0' cellspacing='0'><tr><td width=\"870\" align=\"left\"><table width='870' border='0' cellpadding='0' cellspacing='0' bordercolor='#999999' style='border-collapse:collapse;font-family:Verdana, Geneva, sans-serif;font-size:14px;color:#666;'>	<tr>    	<td width='85' align='left' style='font-weight:bold;color:#C00;font-size:14px'>In Depth:</td> <td><a href=\"http://www.businessday.co.za/Home/InDepth.aspx?rid=16\" style='text-decoration:none; cursor:pointer;color:#060;'>&nbsp;&nbsp;State of the Nation&nbsp;&nbsp;</a>&nbsp;|&nbsp;<a href=\"http://www.businessday.co.za/opinionanalysis/dialogues.aspx?did=7\" style='text-decoration:none; cursor:pointer;'>&nbsp;&nbsp;BD Dialogues - Current affairs&nbsp;&nbsp;</a>&nbsp;|&nbsp;<a href=\"http://www.businessday.co.za/opinionanalysis/dialogues.aspx?did=6\" style='text-decoration:none; cursor:pointer;'>&nbsp;&nbsp;BD Dialogues - Lower-carbon economy&nbsp;&nbsp;</a>&nbsp;|&nbsp;<a href=\"http://www.businessday.co.za/Home/InDepth.aspx\" style='text-decoration:none; cursor:pointer;color:#C00;'>&nbsp;&nbsp;View All</a>       </td></tr></table></td></tr></table>";
}
