/**
 * @author Sebastian
 */


function systeminfo(){

	this.displayfreq="always"
    document.write('<link href="systeminfo.css" rel="stylesheet" type="text/css" media="screen" />')
	this.inhalt='<a href="javascript:systeminfo.close()"><img src="close.gif" style="width: 14px; height: 14px; float: right; border: 0; margin-right: 10px; margin-top:5px;" /></a>' 
	 
	
	
}


systeminfo.prototype.setInhalt = function(data){
	this.inhalt = this.inhalt+data
	document.write('<div id="systeminfo" style="bottom:-120px; right:5px ">' + this.inhalt + '</div>')
	
}

systeminfo.prototype.animatetoview = function(){
	var sysinstance=this
	if (parseInt(this.sysinforef.style.bottom) < 0) {
		this.sysinforef.style.bottom = parseInt(this.sysinforef.style.bottom) + 5 + "px"
		setTimeout(function(){sysinstance.animatetoview()}, 30)
		setTimeout(function(){systeminfo.close()}, 14000)
	}


}



systeminfo.close=function(){
	document.getElementById("systeminfo").style.display="none"
	if (this.displayfreq=="session")
		document.cookie="systeminfoshown=1;path=/"
		
}

systeminfo.prototype.initialize = function(){
	//if (setInhalt < null) {
	this.sysinforef=document.getElementById("systeminfo")
	this.sysinfoheight=parseInt(this.sysinforef.offsetHeight)
	this.sysinforef.style.bottom=this.sysinfoheight*(-2) +"px"
	this.animatetoview()
}
window.onunload=function(){
	this.sysinforef=null
}


var sysinfo=new systeminfo()
sysinfo.setInhalt('<br /><br />Neu ! Jetzt auch <b>Mobile</b> auf dem Handy ! <br /> <b style="font-size:14px">Auf <u>Ficksaft.net</u> surfen </b> !!')
sysinfo.initialize()

