// JavaScript Document
var alwayscombo={
	location: ["top", "right"], //Position of com box from window edge ["top|bottom", "left|right"]
	addoffset: [10, 15], //Additional offset from specified location above [vertical_offset, horizontal offset]
	comboid: "visiblecombo", //ID of div containing floating combo

////////Stop editing past here///////////////////

	navigate:function(){
	var selectobj=this.comboref.getElementsByTagName("select")[0]
	if (selectobj.options[selectobj.selectedIndex].value!="default")
		window.location=selectobj.options[selectobj.selectedIndex].value
	},

	floatcombo:function(){
	var docElement=(document.compatMode=='CSS1Compat')? document.documentElement: document.body
	if (this.location[0]=="top")
		this.comboref.style.top=0+this.addoffset[0]+"px"
	else if (this.location[0]=="bottom")
		this.comboref.style.bottom=0+this.addoffset[0]+"px"
	if (this.location[1]=="left")
		this.comboref.style.left=0+this.addoffset[1]+"px"
	else if (this.location[1]=="right")
		this.comboref.style.right=0+this.addoffset[1]+"px"
	},

	init:function(){
	this.comboref=document.getElementById(this.comboid)
	this.comboref.style.visibility="visible"
	this.floatcombo()
	}
}


if (window.addEventListener)
window.addEventListener("load", function(){alwayscombo.init()}, false)
else if (window.attachEvent)
window.attachEvent("onload", function(){alwayscombo.init()})
