// ******************* Scroll **********************
var max=0;
      function textlist()
      {
      max=textlist.arguments.length;
      for (i=0; i<max; i++)
      this[i]=textlist.arguments[i];
      }
      tl=new textlist
      ( 
" The menu is on the top left of each page ",
" AceJS, newest JS directory on the web    ",
" Master List is all JavaScripts at AceJS  ",
" Games category has really fun scripts    ",
" AceJS, taking JS to the extreme!         ",
" AceJS is updated daily                   ",
" Check out our Ace Links                  ",
" Why not add your website to our Ace Links",
" Add AceJS to your favorites              ",
" If you like AceJS, make it your home page",
" Subscribe to our 'Script Updates' list   ",
" Want to learn JS? check out the JS books ",
" Tell your friends about AceJS            ",
" Chat with us and others about JavaScript ",
" Check out the awards that AceJS has won  ",
" AceJS, the winner of the Golden Web Award",
" Most of our JSs are written by our staff ",
" Need a menu? Goto Menu category          ",
" Have a JS problem? visit the Help section",
" Need a special script? make a request    ",
" Cant find it? search for it              ",
" Feel free to send us your comments       ",
" Feel free to make suggestions for AceJS  ",
" Found a bug? report it so we can fix it  ",
" Need info about AceJS? just email us     ",
" www.AceJS.com                            ",
" AceJS stands for Ace JavaScripts         ",
" To make $$$ from your site goto Ace Links",
" Need traffic? add your site to  Ace Links",
" Email any questions to: js@AceJS.com     ",
" Use AceJS counters, no linking purposes! ",
" AceJS is partner of A1 JavaScripts       ",
" Join the AceJS mailing list              ",
" AceJS has teamed up with NetCreations®   ",
" Enter AceJS Draw & win ad opportunities  ",
" Vote for AceJS in the Diamond Web Award  ",
" Enter in the AceJS poll                  ",
" Join our mailing list for latest news    ",
" Please visit the AceJS Forum             "
 
      );
      var x=0; pos=0;
      var l=tl[0].length;
      function choosenum(){x = Math.floor(Math.random() * 38);}
      function textticker()
      {
        document.tickform.tickfield.value=tl[x].substring(0,pos)+"";
        if(pos++==l) { pos=0; setTimeout("choosenum();textticker();",3000); x++;
        if(x==max) x=1; l=tl[x].length; } else
        setTimeout("textticker()",50);
      }
setTimeout("textticker()",25000);
document.write("<META HTTP-EQUIV='Page-Exit' CONTENT='BlendTrans(Duration=1.2)'>");
// ******************* Date **********************
today=new Date();
day=today.getDate();
year=today.getYear();
month=today.getMonth()+1;
if (day==1) end=("st");
else if (day==2) end=("nd");
else if (day==3) end=("rd");
else if (day==21) end=("st");
else if (day==22) end=("nd");
else if (day==23) end=("rd");
else if (day==31) end=("st");
else end=("th");
if (month==1) name=("January");
else if (month==2) name=("February");
else if (month==3) name=("March");
else if (month==4) name=("April");
else if (month==5) name=("May");
else if (month==6) name=("June");
else if (month==7) name=("July");
else if (month==8) name=("August");
else if (month==9) name=("September");
else if (month==10) name=("October");
else if (month==11) name=("November");
else name=("December");
if (year<100) year="19" + year;

// ******************* Time **********************
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " p.m." : " a.m."
document.clock.datetime.value = day + end + " " + name + " " + year + ", " + timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock() {
stopclock();
showtime();
}
setTimeout("startclock()",25000);
if (document.title == "AceJS.com > Ace Page"){
document.write("<scr" + "ipt type='text/javascript' language='JavaScript1.2' src='ap.js'>" + "</scr" + "ipt>");
}
// *************** Last Updated *******************
app = navigator.appName;
function lastUpdated(){
lastupdate = document.lastModified;
splitUpdateArray = lastupdate.split(" ");
dateArray = splitUpdateArray[0];
lTime = splitUpdateArray[1];
splitDateArray = dateArray.split("/");
lMonth = splitDateArray[0];
lDate = splitDateArray[1];
lYear = splitDateArray[2];
if (lMonth == "01"){lMonth = "January"};
if (lMonth == "02"){lMonth = "February"};
if (lMonth == "03"){lMonth = "March"};
if (lMonth == "04"){lMonth = "April"};
if (lMonth == "05"){lMonth = "May"};
if (lMonth == "06"){lMonth = "June"};
if (lMonth == "07"){lMonth = "July"};
if (lMonth == "08"){lMonth = "August"};
if (lMonth == "09"){lMonth = "September"};
if (lMonth == "10"){lMonth = "October"};
if (lMonth == "11"){lMonth = "November"};
if (lMonth == "12"){lMonth = "December"};
document.updatedform.updatedfield.value =" Site last updated on: " + lDate + " " + lMonth + " " + lYear + " " + lTime + " GMT";}
function getlastsaved(){
if (app == 'Microsoft Internet Explorer'){lastUpdated();}
if (app != 'Microsoft Internet Explorer'){
document.updatedform.updatedfield.value = " Site last updated on: " + document.lastModified;}
}