// JavaScript Document

<!--
var line=new Array()
line[1]="FREE Standard delivery on all orders! (UK Only)"
line[2]="3 working day Delivery Available (UK Special Delivery Only)"
line[3]="Full 14 day Refund or Exchange Policy"
line[4]="Why not visit our wedding forum ?"
line[5]="Call us weekdays from 10am - 6pm"
line[6]="NEW Paradox 2011 styles pre-order Available!"

var longestmessage=1
for (i=1;i<line.length;i++){
if (line[i].length>line[longestmessage].length)
longestmessage=i
}

var tscroller_width=70

lines=line.length-1

//if IE 4+ or NS6
if (document.all||document.getElementById){
document.write('<form name="news">')
document.write('<input type="text" name="newsinput" size="'+tscroller_width+'"')
document.write('  style="text-transform: uppercase; background-color:#993399; color: #ffffff; font-family: Arial; font-size:11px; font-weight:800; border: medium none" onfocus="blur()">')
document.write('</form>')
}

temp=""
nextchar=-1;
nextline=1;
cursor="\\"
function animate(){
if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){
nextline++;
nextchar=-1;
document.news.newsinput.value=temp;
temp="";
setTimeout("nextstep()",5000)}
else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
nextline=1;
nextchar=-1;
document.news.newsinput.value=temp;
temp="";
setTimeout("nextstep()",5000)}
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.news.newsinput.value=temp+cursor
setTimeout("animate()",25)}

//if IE 4+ or NS6
if (document.all||document.getElementById)
window.onload=animate
// -->