function Go(x)
{ if(x == "nothing"){
document.forms[0].reset();
document.forms[0].elements[0].blur();
return;}
else if(x == "end") top.location.href = parent.frames[1].location;
else
{ top.location.href = x;
document.forms[0].reset();
document.forms[0].elements[0].blur();}} 

iens6=document.all||document.getElementById
ns4=document.layers
var titleArray = new Array
titleArray[1]="<b><a href='http://www.magazin-nachtmensch.de/Cin.php'>[ Cineasten ]</a></b>"
titleArray[2]="<a href='http://www.magazin-nachtmensch.de/weggehen.php'><b>[ Weggehen ]</b></a>"
titleArray[3]="<a href='http://www.magazin-nachtmensch.de/lib.php'><b>[ Buch&CD ]</b></a>"
titleArray[4]="<a href='http://www.magazin-nachtmensch.de/gewinnportal.htm'><b>[ Win ]</b></a>"
titleArray[5]="<a href='http://www.magazin-nachtmensch.de/events.php'><b>[ Events ]</b></a>"
titleArray[6]="<a href='http://www.magazin-nachtmensch.de/poetry.htm'><b>[ Poetry ]</b></a>"
titleArray[7]="<b><a href='http://www.magazin-nachtmensch.de/intern.php'>[ Intern ]</a></b>"
titleArray[8]="<a href='http://www.magazin-nachtmensch.de/erw.htm'><b>[ Letztes ]</b></a>"
var linkArray = new Array
linkArray[1]="• <a href='http://www.magazin-nachtmensch.de/cin.php'>Kino Aktuell</a><br>"
linkArray[1]+="• <a href='http://www.magazin-nachtmensch.de/cinarchiv.htm'>Kino Archiv</a><br>"
linkArray[1]+="• <a href='http://www.magazin-nachtmensch.de/cin.php'>Video / DVD</a><br>"
linkArray[2]="• <a href='http://www.magazin-nachtmensch.de/partyindex.htm'>Party</a><br>"
linkArray[2]+="• <a href='http://www.magazin-nachtmensch.de/dis.htm'>Disco</a><br>"
linkArray[2]+="• <a href='http://www.magazin-nachtmensch.de/caf.htm'>Caf&eacute;</a><br>"
linkArray[2]+="• <a href=# >Kultur</a>"
linkArray[3]="• <a href='http://www.magazin-nachtmensch.de/lib.php'>Buch&CD</a>"
linkArray[4]="• <a href='http://www.magazin-nachtmensch.de/gewinn11a.html'>Gewinnspiel 1</a><br>"
linkArray[4]+="• <a href='http://www.magazin-nachtmensch.de/gewinn11b.html'>Gewinnspiel 2</a><br>"
linkArray[5]="• <a href='http://www.magazin-nachtmensch.de/events.php'>Events &Uuml;bersicht</a><br>"
linkArray[5]+="• <a href='http://partners.webmasterplan.com/click.asp?ref=73929&site=1800&type=text&tnb=2' target='Nachtmensch Medienpartner'  target='_top'>Events buchen (VVK)</a><br>"
linkArray[6]="• <a href='http://www.magazin-nachtmensch.de/poetry.htm'>Poetry</a><br>"
linkArray[7]="• <a href='http://www.magazin-nachtmensch.de/intern.php'>Kontakt</a><br>"
linkArray[7]+="• <a href='http://www.magazin-nachtmensch.de/newsletter.pl'>Newsletter</a><br>"
linkArray[7]+="• <a href='http://www.magazin-nachtmensch.de/jobs.htm'>Jobs</a><br>"
linkArray[7]+="• <a href='http://www.magazin-nachtmensch.de/imp.htm'>Impressum</a><br>"
linkArray[7]+="• <a href='http://www.webstar-media.de/gb_service/gbuch.php?gb_name=Nachtmensch'>G&auml;stebuch</a><br>"
linkArray[8]="• <a href='http://www.magazin-nachtmensch.de/erw.htm'>Erw&auml;hnenswert</a><br>"
linkArray[8]+="• <a href='http://www.magazin-nachtmensch.de/links.htm'>Links</a><br>"

var thename
var theobj
var thetext
var winHeight
var winWidth
var boxPosition
var headerColor
var tableColor
var timerID
var seconds=0
var x=0
var y=0
var offsetx = 2
var offsety = 2
if(ns4) {
	document.captureEvents(Event.MOUSEMOVE)
}
document.onmousemove=getXY

function buildText(value,tcolor,bcolor) {
text="<table width='"+(winWidth-4)+"' height='"+(winHeight-4)+"' border='0' bgcolor='"+tableColor+"' cellspacing='0' cellpadding=1>"
text+="<tr><td width='"+(winWidth-4)+"' height='20' align='center' valign='top' bgcolor='"+headerColor+"'>"
text+="<font face='arial,helvetica' color='"+tcolor+"' SIZE='-1'>"+titleArray[value]+"</font>"
text+="</td></tr>"
text+="<tr><td width='"+winWidth+"' align='left' valign='top'>"
text+="<font face='verdana,helvetica' color='"+bcolor+"' SIZE='-2'>"+linkArray[value]+"</font>"
text+="</td></tr></table>"
return text
}
function setObj(textelement,inwidth,inheight,boxpos,titlecolor,boxcolor,tfontcolor,bfontcolor) {
	clearTimeout(timerID)
	boxPosition=boxpos
	tableColor=boxcolor
	headerColor=titlecolor
	winWidth=inwidth
	winHeight=inheight
	thetext=buildText(textelement,tfontcolor,bfontcolor)
	if (boxPosition == "bottomR") { // Right
		x=x+offsetx
		y=y+offsety
	}
	if (boxPosition == "bottomL") { // Left
		x=x-(offsetx+2)-winWidth
		y=y-offsety
	}
	if (boxPosition == "top") { // Top
		x=x+offsetx-10
		y=y+offsety+3
	}
	if (boxPosition == "topL") { // Top
		x=x-(offsetx)-winWidth
		y=y+offsety-winHeight
	}
	if(iens6){
		thename = "viewer"
		theobj=document.getElementById? document.getElementById(thename):document.all.thename
		theobj.style.width=winWidth
		theobj.style.height=winHeight
		theobj.style.left=x
		theobj.style.top=y
			if(iens6&&document.all) {
				theobj.innerHTML = ""
				theobj.insertAdjacentHTML("BeforeEnd","<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=0><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
			}
			if(iens6&&!document.all) {
				theobj.innerHTML = ""
				theobj.innerHTML="<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=0><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>"
			}
	}
	if(ns4){
		thename = "nsviewer"
		theobj = eval("document."+thename)
		theobj.left=x
		theobj.top=y
		theobj.width=winWidth
		theobj.clip.width=winWidth
		theobj.height=winHeight
		theobj.clip.height=winHeight
		theobj.document.write("<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=0><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
		theobj.document.close()
	}
	viewIt()
}
function viewIt() {
		if(iens6) {
			theobj.style.visibility="visible"
		}
		if(ns4) {
			theobj.visibility = "visible"
		}
}
function stopIt() {
	if(iens6) {
		theobj.innerHTML = ""
		theobj.style.visibility="hidden"
	}
	if(ns4) {
		theobj.document.write("")
		theobj.document.close()
		theobj.visibility="hidden"
	}
}
function timer(sec) {
	seconds=parseInt(sec)
	if(seconds>0) {
		seconds--
		timerID=setTimeout("timer(seconds)",1000)
	}else{
		stopIt()
	}
}
function getXY(e) {
	if (ns4) {
		x=0
		y=0
		x=e.pageX; 
		y=e.pageY;
	}
	if (iens6&&document.all) {
		x=0
		y=0
		x=event.x; 
		y=event.y;
	}
	if (iens6&&!document.all) {
		x=0
		y=0
		x=e.pageX; 
		y=e.pageY;
	}
}
