
var Caption = new Array()
var Capstart = new Array()
var Capend = new Array()

Capstart[0] = "<a href=\"w1-contactus.php\" class=\"ticklink\" target=\"_self\">"
Caption[0] = "For the best in deals and service click here to contact us."
Capend[0] = "</a>"
Capstart[1] = "<a href=\"s1-forsale.php\" class=\"ticklink\" target=\"_self\">"
Caption[1] = "For great deals on properties and apartments to buy visit our Property For Sale page."
Capend[1] = "</a>"
Capstart[2] = "<a href=\"h1-holidays.php\" class=\"ticklink\" target=\"_self\">"
Caption[2] = "For the best of holidays in turkey check out our Holiday page."
Capend[2] = "</a>"
Capstart[3] = "<a href=\"h2-flights.php\" class=\"ticklink\" target=\"_self\">"
Caption[3] = "Need a flight? Check our flights page."
Capend[3] = "</a>"

var captot=3
var textspeed=35;
var rotspeed=20000
var texj=0
var ttIme=0
var cur1 = "_"
var cur2 = " "
function tick()
{
	  ix=texj
str = Caption[ix].length
index = 0
sh()
   texj = texj + 1

   if (texj > captot) texj=0
	   
   ttIme = setTimeout('tick()', rotspeed)
}

function sh() 
{
index++;
var curnow;
          
          if((index % 2) == 1)
          {
             curnow = cur1;
          }
          else
          {
             curnow = cur2;
          }
smess = Capstart[ix] + Caption[ix].substr(0,index) + curnow + Capend[ix];
document.getElementById('ticker').innerHTML = smess
if (index < str)
{
setTimeout('sh()', textspeed);
} else {
smess = Capstart[ix] + Caption[ix].substr(0,index) + Capend[ix];
document.getElementById('ticker').innerHTML = smess
}
}

