var msgArray = new Array(
"<a href='newuser.aspx' style='text-decoration: none; font-weight:bold; color:Yellow;'>MCX Commodities</a>",
"<a href='newuser.aspx' style='text-decoration: none; font-weight:bold; color:Yellow;'>Spot Bullion</a>",
"<a href='newuser.aspx' style='text-decoration: none; font-weight:bold; color:Yellow;'>INR Futures</a>",
"<a href='newuser.aspx' style='text-decoration: none; font-weight:bold; color:Yellow;'>FX Majors</a>",
"<a href='newuser.aspx' style='text-decoration: none; font-weight:bold; color:Yellow;'>Click here for free trial!!</a>"
);
var speed = 50;
var cdel = 1000;
var maxfont = 20;

// Expanding and shrinking text banner Javascript
// copyright 24th July 2005, by Stephen Chapman http://javascript.about.com
// permission to use this Javascript on your web page is granted
// provided that this copyright notice is included
var x = y = 0;
var msg;
function start() {
    bnr('1');
}
function bnr(dir) {
    if (dir) {
        msg = msgArray[y];
        if (x < maxfont) {
            x++;
            setTimeout("bnr(1)",speed);
        }else 
            setTimeout("bnr(0)",cdel);
    } else {
        if (x > 1) {
            x--;
            setTimeout("bnr(0)",speed);
        } else {
            setTimeout("bnr(1)",10);
            y++;
            if (y>=msgArray.length) 
                y=0;
        }
    }
    document.getElementById('btx').innerHTML = msg;
    btx.style.fontSize=x+'px';
}
window.onload = start;
