var animatedList={

navigate:function(selectId){
	this.selectObj=document.getElementById(selectId)
	window.location=this.selectObj[this.selectObj.selectedIndex].value
},

randomizeInit:function(selectId){
	this.selectObj=document.getElementById(selectId)
	this.curframe=0
	this.optionscount=this.selectObj.options.length
 //calculate number of frames to animate (cycle through options before settling on one)
	this.maxframes=Math.floor(Math.random()*this.optionscount)+Math.floor(Math.random()*this.optionscount)
	this.randomize()
},


randomize:function(){
	if (this.curframe<this.maxframes)
		this.selectObj.selectedIndex=this.settledIndex=(this.curframe<this.optionscount)? this.curframe : this.curframe-this.optionscount
	else{ //settle on and select this option
		this.selectObj.selectedIndex=(this.selectObj.selectedIndex==-1)? this.settledIndex : -1
	}
	this.curframe++
	if (this.curframe<this.maxframes+4) //Keep running this function until "maxframes" cycle plus 4 (4 being cycle for highlighting selected option)
		setTimeout("animatedList.randomize()", 100)
	else
		window.location=this.selectObj[this.selectObj.selectedIndex].value
}

}

