function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value) thefield.value = "";
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function int_only(value) {
	value = parseInt(value);
	if(value<0) value = value * -1;
	return (value) ? value+"" : "";
}

function BookMark_Page() {
	if(document.all) {
		window.external.AddFavorite(this.location,document.title);
	} else {
		alert("To bookmark page use (Ctrl+D)");
	}
}

/*
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1;
var ns6=document.getElementById&&!document.all;
var ns4=document.layers;
*/
var ie4 = document.all ? 1 : 0;
var ns4 = document.layers ? 1 : 0;
var ns6 = window.netscape ? 1 : 0;

//alert("ie4: "+ie4+"\nns4: "+ns4+"\nns6: "+ns6);

function addText(id,text) {
	
	menuobj = (ie4) ? document.all[id] : (ns6 ? document.getElementById(id) : (ns4 ? document.layers[id] : ''));
	
	if(ie4 || ns6) {
		menuobj.innerHTML=text;
	} else {
		menuobj.document.open();
		menuobj.document.write(text);
		menuobj.document.close();
	}
	
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
function app_getwinsize() {var app_ww, app_wh
  if (typeof(window.innerWidth) == 'number') {
    app_ww = window.innerWidth; app_wh = window.innerHeight;
  } else if (document.documentElement.clientHeight) {
    app_ww = document.documentElement.clientWidth; app_wh = document.documentElement.clientHeight;
  } else {
    app_ww = document.body.clientWidth; app_wh = document.body.clientHeight;
  }  document.getElementById('container').style.marginTop = max(0, Math.round((app_wh-570)/2)) + 'px';
}function max(a,b) { return (a>b)?a:b; }
function min(a,b) { return (a<b)?a:b; }var spruch = new Array("Alles, was zu dumm ist, um gesprochen zu werden, wird gesungen. <em>Voltaire</em>","What is once done out of necessity will later be imitated for amusement.","Wer soll das kaufen? <em>Michael B. Kersting</em>","A hit is about as relevant as getting a nice pair of shoes. <em>Tim Goldsworthy</em>","Musik als Tr&auml;ger von Ideen, es wird immer weitergeh'n. <em>Kraftwerk</em>","Ein einziger sch&ouml;ner Klang ist sch&ouml;ner als langes Gerede. <em>Joseph Joubert</em>","The world is evil. But there's music.","The planet has music for those who listen.","Superflausch yourself! <em>Frankie Patina</em>","Der sch&ouml;nste Schmuck einer Frau sind ihre Knie hinter ihren Ohren.  <em>Liz Taylor</em>","&Uuml;ber Musik zu sprechen ist wie &uuml;ber Architektur zu tanzen. <em>Steve Martin</em>","Bet I'll have you naked by the end of this song. <em>Justin Timberlake</em>","I think my whole generation's mission is to kill the cliche. <em>Beck</em>","You can cage the singer but not the song. <em>Harry Belafonte</em>","To shake your rump is to be environmentally aware. <em>David Byrne</em>","Drama if I sing, drama if I don't sing. What do you do? <em>Montserrat Caballe</em>","All I wanna do is a zoom zoom zoom with a boom boom. <em>Wrecks'N'Effect</em>","I never wanted to be famous. I only wanted to be great. <em>Ray Charles</em>","It's so sweet, I feel like my teeth are rotting when I listen to the radio. <em>Bono</em>","Fr&uuml;her bin ich getrampt, heute werd' ich gespamt. <em>JayJay</em>","Don't play what's there, play what's not there. <em>Miles Davis</em>","The radio makes hideous sounds. <em>Bob Dylan</em>","The only thing better than singing is more singing. <em>Ella Fitzgerald</em>","I don't care much about music. What I like is sounds. <em>Dizzy Gillespie</em>","I can do anything. In GQ, I appeared as a man. <em>Boy George</em>","The time to hesitate is through. <em>Jim Morrison</em>","If you don't live it, it won't come out your horn. <em>Charlie Parker</em>","Reality is wrong. Dreams are for real. <em>Tupac Shakur</em>","I did not have implants, I just had a growth spurt. <em>Britney Spears</em>","You just pick up a chord, go twang, and you've got music. <em>Sid Vicious</em>","All the good music has already been written by people with wigs and stuff. <em>Frank Zappa</em>","All music is folk music. I ain't never heard a horse sing a song. <em>Louis Armstrong</em>","Music is love in search of a word. <em>Sidney Lanier</em>","There is nothing worse than a sharp image of a fuzzy concept. <em>Ansel Adams</em>","Music is the shorthand of emotion. <em>Leo Tolstoy</em>");var Bild = new Array();
Bild[0] = new Image();
Bild[0].src = "http://superflausch.de/img/user/hen/newmood1.jpg";
Bild[1] = new Image();
Bild[1].src = "http://superflausch.de/img/user/hen/newmood2.jpg";
Bild[2] = new Image();
Bild[2].src = "http://superflausch.de/img/user/hen/newmood3.jpg";
Bild[3] = new Image();
Bild[3].src = "http://superflausch.de/img/user/hen/newmood4.jpg";
Bild[4] = new Image();
Bild[4].src = "http://superflausch.de/img/user/hen/newmood5.jpg";Bild[5] = new Image();
Bild[5].src = "http://superflausch.de/img/user/hen/newmood6.jpg";Bild[6] = new Image();
Bild[6].src = "http://superflausch.de/img/user/hen/newmood7.jpg";function spruch_weit() {	var g = Math.round(Math.random()*33);	document.getElementById('prosa').innerHTML = spruch[g];	window.setTimeout("spruch_weit()", 12000);
}function bild_wechsel() {	var e = Math.round(Math.random()*5);	document.images[1].src = Bild[e].src;	window.setTimeout("bild_wechsel()", 8000);
}function popup(id) {	document.getElementById("main").style.backgroundImage ="url(http://superflausch.de/img/user/hen/bg-sound-ohne.jpg)"; 	document.getElementById(id).style.display = 'block';
}function popdown(id) {	document.getElementById("main").style.backgroundImage = "url(http://superflausch.de/img/user/hen/bg-sound.jpg)";	document.getElementById(id).style.display = 'none';
}
