//***********************************
//*   http://javascripts.vbarsan.com/
//*   This notice may not be removed 
//***********************************/

//Parameters:
//width of the Twinkler in pixels: set to your own;
var dwidth=620; 
//height of the Twinkler in pixels: set to your own; 
var dheight=100; 
//speed: the higher the slower - set your own!
var dspeed=10; 
//1.Background color: could be like: "#ffff00" or "yellow";
//set it "" for no background color;
var dbcolor="#ffffff";
//This is the STYLE for your message;
//modify it to your own or leave STEP I unchanged;
//var twiclass='class=tacj';
var twiclass='class=tajj';

//Message:
//Inside any message you MUST use \' in lieu of ';
mesaj='<span class="advblue"><br />Solutions for living- and work spaces, well-being and  personal growth<span class="advpurple"><br /><br />Effective,  affordable, stylish and elegant</span>';

//Algorithm
//===========
//For the scan to keep going on and on instead of underlining message, REMOVE
//first "//" below and set it in front of each of the next 4 rows from there on:

var kk=0;var kjk=0;var scant='';var wds=0;
function scaneer(){if(kk<=mesaj.length){
if(mesaj.charAt(kk)=="<"){kjk=1;wds=mesaj.length+1;}
if(mesaj.charAt(kk)==">"){wds=0;kjk=0;}
scant='';for(var jk=wds;jk<=mesaj.length;jk++){
if(kjk==0&&mesaj.charAt(jk)=="<"){kjk=1;scant+=mesaj.charAt(jk);}else 
if(kjk==1&&mesaj.charAt(jk)==">"){kjk=0;scant+=mesaj.charAt(jk);}else 
if(kjk==1)scant+=mesaj.charAt(jk);
if(kjk==0&&mesaj.charAt(jk)!=">"){
if(jk==kk)scant+='<b><font color="#84c8eb">'+mesaj.charAt(kk)+'</font></b>';else scant+=mesaj.charAt(jk);}wds=0;}
if(wds==0){if(document.getElementById||document.all)iens6div.innerHTML=scant; else{ns4tw.document.write('<div '+twiclass+'>'+scant+'</div>');ns4tw.document.close();}}
if(kk<mesaj.length)kk++;
//the line below should be commented for underlining and next 4 lines to comment
else {kk=0;kjk=0;wds=0}

//else{if(document.getElementById||document.all){
//iens6div.innerHTML='<u><b>'+scant+'</b></u>';clearInterval(ttimer);}
//else{ns4tw.document.write('<div '+twiclass+'><b><u>'+scant+'</u></b></div>');
//ns4tw.document.close();clearInterval(ttimer);}}

}}
function scanner(){if(document.getElementById)iens6div=document.getElementById('scandiv');else if(document.all)iens6div=scandiv;else if(document.layers)ns4tw=document.twinmoveb0.document.twinmoveb1;ttimer=setInterval("scaneer();",dspeed);}
