﻿// JScript File
        /***********************************
        *   http://news-ticker.vbarsan.com/
        *   This notice may not be removed 
        ***********************************/

        //Parameters:
        //width of the TICKER in pixels: set to your own;
        var dwidth=680; 
        //height of the TICKER in pixels: set to your own; 
        var dheight=30; 
        //speed: the higher the slower - set your own!
        var dspeed=100; //1s=1000; 
        //1.Background color: could be like: "#ffff00" or "yellow";
        //set it "" for no background color;
        var dbcolor="#ffffff";

        //The STYLE for your message - recommended not to use both!; 
        //when left aligned, ticker goes from left to right;
        //when center aligned, ticker goes from center out;
        var expclass='class=leftaln';

        //Message:
        //Inside any message you MUST use \' in lieu of ';
        var mesaj='<font color="black">The IIB ranked Fortis top of insurance survey    <a href="/policyholders/news/press-releases/Details/?newsID=78" style="font-size:11px;">click here to find out more</a>';
        //Algorithm:
        var jj=-1;var kk=0;var wds=0;
        
        function startAgain()
        {
        jj=-1;
        wds=0;
        kk=0;
        startexp();
        }
        
        function iens6exp()
        {
            jj++;
            if(kk==0&&mesaj.charAt(jj)=="<")
            {
                kk=1;wds=0;
            }
            else if(kk==1&&mesaj.charAt(jj)==">")
            {
                kk=0;wds=0;
            }
            else if(kk==1)
            {
                wds=0;
            }
            
            if(kk==0&&mesaj.charAt(jj)!=">"&&jj<=mesaj.length)
            {
                wds=1;
                iens6div.innerHTML=mesaj.substring(0,jj)+'<font color="black">'+"_"+'</font>';
            }
           
            
            if(wds>0&&jj<=mesaj.length)
            {
                setTimeout("iens6exp()",dspeed);  
            }
            else if(jj<=mesaj.length)
            {
                iens6exp();
            }
            else if(jj>mesaj.length)
            {
                setTimeout("startAgain()",3000);
            }
        }
        
        function ns4exp(){jj++;
        if(kk==0&&mesaj.charAt(jj)=="<"){kk=1;wds=0;}else if(kk==1&&mesaj.charAt(jj)==">"){kk=0;wds=0;}else if(kk==1)wds=0;
        if(kk==0&&mesaj.charAt(jj)!=">"&&jj<=mesaj.length){wds=1;
        ns4div.document.write('<div '+expclass+'>'+mesaj.substring(0,jj)+'<font color="red">'+"_"+'</font></div>');ns4div.document.close();}
        if(wds>0&&jj<=mesaj.length)setTimeout("ns4exp()",dspeed);else if(jj<=mesaj.length)ns4exp();}
        
        function startexp(){    
            if(document.getElementById){
                alch=document.getElementById('chthis');
                iens6div=document.getElementById('expdiv');
                iens6div.innerHTML='';
                iens6exp();
                }else if(document.all){
                    alch=chthis;
                    iens6div=expdiv;
                    iens6div.innerHTML='';
                    iens6exp();
                }else if(document.layers){
                    ns4div=document.ns4expb0.document.ns4expb1;
                    ns4div.document.write('');
                    ns4div.document.close();
                    ns4exp();
                }
            }
