function longMonthArray() {
	this[0] = "January";	this[1] = "February";	this[2] = "March";
	this[3] = "April";	this[4] = "May";	this[5] = "June";
	this[6] = "July";	this[7] = "August";	this[8] = "September";
	this[9] = "October";	this[10] = "November";	this[11] = "December";
        return (this);
}

function shortMonthArray() {
	this[0] = "Jan";	this[1] = "Feb";	this[2] = "Mar";
	this[3] = "Apr";	this[4] = "May";	this[5] = "Jun";
	this[6] = "Jul";	this[7] = "Aug";	this[8] = "Sep";
	this[9] = "Oct";	this[10] = "Nov";	this[11] = "Dec";
        return (this);
}

function longDayArray() {
	this[0] = "Sunday";	this[1] = "Monday";	this[2] = "Tuesday";
	this[3] = "Wednesday";	this[4] = "Thursday";	this[5] = "Friday";
	this[6] = "Saturday";
        return (this);
}

function shortDayArray() {
	this[0] = "Sun"; this[1] = "Mon"; this[2] = "Tue"; this[3] = "Wed";
	this[4] = "Thu"; this[5] = "Fri"; this[6] = "Sat";
        return (this);
}

function getShortYear(year)
{
shortyear =  year%100;
     if (shortyear < 10) shortyear = "0"+shortyear;
	return shortyear
}

function getLongYear(year)
{
  if (year > 1900) return year
  return year+1900;
}

function writeDateLong(format) {
  shortDays = new shortDayArray();
   longDays = new longDayArray();
   shortMonths = new shortMonthArray();
   longMonths = new longMonthArray();
   d = new Date();
   day = d.getDate();
   month = d.getMonth();
   year = d.getYear();
   if (format == 0)
     str = shortDays[d.getDay()] + " " + shortMonths[month] +". " + day + ", "+getLongYear(year);
  else if (format == 1)
     str = shortDays[d.getDay()] + " " + longMonths[month] + " " + day + ", "+getLongYear(year);
  else if (format == 2)
   str = longDays[d.getDay()] + " " + longMonths[month] + " " + day + ", "+getLongYear(year);
 else if (format == 3)
  str = longMonths[month] + " " + day + ", "+getLongYear(year);
  else if (format == 4)
   str = shortDays[d.getDay()] + " " + day + " " + shortMonths[month] +". " +getLongYear(year);
  else if (format == 5)
   str = shortDays[d.getDay()] + " " + day + " " + longMonths[month] + " " +getLongYear(year);
  else if (format == 6)
  str = longDays[d.getDay()] + " " + day + " " + longMonths[month] + " " + getLongYear(year);
 else if (format == 7)
str = day + " " + longMonths[month] + ", "+getLongYear(year);
else {
month++;
shortyear = getShortYear(year);
     if (format == 8)
       str = month + "/" + day + "/" + shortyear;
     else if (format == 9)
       str = month + "/" + day + "/" + getLongYear(year);
     else if (format == 10)
       str = day + "/" + month + "/" + shortyear;
     else if (format == 11)
       str = day + "/" + month + "/" + getLongYear(year);
     else if (format == 12)
       str = shortyear + "/" + month + "/" + day;
     else if (format == 13)
       str = shortyear + "/" + month + "/" + day;
     else {
        if (day < 10) day = "0"+day
        if (month < 10) month = "0"+month
        if (format == 14)
          str = month + "/" + day + "/" + shortyear;
        else if (format == 15)
          str = month + "/" + day + "/" + getLongYear(year);
        else if (format == 16)
          str = day + "/" + month + "/" + shortyear;
        else if (format == 17)
          str = day + "/" + month + "/" + getLongYear(year);
        else if (format == 18)
          str = shortyear + "/" + month + "/" + day;
        else if (format == 19)
         str = shortyear + "/" + month + "/" + day;
        }
     }
 document.writeln(str.bold().fontsize(4).fontcolor('#330099'));
}

function writeDate()
{
   writeDateLong(0);
}

function writeTimeLong(format)
{
   d = new Date();
   hour=d.getHours();
   min=d.getMinutes();
   sec=d.getSeconds();
   if (hour < 10) hour = "0"+hour;
   if (min < 10) min = "0"+min;
   if (sec < 10) sec = "0"+sec;
   
   if (format == 0)
  str = hour+":"+min+":"+sec;
  else if (format == 1)
  str = hour+":"+min;
   
 document.writeln(str);
}

function writeTime()
{
   writeTimeLong(0);
}

  


function message (ricky){
window.self.status=ricky;
return true;
}
var disclose="Official P.S. Flyers Track Club"
var call=message(disclose);
var elas="eLasVegasVideo Services"
var blogg="P.S. Vegas Flyers Blog" 
var webmail="P.S. Flyers Webmail for Staff"


function elas_() {
gec_xx =":::eLasVegas Video Services:::\>\n"
gec_xx+="*Sports Promotion Packages*\n"
gec_xx+="*******************************\n"
gec_xx+="*Platinum*Gold*Silver*Bronze\n"
gec_xx+="*******************************\n"
gec_xx+="Custom website. Free hosting\n"
alert (gec_xx);
return true;
}

function no_print_() {
gec_xx =":::eLasVegas Video Services:::\>\n"
gec_xx+="*Sports Promotion Packages*\n"
gec_xx+="*******************************\n"
gec_xx+="*Platinum*Gold*Silver*Bronze\n"
gec_xx+="*******************************\n"
gec_xx+="Custom website. Free hosting\n"
gec_xx+="*******************************\n"
gec_xx+="This image may not be copied.\n"
alert (gec_xx);
return false;
}
 

function roll_me(naas) {
 var rcefund = 100
 var reel_prt = " ";
 var mouth=reel_prt
 var reel_bits = 1;
var reel="This website was designed by eLasVegasVideo Services."
+" P.S. Vegas Flyers Track club is headquartered in Las Vegas, Nevada. The Head coach is J.R. Brass. "
+" For information about registration and joining the team, please complete our Registration form."
+" Thank you. Web page designed by eLasVegasVideo Services.";
 if (naas>rcefund) {
  naas--;
  var prince="roll_me(" + naas + ")";
  tag=window.setTimeout(prince,rcefund);
 }
 else if (naas<=rcefund && naas>0) {
  for (reel_bits=0;reel_bits<naas;reel_bits++) {
   reel_prt+=" ";
   if (reel_bits<naas*.5){
   mouth+=" ";
   }
   
  }
  reel_prt+=reel;
  mouth+=reel
  naas--;
  var prince="roll_me("+naas+")";
  //witness this:  self.status="var:("+naas+")"+string;
  //window.status="Test1:("+naas+")"+reel_prt;
  document.table.header.value=mouth
  tag=window.setTimeout(prince,100);
 }
 else if (naas<=0) {
  if (-naas<reel.length) {
   reel_prt+=reel.substring(-naas,reel.length);
   mouth+=reel.substring(-naas,reel.length);
   naas--;
   var prince="roll_me(" + naas + ")";
   //window.status="Test2:("+naas+")"+reel_prt;  
    document.table.header.value=mouth
     tag=window.setTimeout(prince,rcefund+50);

  }
  else {
   window.status=" ";
   tag=window.setTimeout("roll_me(100)",50);
  }
 }
}
function play_it() {
 tag=window.setTimeout("roll_me(100)",500);
}
//runs with index.php, main and members
//new code
//Contents for menu 1

		
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu