startList = function() {
	if (document.all&&document.getElementById) {
		cssdropdownRoot = document.getElementById("cssdropdown");
		for (x=0; x<cssdropdownRoot.childNodes.length; x++) {
			node = cssdropdownRoot.childNodes[x];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

if (window.attachEvent)
	window.attachEvent("onload", startList)
else
	window.onload=startList;

/*=============================================================================================================*/

//QUOTES===============================================================================
var quoteArray = new Array;
quoteArray[0]=new Array("Just by being out you're doing your part. It's like recycling.","You're doing your part for the environment if you recycle;<br>you're doing your part for the gay movement if you're out.", "--Tennis champ Martina Navratilova to San Francisco Bay Times.")
quoteArray[1]=new Array("I'm an openly gay trailer-trash Mexican.","How could they not  love me?", "--Ice-skating national champion Rudy Galindo.")
quoteArray[2]=new Array("I'm sort of a gay success story, a very inspirational one. What  happened to me is exactly the opposite of what closeted people fear:","They think they'll lose everything if they come out. This  did not happen to me at all. In fact, everything came back  tenfold.", "--Rocker Melissa Etheridge to The Advocate.")
quoteArray[3]=new Array("I've always been openly gay.","It would never occur to me to  behave otherwise.", "--Ringling Bros. and Barnum & Bailey circus Ringmaster Eric  Michael Gillet<br>to Atlanta's Etcetera magazine.")
quoteArray[4]=new Array("The femme ones. The long-haired, beautiful babes. And young,  young, young!","I always say that if they're old enough to be in my field of vision, they're old enough for me!", "--Comic Lea DeLaria when asked by Cleveland's Gay People's  Chronicle,<br>'What kind of girl gets your attention?' ")
quoteArray[5]=new Array("No government has the right to tell its citizens when or whom to love.","The only queer people are those who don't love anybody.", "--Rita Mae Brown, speech, 28 August 1982")
quoteArray[6]=new Array("Drag is when a man wears everything","a lesbian won't.", "--Author Unknown")
quoteArray[7]=new Array("Did you hear about the Scottish drag queen?","He wore pants.", "--Lynn Lavner")
quoteArray[8]=new Array("One should no more deplore homosexuality","than left-handedness.", "--Towards a Quaker View of Sex, 1964")
quoteArray[9]=new Array("There's this illusion that homosexuals have sex and heterosexuals fall in love.","That's completely untrue. Everybody wants to be loved.", "--Boy George")
quoteArray[10]=new Array("- My mother made me a homosexual.","If I gave her the wool, would she make me one too?", "--Graffiti, London, 1978")
quoteArray[11]=new Array("God has given you one face,","and you make yourself another.", "--William Shakespeare")
quoteArray[12]=new Array("Hateful to me as the gates of Hades","is that man who hides one thing in his heart and speaks another.","--Homer")
quoteArray[13]=new Array("Never be bullied into silence. Never allow yourself to be made a victim.","Accept no one's definition of your life; define yourself.", "--Harvey Fierstein")
quoteArray[14]=new Array("Never apologize for showing feeling.","When you do so, you apologize for the truth.", "--Benjamin Disraeli")
quoteArray[15]=new Array("Be who you are and say what you feel, because those who mind don't matter","and those who matter don't mind.", "--Dr. Seuss")
quoteArray[16]=new Array("Above all, the lesbian and gay community is recognized as a community,", "one that is often angry and militant, generally well disciplined, always concerned.", "--Edmund White")
quoteArray[17]=new Array("Anyone who thinks that love needs to be cured", "has not experienced enough of it in their own lives.", "--Joan Garry")
quoteArray[18]=new Array("It's no wonder we know how to dress;", "we've spent centuries in closets", "--Isaac Mizrahi")
quoteArray[19]=new Array("I don't want to be tolerated.","That offends my love of life and of liberty.", "--Jean Cocteau")
quoteArray[20]=new Array("<div style=\"font-size: 9px; line-height: 8px;\">If I believe in anything, rather than God, it's that I am part of something that goes back to Antigone<br>and that whatever speaks the truth of our hearts can only make us stronger.", "We must be the last generation to live in silence.", "--Paul Monette</div>")
quoteArray[21]=new Array("<div style=\"font-size: 9px; line-height: 8px;\">I attribute a large part of the ignorance in schools to homophobia,<br>because kids are fearful of being perceived as being different,", "even when they aren't actually gay.<br>Teachers have to challenge bigotry in all it's forms,<br>because bigotry is a way of making people act in ways that are not who they are.", "--Kevin Jennings</div>")
quoteArray[22]=new Array("I am not just a lesbian.  I am not just a poet.", "I am not just a mother.  Honor the complexity of your vision and yourselves.", "--Audre Lorde")
quoteArray[23]=new Array("I am not especially defined by my sex life,", "nor complete without it.", "--Paula Gunn Allen")
quoteArray[24]=new Array("There's this illusion that homosexuals have sex and heterosexuals fall in love.", "That's completely untrue.  Everyone wants to be loved.", "--Boy George")
quoteArray[25]=new Array("<div style=\"font-size: 9px; line-height: 8px;\">1049. That's the numbe of federal statutes that provide benefits, rights, and privileges to individuals who have the legal right to marry.", "I am at the end of my patience with gays who say they're not interested in obtaining the right to legally marry.", "--Larry Kramer</div>")
quoteArray[26]=new Array("Gay culture is far from 'marginal', being rather 'intersectional',", "the conduit between unlike beings.", "--Judy Grahn")
quoteArray[27]=new Array("If you removed all the homosexuals and homosexual influence from what is generally regarded as American culture,", "you would be pretty much left with Let's Make a Deal.", "--Fran Lebowitz")
quoteArray[28]=new Array("One should no more deplore homosexuality", "than left-handedness.", "--1963 statement by English Quakers")
quoteArray[29]=new Array("I [came out to my family on ] Thanksgiving.  I said, 'Mom, would you please pass the gravy to a homosexual?'", "She passed it to my father.  A terrible scene followed.", "--Bob Smith")
quoteArray[30]=new Array("If a bullet should enter my brain,", "let that bullet destroy every closet door.", "--Harvey Milk")
quoteArray[31]=new Array("If I do not fight bigotry wherever it is, bigotry is thereby strengthened.", "And to the degree that it is strengthened, it will, thereby, have the power to turn on me.", "--Bayard Rustin")
quoteArray[32]=new Array("Because we stand in the center of progress toward democracy,", "[gay people] have a terrifying responsibility to the whole society.", "--Bayard Rustin")
quoteArray[33]=new Array("Gay culture is old, extremely old, and it is continuous.  I have found that Gay culture has it traditionalist,", "its core group, that is worldwide, and that it has tribal and spiritual roots.", "--Judy Grahn")
quoteArray[34]=new Array("Everything would be better if we would", "institute a third pronoun.", "--Chloe Dzubilo")
quoteArray[35]=new Array("I consider myself 'transspecies': a hybrid blend of my own choosing.", "To me, the world is not just bi-gendered -- there are a variety of genders.", "--Christopher Lee")
quoteArray[36]=new Array("If homosexuality is a disease, lets all call in queer to work:", "'Hello.  Can't work today, still queer.'", "--Robin Tyler")
quoteArray[37]=new Array("What do you mean you 'don't believe in homosexuality?'", "It's not like the Easter Bunny, your belief isn't necessary.", "--Lea Delaria")
quoteArray[38]=new Array("Memo to the operatives:  Old gay agenda -- world domination by 2001 -- has been scrapped.", "Look for a new gay agenda in your mailbox sometime in June.", "--Bruce Vilanch")
quoteArray[39]=new Array("If male homosexuals are called 'gay',", "then female homosexuals should be called 'ecstatic'.", "--Shelly Roberts")
quoteArray[40]=new Array("Yes, it's very un-PC to categorize gay men as big drama queens,", "but unless you don't get out much it's a hard notion to outright dismiss.", "--Patrick Price")
quoteArray[41]=new Array("","","")

var fevent = "Pride"
var emonth = 06
var edate = 20
var eyear = 2009

document.getElementById("gevent").innerHTML = fevent
daysin = new Array(31,28,31,30,31,30,31,31,30,31,30,31)
totdays = new Array()
totdays[0] = 0
for (i = 1; i < 12; i++){
	totdays[i] = totdays[i-1] + daysin[i-1]
}
edayspastnew = totdays[emonth - 1] + edate

updateTimer()
updateQuote()

function updateTimer() {
	today = new Date()
	happened = false
	dayspastnew = totdays[today.getMonth()]+today.getDate()
	daystill2 = ((eyear-today.getFullYear())*365+(edayspastnew-dayspastnew))
	if (daystill2 <= 0) {
		happened=true
	}
	todayseconds = (60-today.getSeconds()).toString()
	if (happened == true) {
		todayseconds = today.getSeconds().toString()
	}
	if (todayseconds.length!=2) {
		todayseconds = "0"+todayseconds
	}
	todayminutes = (60-today.getMinutes()).toString()
	if (happened == true) {
		todayminutes = today.getMinutes().toString()
	}
	if (todayminutes.length!=2) {
		todayminutes = "0"+todayminutes
	}
	dayspastnew = totdays[today.getMonth()]+today.getDate()
	daystill = ((eyear-today.getFullYear())*365+(edayspastnew-dayspastnew))
	todayhours = (-today.getHours()+daystill*24-1)
	if(happened == true){
		daystill = ((today.getFullYear()-eyear)*365+(dayspastnew-edayspastnew))
		todayhours = (today.getHours()+daystill*24)
	}
	document.getElementById("seconds").innerHTML = todayseconds
	document.getElementById("minutes").innerHTML = todayminutes
	document.getElementById("hours").innerHTML = todayhours
	document.getElementById("days").innerHTML = daystill
	document.getElementById("happenedspan").innerHTML = (happened?"since":"until")
	if (daystill == 1){
		document.getElementById("plural").innerHTML = ""
	}else{
		document.getElementById("plural").innerHTML = "s"
	}
	setTimeout("updateTimer()", 1000)
}

function updateQuote() {
	document.getElementById("quote").innerHTML=getRandomQuote();
	setTimeout("updateQuote()", 60000)
}

function getRandomQuote(){	   		   
	var theRand=getRandomNum(1,quoteArray.length)-1
	return ("\""+quoteArray[theRand][0]+"<br>-"+quoteArray[theRand][1]+"\"<br>"+quoteArray[theRand][2])
}

function getRandomNum(lbound, ubound) {
	return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}

/*============================================================================================================*/
