<!----------------------print banner------------------>

showBanner=new Array("flyerflag.jpg border='0' width='298' height='105'")

function printBanner(){
document.bannerPic.src=showBanner[0]
}

<!----------------------end print banner------------------>

<!----------------------validate Race Results------------------>
function validateRaceResultsSubmit(){
	var msg = ""
if(document.raceResultSubmit.submitname.value=="") {
	msg = msg + "--Your Name\n"
}

if(document.raceResultSubmit.submitemail.value=="") {
	msg = msg + "--Your Email Address\n"
}

if(document.raceResultSubmit.daynum.value=="" || document.raceResultSubmit.yearnum.value=="" ) {
	msg = msg + "--Date of Race\n"
}

if(document.raceResultSubmit.racename.value=="") {
	msg = msg + "--Race Name\n"
}

if(document.raceResultSubmit.racelocation.value=="") {
	msg = msg + "--Race Location\n"
}

if(document.raceResultSubmit.racedistance.selectedIndex==0 && document.raceResultSubmit.otherdistance.value=="" ) {
	msg = msg + "--Race Distance\n"
}

if(msg != ""){
	alert("The following required fields must be filled in:\n" + msg)
	return false
}
else{
	document.raceResultSubmit.submit()
}
}
<!----------------------end validate Race Results------------------>

<!----------------------set Tshirt Type on Membership Application------------------>
function setTshirtType(choice){
	
if (choice=="0" || choice=="1") {
document.onlineApplication.TSHIRT_TYPE.selectedIndex="0"	
}

if (choice=="2") {
document.onlineApplication.TSHIRT_TYPE.selectedIndex="1"	
}

if (choice=="3") {
document.onlineApplication.TSHIRT_TYPE.selectedIndex="2"	
}

if (choice=="4") {
document.onlineApplication.TSHIRT_TYPE.selectedIndex="3"	
}

if (choice=="5") {
document.onlineApplication.TSHIRT_TYPE.selectedIndex="4"	
}
}

function setTshirtTypePreview(choice){
	
if (choice=="0" || choice=="1") {
document.onlineAppPreview.TSHIRT_TYPE.selectedIndex="0"	
}

if (choice=="2") {
document.onlineAppPreview.TSHIRT_TYPE.selectedIndex="1"	
}

if (choice=="3") {
document.onlineAppPreview.TSHIRT_TYPE.selectedIndex="2"	
}

if (choice=="4") {
document.onlineAppPreview.TSHIRT_TYPE.selectedIndex="3"	
}

if (choice=="5") {
document.onlineAppPreview.TSHIRT_TYPE.selectedIndex="3"	
}
}
<!----------------------End set Tshirt Type------------------>

<!----------------------Start set PayPal Fields------------------>
function setPayPalFields(){

  var singSize = new Array("","S", "M", "L", "XL", "XXL");
  var getSize="";

  if(document.forms[1].MEMTYPE.selectedIndex=="2"){
    getSize=document.forms[1].TSHIRTSIZE.selectedIndex;
     document.forms[0].item_name.value="New York Flyers Membership and Men's Singlet (" + singSize[getSize] + ")";
   }

  if(document.forms[1].MEMTYPE.selectedIndex=="3"){
    getSize=document.forms[1].TSHIRTSIZE.selectedIndex;
     document.forms[0].item_name.value="New York Flyers Membership and Women's Singlet (" + singSize[getSize] + ")";
   }

  if(document.forms[1].MEMTYPE.selectedIndex=="4"){
    getSize=document.forms[1].TSHIRTSIZE.selectedIndex;
     document.forms[0].item_name.value="New York Flyers Membership and SS Coolmax (" + singSize[getSize] + ")";
   }

  if(document.forms[1].MEMTYPE.selectedIndex=="5"){
    getSize=document.forms[1].TSHIRTSIZE.selectedIndex;
     document.forms[0].item_name.value="New York Flyers Membership and LS Coolmax (" + singSize[getSize] + ")";
   }
}
<!----------------------End set PayPal Fields------------------>

<!----------------------submit form------------------>

function submitForm(formName){

if(formName=="onlineAppPreview"){

if (document.onlineAppPreview.tbl_taxpayer_signature_0.selectedIndex =="1"){
alert("This application cannot be submitted if you do not agree to the terms of the waiver.")
return false
}

var errorCheck=""

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="0"){
errorCheck="Please indicate your Membership Type."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex!="0" && document.onlineAppPreview.MEMTYPE.selectedIndex!="1" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex=="0" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="Please indicate your T-shirt type and size before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="2" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex!="1" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="You have selected a membership with Men's Singlet.  Please select Men's Singlet under T-Shirt Type.  You must also indicate your T-Shirt Size before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="3" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex!="1" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="You have selected a membership with Women's Singlet.  Please select Women's Singlet under T-Shirt Type.  You must also indicate your T-Shirt Size before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="2" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex!="1" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex!="0"){
errorCheck="You have selected a membership with Men's Singlet.  Please select Men's Singlet under T-Shirt Type before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="3" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex!="2" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex!="0"){
errorCheck="You have selected a membership with Women's Singlet.  Please select Women's Singlet under T-Shirt Type before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="2" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex=="1" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="Please identify your T-Shirt Size before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="3" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex=="2" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="Please identify your T-Shirt Size before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="4" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex!="3" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="You have selected a membership with Short Sleeve Coolmax T-Shirt.  Please select SS Coolmax under T-Shirt Type.  You must also indicate your T-Shirt Size before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="4" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex!="3" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex!="0"){
errorCheck="You have selected a membership with Short Sleeve Coolmax.  Please select SS Coolmax under T-Shirt Type before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="4" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex=="3" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="Please identify your T-Shirt Size before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="5" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex!="4" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="You have selected a membership with Long Sleeve Coolmax T-Shirt.  Please select LS Coolmax under T-Shirt Type.  You must also indicate your T-Shirt Size before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="5" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex!="4" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex!="0"){
errorCheck="You have selected a membership with Long Sleeve Coolmax.  Please select LS Coolmax under T-Shirt Type before submitting this form."
}

if (document.onlineAppPreview.MEMTYPE.selectedIndex=="5" && document.onlineAppPreview.TSHIRT_TYPE.selectedIndex=="4" && document.onlineAppPreview.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="Please identify your T-Shirt Size before submitting this form."
}

if (errorCheck !=""){
alert(errorCheck)
return false
}

if(document.onlineAppPreview.Name.value=="" || document.onlineAppPreview.Address.value=="" || document.onlineAppPreview.State.value=="" || document.onlineAppPreview.Zip_Code.value=="") {
alert('Name, address, state, and postal code are required fields.  Please ensure that at least these four fields are filled out before proceeding.')
return false
}

setPayPalFields();
document.forms[0].submit()
return true

}


if(formName=="onlineApplication"){

if (document.onlineApplication.tbl_taxpayer_signature_0.selectedIndex =="1"){
alert("This application cannot be submitted if you do not agree to the terms of the waiver.")
return false
}

var errorCheck=""

if (document.onlineApplication.MEMTYPE.selectedIndex=="0"){
errorCheck="Please indicate your Membership Type."
}

if (document.onlineApplication.MEMTYPE.selectedIndex!="0" && document.onlineApplication.MEMTYPE.selectedIndex!="1" && document.onlineApplication.TSHIRT_TYPE.selectedIndex=="0" && document.onlineApplication.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="Please indicate your T-shirt type and size before submitting this form."
}

if (document.onlineApplication.MEMTYPE.selectedIndex=="2" && document.onlineApplication.TSHIRT_TYPE.selectedIndex!="1" && document.onlineApplication.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="You have selected a membership with Singlet.  Please select Singlet under T-Shirt Type.  You must also indicate your T-Shirt Size before submitting this form."
}

if (document.onlineApplication.MEMTYPE.selectedIndex=="2" && document.onlineApplication.TSHIRT_TYPE.selectedIndex!="1" && document.onlineApplication.TSHIRTSIZE.selectedIndex!="0"){
errorCheck="You have selected a membership with Singlet.  Please select Singlet under T-Shirt Type before submitting this form."
}

if (document.onlineApplication.MEMTYPE.selectedIndex=="2" && document.onlineApplication.TSHIRT_TYPE.selectedIndex=="1" && document.onlineApplication.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="Please identify your T-Shirt Size before submitting this form."
}

if (document.onlineApplication.MEMTYPE.selectedIndex=="3" && document.onlineApplication.TSHIRT_TYPE.selectedIndex!="2" && document.onlineApplication.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="You have selected a membership with Short Sleeve Coolmax T-Shirt.  Please select SS Coolmax under T-Shirt Type.  You must also indicate your T-Shirt Size before submitting this form."
}

if (document.onlineApplication.MEMTYPE.selectedIndex=="3" && document.onlineApplication.TSHIRT_TYPE.selectedIndex!="2" && document.onlineApplication.TSHIRTSIZE.selectedIndex!="0"){
errorCheck="You have selected a membership with Short Sleeve Coolmax.  Please select SS Coolmax under T-Shirt Type before submitting this form."
}

if (document.onlineApplication.MEMTYPE.selectedIndex=="3" && document.onlineApplication.TSHIRT_TYPE.selectedIndex=="2" && document.onlineApplication.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="Please identify your T-Shirt Size before submitting this form."
}

if (document.onlineApplication.MEMTYPE.selectedIndex=="4" && document.onlineApplication.TSHIRT_TYPE.selectedIndex!="3" && document.onlineApplication.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="You have selected a membership with Long Sleeve Coolmax T-Shirt.  Please select LS Coolmax under T-Shirt Type.  You must also indicate your T-Shirt Size before submitting this form."
}

if (document.onlineApplication.MEMTYPE.selectedIndex=="4" && document.onlineApplication.TSHIRT_TYPE.selectedIndex!="3" && document.onlineApplication.TSHIRTSIZE.selectedIndex!="0"){
errorCheck="You have selected a membership with Long Sleeve Coolmax.  Please select LS Coolmax under T-Shirt Type before submitting this form."
}

if (document.onlineApplication.MEMTYPE.selectedIndex=="4" && document.onlineApplication.TSHIRT_TYPE.selectedIndex=="3" && document.onlineApplication.TSHIRTSIZE.selectedIndex=="0"){
errorCheck="Please identify your T-Shirt Size before submitting this form."
}

if (errorCheck !=""){
alert(errorCheck)
return false
}

if(document.onlineApplication.Name.value=="" || document.onlineApplication.Address.value=="" || document.onlineApplication.State.value=="" || document.onlineApplication.Zip_Code.value=="") {
alert('Name, address, state, and postal code are required fields.  Please ensure that at least these four fields are filled out before proceeding.')
return false
}

document.onlineApplication.submit()
return true

}


if(formName=="ltr"){

if(document.ltr.name.value=="" || document.ltr.email2.value==""|| document.ltr.pace.value=="" || document.ltr.miles.selectedIndex==0 || document.ltr.GroupLeader.selectedIndex==0){

alert('All fields on this form are required.  Please fill out the form completely before submitting.')
return false
}


return true

}

if(formName=="memrenew"){

if(document.memrenew.name.value=="" || document.memrenew.email.value==""){

alert('All fields on this form are required.  Please fill out the form completely before submitting.')
return false
}


return true

}

if(formName=="guestbook"){

if(document.guestbook.fullname.value=="" || document.guestbook.email.value=="" || document.guestbook.citystatecountry.value=="" || document.guestbook.comments.value==""){

alert('All fields on this form are required.  Please fill out the form completely before submitting.')
return false
}


return true

}
if(formName=="newmember"){

if(document.newmember.Name.value=="" || document.newmember.email.value=="" || document.newmember.UserName.value=="" || document.newmember.Password1.value=="" ||document.newmember.Password2.value==""){

alert('All fields on this form are required.  Please fill out the form completely before submitting.')
return false
}


return true

}

if(formName=="infoxchange"){

if(document.infoxchange.Name.value=="" || document.infoxchange.Email1.value=="" || document.infoxchange.Phone.value=="" || document.infoxchange.Title.value=="" || document.infoxchange.message.value==""){

alert('All fields on this form are required.  Please fill out the form completely before submitting.')
return false
}


return true

}

if(formName=="update"){

if(document.update.name.value=="" || document.update.email1.value==""){

alert('You must provide at least your name and email address before submitting this form.')
return false
}


return true

}

}
<!----------------------end submit form------------------>

<!----------------------open Big window w/in Merchandise dir------------------>
function openBigWindow() {
i=0
y=10
w=0
h=0
leftPos=0

if(screen) {
leftPos=screen.width-790
}

else{
leftPos=10
}

bigWindow=window.open("http://www.nyflyers.org/teamphoto.jpg","bigWin","width=700,height=463,toolbar=no,menubar=no,status=no,directories=no,resizable=no,location=no,scrollbars=no,left=1, top=10")
}


<!----------------------end open Big window------------------>

<!----------------------open weather big window------------------>
function openWeatherWindow() {
i=0
y=10
w=0
h=0
leftPos=0


bigWindow=window.open("http://www.wunderground.com/US/NY/New_York.html","bigWin","width=600,height=600,toolbar=yes,menubar=yes,status=yes,directories=yes,resizable=yes,location=yes,scrollbars=yes,left=200, top=10")
}


<!----------------------end open weather big window------------------>


<!----------------------open RRCA big window------------------>
function openRRCAWindow() {
i=0
y=10
w=0
h=0
leftPos=0


bigWindow=window.open("http://www.rrca.org/calendar/event.php?css=http://www.nyflyers.org/","bigWin","width=600,height=600,toolbar=yes,menubar=yes,status=yes,directories=yes,resizable=yes,location=yes,scrollbars=yes,left=200, top=10")
}


<!----------------------end open RRCA big window------------------>

<!-----------------------genericWindow------------------------>
function genericWindow(w, h){
	//var w=500;
	//var h=400;
	var leftPos = screen.width-510;
	var URLName="http://www.nyflyers.org/photos/flyerphotos.php?photodirectory=03082003_Brooklyn_Half_Marathon&photoyear=2003&displayphoto=Ulana_Holubec_Jenny_Chon_Declan_O'Keeffe_Marjorie_Rotstein.jpg&startphotonumber=21";
infoWindow=window.open(URLName,"infoWin","width=750,height=500,toolbar=no,menubar=yes,status=no,directories=no,resizable=yes,location=yes,scrollbars=yes,left=100, top=10")
}

<!-----------------------end genericwindow------------------->

<!-----------------------productWindow------------------------>
function productWindow(){
infoWindow=window.open("productinfo.html","infoWin","width=560,height=500,toolbar=no,menubar=yes,status=no,directories=no,resizable=yes,location=no,scrollbars=yes,left=10, top=10")
}

<!-----------------------end product window------------------->

<!----------------------open Big window from root dir------------------>
function openBigWindow2() {
i=0
y=10
w=0
h=0
leftPos=0

if(screen) {
leftPos=screen.width-790
}

else{
leftPos=10
}

bigWindow=window.open("http://www.nyflyers.org/teamphoto.jpg","bigWin","width=700,height=485,toolbar=no,menubar=no,status=no,directories=no,resizable=no,location=no,scrollbars=no,left=1, top=10")
}

<!----------------------end open Big window------------------>

<!----------------------open election window from root dir------------------>
function openelectionWindow() {
i=0
y=10
w=0
h=0
leftPos=0

if(screen) {
leftPos=screen.width-790
}

else{
leftPos=10
}

bigWindow=window.open("/elections/2002/election2002.html","bigWin","width=" + screen.width +",height=600,toolbar=yes,menubar=yes,status=yes,directories=no,resizable=yes,location=yes,scrollbars=yes,left=1, top=10")
}

<!----------------------end open Big window------------------>

<!----------------------open new window------------------>
function openWindow(windowName) {
document.hideMerchandise.showMerchandise.value=""
document.hideMerchandise.showPhotoName.value=""

windowNameDir="merchandiseImages.html"

i=0
y=10
w=0
h=0
leftPos=0

if(screen) {
leftPos=screen.width-500
}

else{
leftPos=300
}

if (windowName=="s7.jpg" || windowName=="s6.jpg"){
w=200
h=264
}

if (windowName=="s6.jpg"){
w=240
h=264
}
alert(windowName)
if (windowName=="marathonshirt.gif"){
w=360
h=492
}

if (windowName=="jacket.jpg"|| "hat.jpg" || "bra.jpg"){
w=290
h=264
}



if (windowName=="ls_coolmax.jpg" || windowName=="ss_coolmax.JPG" || windowName=="Singlet_Mens.JPG"){
w=200
h=264
}

if (windowName=="Singlet_Womens.JPG"){
w=180
h=299
}

if (windowName=="microlight_long.jpg"){
w=360
h=240
}

if (windowName=="teamphoto_small.jpg"){
w=315
h=145
}


document.hideMerchandise.showPhotoName.value= windowName
document.hideMerchandise.showMerchandise.value="<IMG SRC='"+windowName+"'border='0' height='"+h+"' width='" + w + "'>"



buyWindow=window.open("merchandiseImages.html","buyWin","width=360,height=300,toolbar=no,menubar=no,status=no,directories=no,resizable=no,location=no,scrollbars=no,left="+leftPos+", top=10")


buyWindow.focus()




}

<!----------------------end open new window------------------>


<!---------------------race pace calculator------------------>

function doCheck() {

if (navigator.appName.indexOf("Netscape") != -1){

if(document.layers && !document.GetElementById) {

alert('Sorry!  Your browser is out of date.  This functionality is only available to people using Netscape 6 or higher, or Microsoft Internet Explorer 5 or higher.')

  }
}
 else {
document.racePace.hours.value=0

document.racePace.mins.value=0

document.racePace.secs.value=0 

document.InvRacePace.mins.value=0

document.InvRacePace.secs.value=0

document.InvRacePace.frac.value="0"

 
}
}



function calcTotal() {

racedistance=document.racePace.race.options[document.racePace.race.selectedIndex].value



var tot_sec = 3600*document.racePace.hours.value + 60*document.racePace.mins.value + 01*document.racePace.secs.value

var min_mil = tot_sec / (60*racedistance)



document.racePace.intmins.value = Math.round(min_mil-0.5)



document.racePace.intsecs.value = (min_mil-document.racePace.intmins.value)



if (Math.round(60*document.racePace.intsecs.value-0.5) < 9) var Frank = ("0");  

if (Math.round(60*document.racePace.intsecs.value-0.5) >= 9) var Frank = ("");

document.racePace.intsecs.value = ((Frank) + (Math.round(60*document.racePace.intsecs.value)))

}



function calcTime() {

racedistance=document.InvRacePace.race.options[document.InvRacePace.race.selectedIndex].value

var tot_frac = 60*document.InvRacePace.mins.value + 01*document.InvRacePace.secs.value + 0.01*document.InvRacePace.frac.value

var tot_time = tot_frac * racedistance



document.InvRacePace.inthrs.value = Math.round(tot_time/3600 - 0.5)

tot_time = tot_time - document.InvRacePace.inthrs.value * 3600



document.InvRacePace.intmns.value = Math.round(tot_time/60 - 0.5)

tot_time = tot_time - document.InvRacePace.intmns.value * 60



document.InvRacePace.intsec.value = Math.round(tot_time)

}
<!---------------------end race pace calculator-------------->


<!--------------------scrolling functions---------------->
//<iframe> script by Dynamicdrive.com

//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=1

function initialize(){
marqueeheight=document.all? parent.document.all.datamain.height : parent.document.getElementById("datamain").getAttribute("height")
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top=5
thelength=dataobj.offsetHeight
scrolltest()
}

function scrolltest(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top=5
setTimeout("scrolltest()",60)
}


<!---------------------end scrolling--------------------->


<!-----------------------current date--------------------->
dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monName = new Array ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")

now = new Date
dayStr = "0" + now.getDate()
showDay = dayStr.slice(-2)
//alert(dayStr)
//alert(now.getDate());

function getDate() {
document.write(dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + showDay)
}

<!-----------------------end current date--------------------->

<!-----------------------clock--------------------->
var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds
	
function writeclock() {
	i_clock++
	if (document.all || document.getElementById || document.layers) {
		clockid[i_clock]="clock"+i_clock
		document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
	}
}

function clockon() {
	thistime= new Date()
	hours=thistime.getHours()
	minutes=thistime.getMinutes()
	seconds=thistime.getSeconds()
	if (eval(hours) <10) {hours="0"+hours}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (seconds < 10) {seconds="0"+seconds}
	thistime = hours+":"+minutes+":"+seconds
		
	if (document.all) {
		for (i=0;i<=clockid.length-1;i++) {
			var thisclock=eval(clockid[i])
			thisclock.innerHTML=thistime
		}
	}
	
	if (document.getElementById) {
		for (i=0;i<=clockid.length-1;i++) {
			document.getElementById(clockid[i]).innerHTML=thistime
		}
	}
	var timer=setTimeout("clockon()",1000)
}
//window.onload=clockon
<!------------------------End Clock----------------->


<!----------------Picture Rotation--------------->

pic1=new Image(250,200)
pic2=new Image(250,200)
pic3=new Image(250,200)
pic4=new Image(250,200)
pic5=new Image(250,200)

pic1.src="recent1.jpg"
pic2.src="recent2.jpg"
pic3.src="recent3.jpg"
pic4.src="recent4.jpg"
pic5.src="recent5.jpg"

pictureFlip =new Array("recent1.jpg", "recent2.jpg", "recent3.jpg", "recent4.jpg", "recent5.jpg")
currentPic = 0 
picCounter = pictureFlip.length

function flipPics() {

if(document.images) { 
currentPic ++

if(picCounter==currentPic) {
currentPic=0
}


document.grabPic.src=pictureFlip[currentPic]
setTimeout("flipPics()", 3* 1000)
}
}

<!----------------End--------------->


<!----------------Menus--------------->

function expandMenu(divName) {


var headerLink = "<A HREF='javascript:void(0)' onClick='collapseMenu(\"" + divName + "\")'>" + divName + "</A>"

var tableHeader = "<TABLE WIDTH='159' BORDER='0' VALIGN='MIDDLE' CELLSPACING='2' CELLPADDING='2'<TR>"

var tableContents = ""

var tableFooter = "</TR></TABLE>"

if(divName=="Information") {

tableContents = "<TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='about_nyf.html'target='content'>About the Flyers</A></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='membership/membership.html'target='content'>Membership</A></nowrap></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='merchandise/merchandise.html'target='content'>Merchandise</A></nowrap></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='training/racepace.html'target='content'>Pace Calculator</A></nowrap></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='NYCM/spectator.html'target='content'>2001 Spectator Guide</A></nowrap></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='info/fav_site.html'target='content'>Links</A></nowrap></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='HTTP://www.wunderground.com/US/NY/New_York.html'target='content'>NYC Weather</A></nowrap></TD>"

}

if(divName=="Racing") {

tableContents = "<TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='raceresults/raceresults.php'target='content'>Current Race Results</nowrap></A></TD></TR><TR><TD class='submenutext' valign='top'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='training/racersreport.html'target='content'>Weekly Race Report</nowrap></A></TD></TR><TR><TD class='submenutext' valign='top'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='training/multisport.html'target='content'>Multisport</nowrap></A></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='training/pacerprogram.html'target='content'>Personal Best Program</nowrap></A></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='http://www.nyrrc.org/race/clubcham.htm'target='content'>Points Races</nowrap></A></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='training/przone.html'target='content'>PR Zone</nowrap></A></TD></TR></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='stories/battle.html'target='content'>Battle Stories&nbsp;</nowrap></A></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='training/fiftystate.html'target='content'>Fifty State Club</nowrap></A></TD>"

}

if(divName=="Training") {

tableContents = "<TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='training/speed.html'target='content'>Speedwork</nowrap></A></TD></TR><TR><TD class='submenutext' valign='top'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='training/where.html'target='content'>Speedwork Location</nowrap></A></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='training/cal.html'target='content'>Group Runs</nowrap></A></TD>"

}

if(divName=="Social") {

tableContents = "<TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='social/eventsdb.php'target='content'>Upcoming Events</nowrap></A></TD></TR><TR><TD class='submenutext' valign='top'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='photos/flyer_photos.html'target='content'>Photo Album</nowrap></A></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='social/awards.html'target='content'>Awards Page</nowrap></A></TD>"

}

if(divName=="Guest Book") {

tableContents = "<TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='vbpro/htdocs/flguestbook/entries.html'target='content'>View</nowrap></A></TD></TR><TR><TD class='submenutext' valign='top'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='vbpro/htdocs/flguestbook/'target='content'>Sign</nowrap></A></TD>"}if(divName=="Discussion Board") {tableContents = "<TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='UBB/cgi-bin/ultimatebb.cgi'target='content'>Discussion Board</nowrap></A></TD></TR>"

}

if(divName=="Members Only") {

tableContents = "<TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='info/accreq.html'target='content'>Account Setup</nowrap></A></TD></TR><TR><TD class='submenutext' valign='top'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='P/newslet.html'target='content'>Newsletter</nowrap></A></TD></TR><TR><TD class='submenutext' valign='middle'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='P/directory.html'target='content'>Who's Who</nowrap></A></TD></TR><TR><TD class='submenutext' valign='top'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='P/post_board.html'target='content'>Post to Info XChange</nowrap></A></TD></TR><TR><TD class='submenutext' valign='top'><nowrap>&nbsp;&nbsp;&nbsp;<A HREF='membership/renewal.html'target='content'>Renew Membership</nowrap></A></TD></TR>"

}

if (document.getElementById) {
document.getElementById(divName).innerHTML= headerLink + tableHeader + tableContents + tableFooter
}

if (document.all) {
document.all.item(divName).innerHTML= headerLink + tableHeader + tableContents + tableFooter
}


}


<!----------------------------END------------------------>

<!----------------------------COLLAPSE MENU------------------------>
function collapseMenu(divName) {
var headerLink = "<A HREF='javascript:void(0)' onClick='expandMenu(\"" + divName + "\")'>" + divName + "</A>"

if (document.getElementById) {
document.getElementById(divName).innerHTML= headerLink
}

if (document.all) {
document.all.item(divName).innerHTML= headerLink
}


}

<!----------------------------END------------------------>

<!----------------------------DRAW FRAME (use only w/o frameset)------------------------>
function drawFrame() {

document.write("<TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='760'>") 
document.write("<TR>")
document.write("<TD valign='top'>")

document.write("<TABLE WIDTH='750' BORDER='0' VALIGN='TOP' CELLSPACING='2'CELLPADDING='0'>")
document.write("<TR>")
document.write("<TD width='200'>")
document.write("<IMG SRC='nyf_test.gif'>")
document.write("</TD>")

document.write("<TD width='550'><CENTER>")
document.write("<IMG SRC='flyerflag.jpg' border='0'>")
document.write("</TD></CENTER>")
document.write("</TR>")

document.write("<TR>")
document.write("<TD class='menutext'>&nbsp;")
document.write("</TD>")
document.write("<TD class='menutext'>&nbsp;")
document.write("</TD>")
document.write("</TR>")

document.write("<TR>")
document.write("<TD valign='top'>")

document.write("<TABLE width='200' BORDER='0' VALIGN='TOP' CELLSPACING='3'CELLPADDING='0'>")
document.write("<TR>")
document.write("<TD class='newstext' valign='top'>")
document.write("New!")
document.write("</TD>")
document.write("</TR>")

document.write("<TR>")
document.write("<TD class='whitetext' bgcolor='#AAAAAA'>")
document.write("This month's featured race for the <A class='whitetext' HREF='pacerprogram.html'target='content'>")
document.write("Personal Best Program</A> is the <A class='whitetext'HREF='http://www.nyrrc.org/race/2002/r0421x00.htm'") 
document.write("target='content'>Niketown 4 Miler</A> on April 21st.")
document.write("</TD>")
document.write("</TR>")

document.write("<TR>")
document.write("<TD class='menutext'>&nbsp;")
document.write("</TD>")

document.write("</TR>")

document.write("<TR>")

document.write("<TD class='menutext' bgcolor='#DDDDDD'>")
document.write("<A HREF='flindex.html'>Home</A>")
document.write("</TD>")

document.write("</TR>")
document.write("<TR>")

document.write("<TD class='menutext' bgcolor='#DDDDDD'>")
document.write("<DIV ID='Information'>")


document.write("<A HREF='javascript:void(0)' onClick=expandMenu('Information')>Information</A>")

document.write("</DIV>")
document.write("</TD>")

document.write("</TR>")
document.write("<TR>")
document.write("<TD class='menutext' bgcolor='#DDDDDD'>")
document.write("<DIV ID='Racing'>")
document.write("<A HREF='javascript:void(0)' onClick='expandMenu(\"Racing\")'>Racing</A>")
document.write("</DIV>")
document.write("</TD>")
document.write("</TR>")
document.write("<TR>")
document.write("<TD class='menutext' bgcolor='#DDDDDD'>")
document.write("<DIV ID='Training'>")
document.write("<A HREF='javascript:void(0)' onClick='expandMenu(\"Training\")'>Training</A>")
document.write("</DIV>")
document.write("</TD>")
document.write("</TR>")
document.write("<TR>")
document.write("<TD class='menutext' bgcolor='#DDDDDD'>")
document.write("<DIV ID='Social'>")
document.write("<A HREF='javascript:void(0)' onClick='expandMenu(\"Social\")'>Social</A>")
document.write("</DIV>")
document.write("</TD>")
document.write("</TR>")
document.write("<TR>")
document.write("<TD class='menutext' bgcolor='#DDDDDD'>")
document.write("<DIV ID='Info XChange'>")
document.write("<A HREF='javascript:void(0)' onClick='expandMenu(\"Info XChange\")'>Info XChange</A>")
document.write("</DIV>")
document.write("</TD>")
document.write("</TR>")
document.write("<TR>")
document.write("<TD class='menutext' bgcolor='#DDDDDD'>")
document.write("<DIV ID='Guest Book'>")
document.write("<A HREF='javascript:void(0)' onClick='expandMenu(\"Guest Book\")'>Guest Book</A>")
document.write("</DIV>")
document.write("</TD>")
document.write("</TR>")
document.write("<TR>")
document.write("<TD class='menutext' bgcolor='#DDDDDD'>")
document.write("<DIV ID='Members Only'>")
document.write("<A HREF='javascript:void(0)' onClick='expandMenu(\"Members Only\")'>Members Only</A>")
document.write("</DIV>")
document.write("</TD>")

document.write("</TR>")

document.write("<TR>")
document.write("<TD class='menutext' bgcolor='#DDDDDD'>")
document.write("<DIV ID='Contact Us'>")
document.write("<A HREF=javascript:openWindow('http://www.nyflyers.org/communications/mailform.php?flyeremail=mal@nyflyers.org','Email Form','scrollbars=yes,status=yes,width=650,height=500')>Contact Us</A>")
document.write("</DIV>")
document.write("</TD>")

document.write("</TR>")

document.write("</TABLE>")

document.write("</TD>")

}
<!----------------END--------------->

<!----------------BOTTOM OF CONTENT PAGE--------------->
function endFrame() {
document.write("</TR>")
document.write("</TABLE>")
document.write("</TD>")
document.write("</TR>")
document.write("</TABLE>")

}
<!----------------END--------------->

<!----------------Small Window--------------->

function openNewWindow(url) {


InfoWindow=window.open(url,"Info","width=580,height=500, toolbar=no,menubar=yes,status=no,directories=no,resizable=no,location=no,scrollbars=yes,left=200, top=10")
InfoWindow.focus()



}
<!----------------EXPAND FAQ--------------->
function expandFAQ() {

//if (document.getElementById) {
//document.getElementById("FAQ").innerHTML= "<CENTER><A class='newstext' HREF='javascript:void(0)' onClick='collapseFAQ()'>Frequently Asked Questions</A></CENTER><P class='maintext'>" + document.forms[0].HiddenText1.value 
//}

//if (document.all) {
//document.all.item("FAQ").innerHTML= "<CENTER><A class='newstext' HREF='javascript:void(0)' onClick='collapseFAQ()'>Frequently Asked Questions</A></CENTER><P class='maintext'>" + document.forms[0].HiddenText1.value 
//}

//if (document.layers && !document.getElementById) {

InfoWindow=window.open("about_nyfN4.html","Info","width=580,height=500, toolbar=no,menubar=yes,status=no,directories=no,resizable=no,location=no,scrollbars=yes,left=200, top=10")
InfoWindow.focus()
//}


}


<!----------------END--------------->

<!----------------COLLAPSE FAQ--------------->
function collapseFAQ() {

if (document.getElementById) {
document.getElementById("FAQ").innerHTML= "<CENTER><A class='newstext' HREF='javascript:void(0)' onClick='expandFAQ()'>Frequently Asked Questions</A></CENTER>"
}

if (document.all) {
document.all.item("FAQ").innerHTML= "<CENTER><A class='newstext' HREF='javascript:void(0)' onClick='expandFAQ()'>Frequently Asked Questions</A></CENTER>"
}
}
<!----------------END--------------->

<!----------------EXPAND OFFICERS--------------->
function expandOfficers() {

//if (document.getElementById) {
//document.getElementById("Officers").innerHTML= "<CENTER><A class='newstext' HREF='javascript:void(0)' onClick='collapseOfficers()'>NYF Officers and Team Captains</A></CENTER><P class='maintext'>" + document.forms[0].HiddenText2.value 
//}

//if (document.all) {
//document.all.item("Officers").innerHTML= "<CENTER><A class='newstext' HREF='javascript:void(0)' onClick='collapseOfficers()'>NYF Officers and Team Captains</A></CENTER><P class='maintext'>" + document.forms[0].HiddenText2.value 
//}

//if (document.layers && !document.getElementById) {

InfoWindow=window.open("nyf_officersN4.html","Info","width=580,height=500,toolbar=no,menubar=yes,status=no,directories=no,resizable=no,location=no,scrollbars=yes,left=200, top=10")

//}
}
<!----------------END--------------->

<!----------------COLLAPSE OFFICERS--------------->
function collapseOfficers() {

if (document.getElementById) {
document.getElementById("Officers").innerHTML= "<CENTER><A class='newstext' HREF='javascript:void(0)' onClick='expandOfficers()'>NYF Officers and Team Captains</A></CENTER>"
}

if (document.all) {
document.all.item("Officers").innerHTML= "<CENTER><A class='newstext' HREF='javascript:void(0)' onClick='expandOfficers()'>NYF Officers and Team Captains</A></CENTER>"
}

}
<!----------------END--------------->


<!-------------whats New------------>

function openNewsletter(){
	window.open("http://www.nyflyers.org/P/2002-06.pdf","newsletterWin","width=700,height=600,toolbar=no,menubar=yes,status=no,directories=no,resizable=yes,location=yes,scrollbars=yes,left=100,top=10")
}

function formHandler(){
if (document.menuForm.whatsNew.selectedIndex !="0") {
	var URL = document.menuForm.whatsNew.options[document.menuForm.whatsNew.selectedIndex].value;
        parent.frames[1].location.href = URL;
}
}

function formContent(){

document.write('<form name="menuForm">');

if(document.getElementById){
document.write("<P>")
}

if(navigator.userAgent.indexOf('Opera')==-1){
	document.write('&nbsp;')
}
if(document.layers){
document.write('&nbsp;<select name="whatsNew" size=1 class="maintext" onChange="formHandler()">');
}
else{
document.write('<select name="whatsNew" size=1 class="smalltext" onChange="formHandler()">');
}
document.write('<option value="">What\'s New!');
document.write('<option value="P/newslet.html" target="self">February Newsletter');
document.write('<option value="social/events.html" target="self">Upcoming Events');
document.write('<option value="raceresults/raceresults.php" target="self">Current Race Results');


document.write('</select>');
document.write('</form>');
}

<!------------End Whats New------------>

