/***********************************************
* Animated Information Bar- by JavaScript Kit (www.javascriptkit.com)
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
***********************************************/
function informationbar(){
	this.displayfreq="always"
	this.content='<a href="javascript:informationbar.close()"><img src="close.gif" style="width: 14px; height: 14px; float: right; border: 0; margin-right: 5px" />CLOSE</a>'
}

informationbar.prototype.setContent=function(data){
	this.content=data
	document.write('<div id="informationbar" style="top: 0px">'+this.content+'</div>')
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

informationbar.prototype.animatetoview=function(){
	var barinstance=this
	{
		if (document.all && !window.XMLHttpRequest)
		{
		this.barref.style.setExpression("top", window.innerHeight-this.height)
		this.barref.style.setExpression("left", window.innerWidth-this.width)
		}
	   else
	   {
		this.barref.style.top=(window.innerHeight-this.height)+"px"
		this.barref.style.left=(window.innerWidth-this.width)+"px"
	   }	
	}
}

informationbar.close=function(){
	document.getElementById("informationbar").style.display="none"
	if (this.displayfreq=="session")
		document.cookie="infobarshown=1;path=/"
}

informationbar.prototype.setfrequency=function(type){
	this.displayfreq=type
}

informationbar.prototype.initialize=function(){
	if (this.displayfreq=="session" && document.cookie.indexOf("infobarshown")==-1 || this.displayfreq=="always"){
		this.barref=document.getElementById("informationbar")
		this.barheight=40+2//parseInt(this.barref.offsetHeight)
		this.barref.style.top=window.innerHeight-this.barheight+"px"//this.barheight*(10)+"px"
		this.barwidth=parseInt(this.barref.offsetWidth)
		this.barref.style.left=((window.innerWidth-this.barwidth) / 2)-8+"px"
		this.animatetoview()
	}
}

window.onunload=function(){
	this.barref=null
}
