// JavaScript Document


//Specify scroller contents
  var line=new Array()
      line[1]='<a style=\'color:#ffffff; font-size:1.1em; padding:2px 0 0 10px;\' href=\'casa-opens-its-doors-for-a-sneak-preview.shtml\'>Casa opens its doors for a sneak preview<\/a>';
	  line[2]='<a style=\'color:#ffffff; font-size:1.1em; padding:2px 0 0 10px;\' href=\'introducing-the-people-behind-casa.shtml\'>Introducing the people behind Casa<\/a>';
	  line[3]='<a style=\'color:#ffffff; font-size:1.1em; padding:2px 0 0 10px;\' href=\'casa-offers-college-art-students-chance-to-inspire-guests.shtml\'>Casa offers College art students chance to inspire guests<\/a>';

//Specify the number of seconds that the link is displayed
  var delay=2*1000; 
//Specify the ticker speed
  var speed=20; 

//--Don't edit below this line

var longestmessage=1;
for(i=2;i<line.length;i++){
if(line[i].length>line[longestmessage].length) {
   longestmessage=i
  }
 }

//Auto set scroller width
var tscroller_width=line[longestmessage].length;

   lines=line.length-1 //--Number of lines
   temp=""
   nextchar=-1;
   nextline=1;
   cursor='';
function animate(){
if((temp==line[nextline])&&(temp.length==line[nextline].length)&&(nextline!=lines)){
   nextline++;
   nextchar=-1;
   document.getElementById('marquee').innerHTML=temp;
   temp="";
setTimeout('nextstep()',delay);
 }
else {
if((nextline==lines)&&(temp==line[nextline])&&(temp.length==line[nextline].length)){
   nextline=1;
   nextchar=-1;
   document.getElementById('marquee').innerHTML=temp;
   temp='';
setTimeout("nextstep()",delay);
 }
else{
   nextstep();
   }
  }
 }

function nextstep(){
if(cursor==''){
   cursor='';
 }
else {
if(cursor==''){
   cursor='';
 }
else {
if(cursor==''){
   cursor='';
 }
else {
if(cursor==''){
   cursor='';
    }
   }
  }
 }
   nextchar++;
   temp+=line[nextline].charAt(nextchar);
   document.getElementById('marquee').innerHTML=temp+cursor;
setTimeout("animate()",speed);
 }
window.onload=animate
//-->
