// Script featured on Able2Know.com
// Find free scripts & get free help: http://search.able2know.com/web_development/scripts/

<!-- Begin
var day="";
var month="";
var myweekday="";
var year="";
newdate = new Date();
mydate = new Date();
dston =  new Date('April 2, 2005 2:59:59');
dstoff = new Date('october 29, 2005 2:59:59');
var myzone = newdate.getTimezoneOffset();
newtime=newdate.getTime();

var zone = 8;  // references your time zone

if (newdate > dston && newdate < dstoff ) {
zonea = zone - 1 ;
dst = "  Pacific Daylight Savings Time";
}
else {
zonea = zone ; dst = "  PST";
}
var newzone = (zonea*60*60*1000);
newtimea = newtime+(myzone*60*1000)-newzone;
mydate.setTime(newtimea);
myday = mydate.getDay();
mymonth = mydate.getMonth();
myweekday= mydate.getDate();
myyear= mydate.getYear();
year = myyear;

if (year < 2000)    // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
myhours = mydate.getHours();
if (myhours >= 12) {
myhours = (myhours == 12) ? 12 : myhours - 12; mm = " PM";
}
else {
myhours = (myhours == 0) ? 12 : myhours; mm = " AM";
}
myminutes = mydate.getMinutes();
if (myminutes < 10){
mytime = ":0" + myminutes;
}
else {
mytime = ":" + myminutes;
};
arday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
armonth = new Array("January","February","March","April","May","June","July","August","September","October","November","December")
ardate = new Array("0th","1<sup>st</sup>","2<sup>nd</sup>","3<sup>rd</sup>","4<sup>th</sup>","5<sup>th</sup>","6<sup>th</sup>","7<sup>th</sup>","8<sup>th</sup>","9<sup>th</sup>","10<sup>th</sup>",
"11<sup>th</sup>","12<sup>th</sup>","13<sup>th</sup>","14<sup>th</sup>","15<sup>th</sup>","16<sup>th</sup>","17<sup>th</sup>","18<sup>th</sup>","19<sup>th</sup>","20<sup>th</sup>","21<sup>st</sup>",
"22<sup>nd</sup>","23<sup>rd</sup>","24<sup>th</sup>","25<sup>th</sup>","26<sup>th</sup>","27<sup>th</sup>","28<sup>th</sup>","29<sup>th</sup>","30<sup>th</sup>","31<sup>st</sup>");
// rename locale as needed.

var time = ("" + arday[myday] +", " + armonth[mymonth] +" "+ardate[myweekday] + ", " + year+"");
document.write(time);
//-->
       
