strLocation = window.location.toString().toLowerCase();

if (strShowSubMenu=="Main") {

	document.writeln('<IFRAME WIDTH=190 HEIGHT=360 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=#000000 SRC="http://adc1.mingpao.com/html.ng/site=mp&mp=finance-frontpage-megarectangle-190x360&adsize=190x360"><SCR' + 'IPT LANGUAGE="JavaScr' + 'ipt1.1" SRC="http://adc1.mingpao.com/js.ng/Params.richmedia=yes&site=mp&mp=finance-frontpage-megarectangle-190x360&adsize=190x360"></SCR' + 'IPT><br></IFRAME>');

} else {

	document.writeln('<a href="http://marketing.mingpao.com/blackberry/" target="_blank"><img src="http://www.mingpaonews.com/image/banner/adc/200811/bb_fin_190x40.gif" border="0" alt="《明報流動網》已經登陸BlackBerry"></a><br><img src="../../image/shim.gif" height="4"><br>');

	document.writeln('<IFRAME WIDTH=190 HEIGHT=360 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=#000000 SRC="http://adc1.mingpao.com/html.ng/site=mp&mp=finance-allchannels-megarectangle-190x360&adsize=190x360"><SCR' + 'IPT LANGUAGE="JavaScr' + 'ipt1.1" SRC="http://adc1.mingpao.com/js.ng/Params.richmedia=yes&site=mp&mp=finance-allchannels-megarectangle-190x360&adsize=190x360"></SCR' + 'IPT><br></IFRAME>');

	//adsDNA - finance-allchannels-vrec
	//document.writeln("<div style='display:none'><iframe id='a2a9c71d' name='a2a9c71d' src='http://203.85.62.249/www/delivery/afr.php?n=a2a9c71d&zoneid=74' framespacing='0' frameborder='no' scrolling='no' width='1' height='1'></iframe></div>");
}
document.writeln('<br><br>');

if (strShowSubMenu=="News" && strLocation.search(/main/) >= 0) {
	document.write ('<table cellpadding="0" cellspacing="0" border="0" width="190">');
	document.write ('<tr height="5"><td> </td></tr>');
	document.write ('<tr><td><IFRAME SRC="http://specials.mingpao.com/cfm/85_Polling1_MPFinance.cfm" HEIGHT=500 WIDTH=190 FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 SCROLLING=no BORDERCOLOR=000000></IFRAME></td></tr>');
	document.write ('</table>');
	document.writeln('<br>');
}

if (strShowSubMenu=="Invest" && strLocation.search(/main/) >= 0) {
	document.writeln('<iframe src="http://specials.mingpao.com/ftp/etf/main/news_box_remote.htm" width=190 height=320 frameborder="0" scrolling="No" marginheight="0" marginwidth="0" hspace="0"></iframe>');
	document.writeln('<br><br>');
}

if (typeof(stockid)!='undefined') {
	if (stockid=='HK002815' || stockid=='HK002809' || stockid=='HK002810' || stockid=='HK002813' || stockid=='HK002826' || stockid=='HK002831' || stockid=='HK002812') {
		document.writeln('<IFRAME WIDTH=190 HEIGHT=200 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=#000000 SRC="http://specials.mingpao.com/dat/etf/htm/main.cfm"><br>');
		document.writeln('</IFRAME>');
	}
}

if (strShowSubMenu=="Invest" && strLocation.search(/main/) >= 0) {
	document.writeln('<iframe src="'+str_BaseHref1+'htm/Finance/Main_blog2.htm" width=190 height=160 frameborder="0" scrolling="No" marginheight="0" marginwidth="0" hspace="0"></iframe>');
	document.writeln('<br><br>');
}

if (strShowSubMenu=="Quote") {
	document.write('<script src="'+str_BaseHref1+'js-css/tabcontent.js"></'+'script>');
	document.write('<script src="'+str_BaseHref1+'js/Common/InvestStockTrend.js"></'+'script>');
}