<!-- Begin
function scrollit_r2l(seed)
{
  var m1  = "Your Official On-line Thomas & Friends Store.";
  var m2  = "... Thank you for Visiting Us! ";
  var m3  = "Join the Magical World of Creativity with train loads";
  var m4  = " of splendid products featuring your Cheeky Number 1 Engine, ";
  var m5  = "Thomas the Tank Engine!!  ";
  var m6  = " Remember when placing orders with us,";
  var m7  = " we ship only to North America, APO, FPO and all US Territories. ";
  var m8  = "  To see items that Sir Topham Hatt has selected to be on ";
  var m9  = " SALE, just click on the SPECIALS Link above. ";
  var m10  = "  Have a Peep Peep Day!  ";
  var m11  = "  Have a Peep Peep Day!  ";
  var m12  = "  Have a Peep Peep Day!  ";
  var m13  = "  FREE SHIPPING!  ";
  var m14  = "  Shipments of $85 or more to Continental US.  ";
  var m15  = "  May your holidays be filled with joy and the coming year be ";
  var m16  = "overflowing with all the good things in life. ";
  var m17  = "Happy Holiday for all of the staff ";
  var m18  = "at Thomas Station! ";

//  Normal message
  var msg=m1+m2+m3+m4+m5+m1+m2+m8+m9+m2+m10;
//  Happy Holiday Message below
//  var msg=m1+m2+m3+m4+m5+m15+m16+m17+m18+m10;
  var out = "THOMAS STATION:      ";
  var c   = 1;
  if (seed > 100) {
    seed--;
    var cmd="scrollit_r2l(" + seed + ")";
    timerTwo=window.setTimeout(cmd,100);
  }
  else if (seed <= 100 && seed > 0) {
    for (c=0 ; c < seed ; c++) {
      out+=" ";
    }
    out+=msg;
    seed--;
    var cmd="scrollit_r2l(" + seed + ")";
    window.status=out;
    timerTwo=window.setTimeout(cmd,100);
  }
  else if (seed <= 0) {
    if (-seed < msg.length) {
      out+=msg.substring(-seed,msg.length);
      seed--;
      var cmd="scrollit_r2l(" + seed + ")";
      window.status=out;
      timerTwo=window.setTimeout(cmd,100);
    }
    else {
      window.status=" ";
      timerTwo=window.setTimeout("scrollit_r2l(100)",75);
    }
  }
}


closetime = 0; // Close window after __ number of seconds?
               // 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function doPopup()
{
 url = "http://www.thomasstation.com/spl_message.htm";
 width = 490;  // width of window in pixels
 height = 600; // height of window in pixels
 delay = 1;    // time in seconds before popup opens
 timer = setTimeout("Start(url, width, height)", delay*1000);
}

function nydoPopup()
{
 url = "http://www.thomasstation.com/spl-pop/ny_message.htm";
 width = 480;  // width of window in pixels
 height = 340; // height of window in pixels
 delay = 1;    // time in seconds before popup opens
 timer = setTimeout("Start(url, width, height)", delay*1000);
}

function openpopup()
{
var popurl="http://www.hitentertainment.com/thomasthetankengine/us/events/dayout_usa.html";
winpops=window.open(popurl,"","width=600,height=500,scrollbars,")
}

function tvpopup()
{
var popurl="http://www.hitentertainment.com/thomasthetankengine/us/around_the_world/tvtimes.html#usa";
winpops=window.open(popurl,"","width=600,height=500,scrollbars,")
}

function freeshippopup()
{
var popurl="http://www.thomasstation.com/misc/free-shipping.htm";
winpops=window.open(popurl,"","width=500,height=460,scrollbars,")
}

function freepopup()
{
var popurl="http://www.thomasstation.com/misc/free-ship.htm";
winpops=window.open(popurl,"","width=310,height=320,scrollbars,")
}

function mdpopup()
{
var popurl="http://www.thomasstation.com/spl-pop/md.htm";
winpops=window.open(popurl,"","width=425,height=420,scrollbars,")
}

function memdaypopup()
{
var popurl="http://www.thomasstation.com/spl-pop/mem_day.htm";
winpops=window.open(popurl,"","width=460,height=420,scrollbars,")
}

function labdaypopup()
{
var popurl="http://www.thomasstation.com/spl-pop/ld.htm";
winpops=window.open(popurl,"","width=390,height=480,scrollbars,")
}

function julyspecpopup()
{
var popurl="http://www.thomasstation.com/spl-pop/july-pop.htm";
winpops=window.open(popurl,"","width=410,height=420,scrollbars,")
}

function julypopup()
{
var popurl="http://www.thomasstation.com/spl/july_spec.htm";
winpops=window.open(popurl,"","width=710,height=620,scrollbars,")
}

function thanksdaypopup()
{
var popurl="http://www.thomasstation.com/spl-pop/tg_spl.htm";
winpops=window.open(popurl,"","width=575,height=490,scrollbars,")
}

function happy_holidays_popup()
{
var popurl="http://www.thomasstation.com/spl-pop/spl_message.htm";
winpops=window.open(popurl,"","width=500,height=600,scrollbars,")
}

function mlk_popup()
{
var popurl="http://www.thomasstation.com/spl-pop/mlk.htm";
winpops=window.open(popurl,"","width=425,height=300,scrollbars,")
}

function Rcertify()
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=102101111354426854', 'Participant','location=yes,scrollbars=yes,width=450,height=300');
window.name = 'opener';
}
function open_popupdraw(url) {mywin = window.open(url,"pdf",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=325,top=210,left=135');}

function open_pdfpopup(url) {mywin = window.open(url,"pdf",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=570,height=280,top=210,left=135');}

function open_pdfwin(url) {mypdfwin = window.open(url,"pdf",'toolbar=0,location=0,directories=0,resizable=1,status=0,menubar=1');}

function openpopsth()
{
 var sth_page="http://www.thomasstation.com/misc/sth-visit.htm";
 sthpops=window.open(sth_page,"","width=780,height=700,directories=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes");
}

window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var IE4 = (bName == "Microsoft Internet Explorer"
 && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer"
 && bVer < 4);
 var blink_speed=1000;
 var i=0;

if (NS4 || IE4) {
 if (navigator.appName == "Netscape") {
 layerStyleRef="layer.";
 layerRef="document.layers";
 styleSwitch="";
 }else{
 layerStyleRef="layer.style.";
 layerRef="document.all";
 styleSwitch=".style";
 }
}

//BLINKING
function Blink(layerName){
 if (NS4 || IE4) {
 if(i%2==0)
 {
 eval(layerRef+'["'+layerName+'"]'+
 styleSwitch+'.visibility="visible"');
 }
 else
 {
 eval(layerRef+'["'+layerName+'"]'+
 styleSwitch+'.visibility="hidden"');
 }
 }
 if(i<1)
 {
 i++;
 }
 else
 {
 i--
 }
 setTimeout("Blink('"+layerName+"')",blink_speed);
}


//  End -->
