var alwayscombo={
	locationRight: ["top", "right"], //Position of com box from window edge ["top|bottom", "left|right"]
	locationLeft: ["top", "left"], //Position of com box from window edge ["top|bottom", "left|right"]
	addoffsetRight: [10, 15], //Additional offset from specified location above [vertical_offset, horizontal offset]
	addoffsetLeft: [10, 15], //Additional offset from specified location above [vertical_offset, horizontal offset]
	comboidRight: "visiblecomboRight", //ID of div containing floating combo
	comboidLeft: "visiblecomboLeft", //ID of div containing floating combo

////////Stop editing past here///////////////////

	

	floatcomboRight:function(){
	var docElement=(document.compatMode=='CSS1Compat')? document.documentElement: document.body
	if (this.locationRight[0]=="top")
		this.comboref.style.top=0+this.addoffsetRight[0]+"px"
	else if (this.locationRight[0]=="bottom")
		this.comboref.style.bottom=0+this.addoffsetRight[0]+"px"
	if (this.locationRight[1]=="left")
		this.comboref.style.left=0+this.addoffsetRight[1]+"px"
	else if (this.locationRight[1]=="right")
		this.comboref.style.right=0+this.addoffsetRight[1]+"px"
	},
	floatcomboLeft:function(){
	var docElement=(document.compatMode=='CSS1Compat')? document.documentElement: document.body
	if (this.locationLeft[0]=="top")
		this.comboref.style.top=0+this.addoffsetLeft[0]+"px"
	else if (this.locationLeft[0]=="bottom")
		this.comboref.style.bottom=0+this.addoffsetLeft[0]+"px"
	if (this.locationLeft[1]=="left")
		this.comboref.style.left=0+this.addoffsetLeft[1]+"px"
	else if (this.locationLeft[1]=="right")
		this.comboref.style.right=0+this.addoffsetLeft[1]+"px"
		
	},

	init:function(){
	this.comboref=document.getElementById(this.comboidRight)
	this.comboref.style.visibility="visible"
	this.floatcomboRight()
	this.comboref=document.getElementById(this.comboidLeft)
	this.comboref.style.visibility="visible"
	this.floatcomboLeft()
	}
}


if (window.addEventListener)
window.addEventListener("load", function(){alwayscombo.init()}, false)
else if (window.attachEvent)
window.attachEvent("onload", function(){alwayscombo.init()})

