<!--
mess = new Array("Last Weekend to Sign up for the FALL SCRAMBLE - See Ralph Butera!"," ")
CCflash = new Array("Read Club Championship Semi Final Previews", "")
myMsg = "Hoin / Martinelli Make multiple birdies....Dailey fires 33 on back to lead team Dailey to victory... "
i=0;

var max = mess.length;
//var num = Math.floor((Math.random() * max));
thisAd = -1
first = true;
var speed=3

function rotate(){
		if(document.images){
			thisAd++
		}
		if(thisAd == max){
			thisAd = 0
		}
	
		
		document.Flash.scramble.value = mess[thisAd]
		setTimeout("rotate()", speed*250)
}


function ScrollMsg(){
	
	window.status = myMsg.substring(i,myMsg.length) + "    " +  myMsg.substring(0,i)
	if(i<myMsg.length){
		i++
	}
	else{
		i=0
	}
	setTimeout("ScrollMsg()",125) 

}

function JumpPage(newLoc){
	newPage = newLoc.options[newLoc.selectedIndex].value
	
	if(newPage != ""){
		window.location = newPage	
	}


}

function newPage(){
 
 leftPos=0
 if(screen){
 	leftPos = screen.height-700
 }
 	newWindow=window.open("http://www.hsrgolfclub.org/eventview.htm", "newWin", "toolbar=no,width=425,height=350, left="+leftPos+", top=0")
}



function ResultsPage(){
 
 leftPos=0
 if(screen){
	leftPos = screen.height-700
}
	newWindow=window.open("http://www.hsrgolfclub.org/QuesRes.htm", "newWin", "toolbar=no,width=400,height=450, left="+leftPos+", top=0")
}

//--------------------------------------------------------------------------------------------------------------------------------------------

// Create arrays to contain all the values
// for image locations

image = new Array

image[1]="http://us.yimg.com/images/yahoo.gif"
image[2]="http://www.excite.com/mesp/images/excite/new_logo-180.gif"
image[3]="http://a284.g.akamai.net/7/284/987/000/lygo.com/ly/i/lyguide.gif"
image[4]="http://cnet.com/Images/Headers/cnet-1-title.gif"
image[5]="http://webcrawler.com/img/web/hdr/home_header.gif"

// Create a random number between 1 and five
random_num = (Math.round((Math.random()*4)+1))

function imagefind(){
	// Write the image tag with a random array element
	//document.write("<img src=\"" + image[random_num] + "\">");
	document.pic1.src = image[random_num]
}

	meet = new Array(11)
		meet[0] = "January"
		meet[1] = "February"
		meet[2] = "March"
		meet[3] = "April"
		meet[4] = "May"
		meet[5] = "June"
		meet[6] = "July"
		meet[7] = "August"
		meet[8] = "September"
		meet[9] = "October"
		meet[10] = "November"
		meet[11] = "December"
		
meetday = new Array(11)

	meetday[0] = 5
	meetday[1] = 3
	meetday[2] = 3
	meetday[3] = 7
	meetday[4] = 5
	meetday[5] = 2
	meetday[6] = 7
	meetday[7] = 4
	meetday[8] = 1
	meetday[9] = 6
	meetday[10] = 3
	meetday[11] = 1 
	
		
function determineDate(curr_month, curr_day){

	var meetdate
	if(curr_month == 11){
		curr_month = 0
	}
	if(curr_day > meetday[curr_month]){
		meetdate = meet[curr_month + 1] + " " + meetday[curr_month + 1]
	}
	
	else{
		meetdate = meet[curr_month] + " " + meetday[curr_month]

	} 	
	

	return meetdate
}

/*
Count down until any date script-
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/

//change the text below to reflect your own,


function countdown(yr,m,d){
var before=""
var current="This Event Signup Has Expired"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
theyear=yr;themonth=m;theday=d
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
futurestring=montharray[m-1]+" "+d+", "+yr
dd=Date.parse(futurestring)-Date.parse(todaystring)
dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)

if(dday<0){

document.forms.count.count2.value=current

return
}
else if (dday >= 1){
document.forms.count.count2.value=dday+ " days, "+dhour+" hours, " +dmin+ " Minutes"
//document.forms.count.count2.value=dday+ " days, "+dhour+" hours, "+dmin +  " minutes, and "+dsec+" sec "+before
setTimeout("countdown(theyear,themonth,theday)",1000)
}
else if (dhour <= 24){
document.forms.count.count2.value=dhour+" hours, "+dmin +  " minutes" 
setTimeout("countdown(theyear,themonth,theday)",1000)
}
else if (dmin <= 60){
document.forms.count.count2.value=dmin +  " minutes, and "+dsec+" seconds "+before
setTimeout("countdown(theyear,themonth,theday)",1000)
}
}
//enter the count down date using the format year/month/day
countdown(yr,m,d)

//-->