(function() {

var loginInPlayEqUrl = '/InPlayEq/InPlay/InPlay.htm';
var loginAdvisorUrl = '/Advisor/default.htm';
var securityToken = YAHOO.util.Cookie.get('LiaHua');
if (securityToken) {
    if (securityToken === 'TRADER' || securityToken === 'INST') {
        loginInPlayEqUrl = '/GeneralContent/Active/InPlayEqUpgrade/MigrateTraderInst.aspx';
    }
}

document.write('<div class="parent-container" id="login.overlay" style="position: absolute; top: 0px; left: 0px; visibility:hidden"><div class="bd">');
    document.write('<form name="loginform" onsubmit="return Briefing.Corp.loginSubmit();">');
	document.write('<table border="0" style="width:228px" cellspacing="0" cellpadding="0" align="left">');
		document.write('<tr><td><img alt="" src="/Common/Images/CorporateWebsite/dd_login_top.gif" width="228" height="13" /></td></tr>');
        document.write('<tr style="background:url(\'/Common/Images/CorporateWebsite/dd_login_mid.gif\'); position:relative;">');
			document.write('<td style="height:250px;">');
			    document.write('<table border="0" cellspacing="0" cellpadding="1" style="width:100%">');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><div class="small" style="margin-bottom:5px">Select your service and click GO.</div></td>');
					document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><span class="small"><input type="radio" name="productUrl" value="' + loginInPlayEqUrl + '" id="inplay" />&nbsp;<label for="inplay"><strong>Briefing In Play</strong><sup><strong>&reg;</strong></sup></label></span></td>');
                    document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><span class="small"><input type="radio" name="productUrl" value="' + loginInPlayEqUrl + '" id="inplayplus" />&nbsp;<label for="inplayplus"><strong>Briefing In Play<sup>&reg;</sup> <em>Plus</em></strong></label></span> </td>');
					document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><span class="small"><input type="radio" name="productUrl" value="' + loginInPlayEqUrl + '" id="inplaypro" />&nbsp;<label for="inplaypro"><strong>Briefing Professional<sup>TM</sup></strong></label></span></td>');
					document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><span class="small"><input type="radio" name="productUrl" value="' + loginInPlayEqUrl + '" id="inplaytrader" />&nbsp;<label for="inplaytrader"><strong>Briefing Trader<sup>&reg;</sup></strong></label></span></td>');
                    document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><span class="small"><input type="radio" name="productUrl" value="' + loginInPlayEqUrl + '" id="inplayinst" />&nbsp;<label for="inplayinst"><strong>Briefing Institutional<sup>TM</sup></strong></label></span></td>');
					document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><span class="small"><input type="radio" name="productUrl" value="/GoldIndex.htm" id="gold" />&nbsp;<label for="gold"><strong>Gold</strong></label></span></td>');
					document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><span class="small"><input type="radio" name="productUrl" checked="checked" value="/PlatinumIndex.htm" id="platinum" />&nbsp;<label for="platinum"><strong>Platinum</strong></label></span></td>');
                    document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><span class="small"><input type="radio" name="productUrl" value="/Investor/Index.htm" id="investor" />&nbsp;<label for="investor"><strong>Investor <span style="font-family:Arial Black;color:#AA0000">FREE</span></strong></label></span></td>');
					document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img alt="" src="/Common/Images/CorporateWebsite/spacer.gif" width="10" height="9" /></td>');
						document.write('<td><span class="small"><input type="radio" name="productUrl" value="' + loginAdvisorUrl + '" id="advisor" />&nbsp;<label for="advisor"><strong>Briefing Advisor</strong></label></span></td>');
					document.write('</tr>');
                    document.write('<tr>');
						document.write('<td><img src="/Common/images/CorporateWebsite/spacer.gif" alt="" width="10" height="23"></td>'); 
						document.write('<td><input type="image" alt="GO" src="/Common/Images/CorporateWebsite/dd_login_go.gif" width="45" height="23" style="margin-top:7px" /></td>');
					 
						
					document.write('</tr>');

				document.write('</table>');
		    document.write('</td>');
		document.write('</tr>');
		document.write('<tr><td><img alt="" src="/Common/Images/CorporateWebsite/dd_login_bot.gif" width="228" height="42" /></td></tr>');
	document.write('</table>');
    document.write('</form>');
document.write('</div></div>');

})();