/*********************************************************
 ***             Author: gertsho@yahoo.com             ***
 ***   For more cool scripts visit us at java.dir.bg   ***
 *********************************************************/

DELAY_BEGIN = 30; // 
DELAY_END = DELAY_BEGIN * 200 // 
next_Msg=0;  

arMsgs=new Array('Ten good reasons why you should buy a property in Dubai.', 
                 '1. Demand from ex-patriots will increase as they look to purchase in place of rent.',
                 '2. Capital appreciation and rental yield are much higher than in other developed economies.',
                 '3. Developments at the fringe of today`s Dubai will become the downtown of tomorrow`s Dubai.',
                 '4. As freehold laws are introduced, demand and prices will increase.',
                 '5. Sceptics talk of oversupply but prime locations now being developed are limited.',
                 '6. With an economy growing in excess of 10% P.A. Demand will continue to exceed supply.',
                 '7. Dubai property prices remain cheap when compared to International standards.',
                 '8. The emergence of a strong secondary market will mean higher prices.',
                 '9. Buyers are being given an exceptionally good deal to encourage them to be pioneers.',
                 '10. Dubai has a high proportion of people with tax free salaries to support higher prices.');



function startMove()
{
    moveText(arMsgs[0],0,1);
}

function moveText(text, pos, dir)
{
    out_Msg='<font face="Verdana, Arial, Helvetica" color="#0000ff" size=2><big>'
        +text.substring(0, pos)+'&nbsp;</big></font>';
    if(navigator.appName=="Netscape")
        with(document.scroller)
        {
             open(); write(out_Msg); close();
        }
    else scroller.innerHTML = out_Msg;

    pos+=dir;

    if(pos>text.length) setTimeout('moveText("'+text+'",'+pos+','+(-dir)+')', DELAY_END);
    else
    {
        if(pos<0)
        {
            if(++next_Msg>=arMsgs.length) next_Msg=0;
            text=arMsgs[next_Msg];
            dir=-dir;
        }
        setTimeout('moveText("'+text+'",'+pos+','+dir+')', DELAY_BEGIN);
    }
}
