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" /></a>'
	this.content='<img align="absbottom" border="0" src="http://forum.rastgeleavci.com/dikkat.gif" width="16" height="16">\
 Üye girişi yapmadınız veya kayıtlı kullanıcı değilsiniz, Forumun tüm özelliklerini kullanmak için\
 <a href="login_user.asp?returnURL=">Giriş</a> yapın\
 veya isterseniz <a href="registration_rules.asp?FID=0">Üyelik</a> için tıklayınız.'
}

informationbar.prototype.setContent=function(data){
	this.content=this.content+data
	document.write('<div id="informationbar" style="bottom: -500px">'+this.content+'</div>')
	
}

informationbar.prototype.animatetoview=function(){
	var barinstance=this
	if (parseInt(this.barref.style.bottom)<0){
		this.barref.style.bottom=parseInt(this.barref.style.bottom)+2+"px"
		setTimeout(function(){barinstance.animatetoview()}, 50)
	}
	else{
		if (document.all && !window.XMLHttpRequest)
		this.barref.style.setExpression("Bottom", 'document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+"px" : body.scrollTop+"px"')
	else
		this.barref.style.bottom=0
	}
}

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=parseInt(this.barref.offsetHeight)
		this.barref.style.bottom=this.barheight*(-1)+"px"
		this.animatetoview()
	}
}

window.onunload=function(){
	this.barref=null
}


function informationbaru(){
	this.displayfreq="always"
	this.content='<a><img border="0" src="http://forum.rastgeleavci.com/dikkat.gif" width="16" height="16"> Sayın Ziyaretçimiz, Kayıt olur iken açılan penceredeki uyarıyı dikkate alınız.\
	 Eposta adresi geçersiz olanların üyelik işlemi onaylanmamaktadır.</a>'
}

informationbaru.prototype.setContent=function(data){
	this.content=this.content+data
	document.write('<div id="informationbaru" style="top: -100px">'+this.content+'</div>')
	
}

informationbaru.prototype.animatetoview=function(){
	var barinstance=this
	if (parseInt(this.barref.style.top)<0){
		this.barref.style.top=parseInt(this.barref.style.top)+2+"px"
		setTimeout(function(){barinstance.animatetoview()}, 50)
	}
	else{
		if (document.all && !window.XMLHttpRequest)
		this.barref.style.setExpression("top", 'document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+"px" : body.scrollTop+"px"')
	else
		this.barref.style.top=0
	}
}

informationbaru.close=function(){
	document.getElementById("informationbaru").style.display="none"
	if (this.displayfreq=="session")
		document.cookie="infobarshown=1;path=/"
}

informationbaru.prototype.setfrequency=function(type){
	this.displayfreq=type
}

informationbaru.prototype.initialize=function(){
	if (this.displayfreq=="session" && document.cookie.indexOf("infobarshown")==-1 || this.displayfreq=="always"){
		this.barref=document.getElementById("informationbaru")
		this.barheight=parseInt(this.barref.offsetHeight)
		this.barref.style.top=this.barheight*(-1)+"px"
		this.animatetoview()
	}
}

window.onunload=function(){
	this.barref=null
}