function create() {
        this.width = ''
        this.height = ''
        this.src = ''
        this.border = ''
       
}
ads = new Array()
for(var i=1; i<=8; i++) { ads[i] = new create() }

ads[1].width = "496"
ads[1].height = "56"
ads[1].src = "http://www.gelsenkirchen.de/include/headerbilder/header1.jpg"
ads[1].border = "0"

ads[2].width = "496"
ads[2].height = "56"
ads[2].src = "http://www.gelsenkirchen.de/include/headerbilder/header2.jpg"
ads[2].border = "0"

ads[3].width = "496"
ads[3].height = "56"
ads[3].src = "http://www.gelsenkirchen.de/include/headerbilder/header3.jpg"
ads[3].border = "0"

ads[4].width = "496"
ads[4].height = "56"
ads[4].src = "http://www.gelsenkirchen.de/include/headerbilder/header4.jpg"
ads[4].border = "0"

ads[5].width = "496"
ads[5].height = "56"
ads[5].src = "http://www.gelsenkirchen.de/include/headerbilder/header5.jpg"
ads[5].border = "0"

ads[6].width = "496"
ads[6].height = "56"
ads[6].src = "http://www.gelsenkirchen.de/include/headerbilder/header6.jpg"
ads[6].border = "0"

ads[7].width = "496"
ads[7].height = "56"
ads[7].src = "http://www.gelsenkirchen.de/include/headerbilder/header7.jpg"
ads[7].border = "0"

ads[8].width = "496"
ads[8].height = "56"
ads[8].src = "http://www.gelsenkirchen.de/include/headerbilder/header8.jpg"
ads[8].border = "0"


var n = Math.random() + ''
n = parseInt(n.charAt(8))
if(n >8) {
        n = n -8
}
else if(n==0) {
        n = n + 8
}
n += ""

var image = ads[n]
var ad = ""
ad += '<a href=http://fotogalerie.gelsen.net/gallery/index.php?action=visitorShowPicture&category=69&album=109 target=_blank><img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border
ad += '\n></a>'
















var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0

if(ns){doc = "document."; sty = ""}
if(ie){doc = "document.all."; sty = ".style"}



var initialize = 0
var Ex, Ey, topColor, subColor, ContentInfo


if(ie){
Ex = "event.x-180"
Ey = "event.y-420"

topColor = "#00008B"  //#808080
subColor = "#FFFFFF"  //#C0C0C0
}

if(ns){
Ex = "e.pageX";
Ey = "e.pageY";
window.captureEvents(Event.MOUSEMOVE);
window.onmousemove=overhere;

topColor = "#00008B"  //#808080
subColor = "#FFFFFF"
}



function MoveToolTip(layerName, FromTop, FromLeft, e){
if(ie){eval(doc + layerName + sty + ".top = "  + (eval(FromTop) + document.body.scrollTop))}
if(ns){eval(doc + layerName + sty + ".top = "  +  eval(FromTop))}
eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15));
}

function ReplaceContent(layerName){

if(ie){document.all[layerName].innerHTML = ContentInfo;}


if(ns){

with(document.layers[layerName].document)
{
   open();
   write(ContentInfo);
   close();
}

}


}



function Activate(){initialize=1}
function deActivate(){initialize=0}


function overhere(e){
if(initialize){

MoveToolTip("ToolTip", Ey, Ex, e)
eval(doc + "ToolTip" + sty + ".visibility = 'visible'")
}

else{
MoveToolTip("ToolTip",0,0)
eval(doc + "ToolTip" + sty + ".visibility = 'hidden'")
}


}

function EnterContent(layerName, TTitle, TContent){

         var jetzt = new Date();
         var jahr = jetzt.getYear();
         var min = jetzt.getMinutes();
         var sek = jetzt.getSeconds();
         var std = jetzt.getHours();
         var DreissigJahre = Date.parse("Tue, 1 Jan "+jahr+" "+std+":"+min+":"+sek+" GMT");


Bild='<img src="'+TContent+'?'+DreissigJahre+'" width="176" height="144" border="1">';

ContentInfo = '<table border="0" width="150" cellspacing="0" cellpadding="0">'+
'<tr><td width="100%" bgcolor="#000000">'+

'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+
'<tr><td width="100%" bgcolor='+topColor+'>'+

'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
'<tr><td width="100%">'+

'<font class="tooltiptitle"><b>'+TTitle+'</b></font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+

'<tr><td width="100%" bgcolor='+subColor+'>'+

'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+

'<tr><td width="100%">'+

'<font class="tooltipcontent">'+Bild+'</font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table>';


ReplaceContent(layerName)

}
function EnterContenta(layerName, TTitle, TContent, TContenta){

         var jetzt = new Date();
         var jahr = jetzt.getYear();
         var min = jetzt.getMinutes();
         var sek = jetzt.getSeconds();
         var std = jetzt.getHours();
         var DreissigJahre = Date.parse("Tue, 1 Jan "+jahr+" "+std+":"+min+":"+sek+" GMT");


Bild='<img src="'+TContent+'?'+DreissigJahre+'" width="176" height="144" border="1">';
Bilda='<img src="'+TContenta+'?'+DreissigJahre+'" width="176" height="144" border="1">';

ContentInfo = '<table border="0" width="150" cellspacing="0" cellpadding="0">'+
'<tr><td width="100%" bgcolor="#000000">'+

'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+
'<tr><td width="100%" bgcolor='+topColor+'>'+

'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
'<tr><td width="100%">'+

'<font class="tooltiptitle"><b>'+TTitle+'</b></font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+

'<tr><td width="100%" bgcolor='+subColor+'>'+

'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+

'<tr><td width="100%">'+

'<font class="tooltipcontent">'+Bild+'<br>'+Bilda+'</font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table>';


ReplaceContent(layerName)

}

function open_win(filename, winname,width,height,left,top)
{
	open_window(filename,winname,"width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ",resize=no,scrollbars=no,menubar=no,directories=no");
}
		
function open_window(filename,winname,params) {
	handle=window.open("", winname, params);
	handle.location.href=filename;
	window.handle.document.close();
}		



function fenster_veran(){
 	window.open("http://www.elport.de/servlet/page?_pageid=3838&_dad=elport&_schema=ELPORT&stadt_sel=gelsenkirchen&stadt=gelsenkirchen2&modus=search", "FensterName" ,"height=550,width=769,menubar,scrollbars,toolbar")
	}
	function fenster_buli(){
 	window.open("http://bundesliga.gelsen.net/sp/game/index.php?design=sp_ge", "FensterName" ,"height=700,width=900,menubar,scrollbars,toolbar")
	}
	function fenster_polizei(){
 	window.open("http://www.elport.de/servlet/page?_pageid=3844&_dad=elport&_schema=ELPORT&stadt_sel=gelsenkirchen&stadt=polizei_gelsenkirchen2&id_kat=100461&von=1&max=5.0", "FensterName" ,"height=550,width=769,menubar,scrollbars,toolbar")
	}
	
	function fenster_sport(){
 	window.open("http://www.elport.de/servlet/page?_pageid=3846&_dad=elport&_schema=ELPORT&ort=Gelsenkirchen&stadt_sel=Gelsenkirchen,&id_kat=100940&kat_root=100940&stadt=sport_gelsenkirchen2&zeit=4", "FensterName" ,"height=550,width=769,menubar,scrollbars,toolbar")
	}
	
	function fenster_wirtschaft(){
 	window.open("http://www.elport.de/servlet/page?_pageid=3840&_dad=elport&_schema=ELPORT&stadt_sel=Gelsenkirchen,&id_kat=100360&kat_root=100360&stadt=wirtschaft_gelsenkirchen2&zeit=4", "FensterName" ,"height=550,width=769,menubar,scrollbars,toolbar")
	}
                function fenster_veran_frauen(){
 	window.open("http://www.elport.de/servlet/page?_pageid=3838&_dad=elport&_schema=ELPORT&12636_VERANSTALTUNGEN_1395.modus=search&stadt=gelsenkirchen2&stadt_sel=gelsenkirchen&katfield=300066&vafield=-1&vofield=-1&s_datum_von=&s_datum_bis=&s_suchwort=&exe=1&modus=search&s_anzahl_von=1&s_anzahl_bis=5&aktion=&tage=100", "FensterName" ,"height=550,width=769,menubar,scrollbars,toolbar")
	}
                 function fenster_veran_senioren(){
 	window.open("http://www.elport.de/servlet/page?_pageid=3838&_dad=elport&_schema=ELPORT&12636_VERANSTALTUNGEN_1395.modus=search&stadt=gelsenkirchen2&stadt_sel=gelsenkirchen&katfield=100763&vafield=-1&vofield=-1&s_datum_von=&s_datum_bis=&s_suchwort=&exe=1&modus=search&s_anzahl_von=1&s_anzahl_bis=5&aktion=&tage=100", "FensterName" ,"height=550,width=769,menubar,scrollbars,toolbar")
	}
                function plan(){
                window.open("http://geo.gkd-el.de/Stadtplan/index.jsp", "FensterName", "height=650,width=800,menubar,scrollbars,toolbar,resizable")
                }
                function gastro(){
 	window.open("http://www.elport.de/servlet/page?_pageid=3842&_dad=elport&_schema=ELPORT&stadt_sel=gelsenkirchen&stadt=gelsenkirchen2", "FensterName" ,"height=550,width=769,menubar,scrollbars,toolbar")
	}
                function fussball_rang(){
                window.open("http://wombat.elport.de/tototipp/platzsuche.html", "FensterName" ,"height=480,width=600")
	}
                function fussball_tipp(){
                window.open("http://wombat.elport.de/cgi-bin/auth.pl?file=tipform.pl", "FensterName" ,"height=480,width=600")
	}
                function immo(){
                window.open("http://www.immopool.de/asp/exkladr.asp?nr=159918&exurl=/ASP/Immo/Obj/ImmoAusw.asp?AnbNr=0%26LandNr=004005005013000000", "FensterName" ,"height=600,width=565,menubar,scrollbars,toolbar")
	}
function fenster_fotogal(){
 	window.open("http://fotogalerie.gelsen.net", "FensterName" ,"height=700,width=900,menubar,scrollbars,toolbar")
	}
function fenster_fotogal_dia(){
 	window.open("http://fotogalerie.gelsen.net/gallery/index.php?action=slideShow&albumname=Stadtansichten&category=69&album=69", "FensterName" ,"height=700,width=900,menubar,scrollbars,toolbar")
	}
                 function advent() {
	window.open("http://www.gelsenkirchen.de/Adventskalender/index.html", "FensterName" ,"height=757,width=935,menubar,toolbar")
	}                
function advent_sp() {
	window.open("http://www.gelsenkirchen.de/Adventskalender/index_sp.html", "FensterName" ,"height=757,width=1006,menubar,toolbar")
	}



var image_frame;
function openImageFrame(width,height,bild_location){
  x=screen.availWidth-width-10; 
  image_frame=window.open("","image","height="+height+",width="+width+",location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no,left="+x+",top=0");
  image_frame.document.open();
  image_frame.document.writeln("<body marginheight='0' leftmargin='0' topmargin='0' marginwidth='0' >");
  image_frame.document.writeln("<img name='bild' src='"+bild_location+"' border='0' alt=''>");
  image_frame.document.writeln("</body>");
  image_frame.document.close();
  image_frame.resizeTo(width,height);
  image_frame.focus();  
  return false;
 }   


var image_frame2;
function openImageFrame2(width,height,bild_location){
  image_frame2=window.open("lh","image","height="+height+",width="+width+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no,directories=no,");
  image_frame2.document.open();
  image_frame2.document.writeln("<body marginheight='0' leftmargin='0' topmargin='0' marginwidth='0' scroll=no >");
  image_frame2.document.writeln("<img src='"+bild_location+"' border='0' alt=''>");
  image_frame2.document.writeln("</body>");
  image_frame2.document.close();
  image_frame2.resizeTo(width+13,height+32);
  image_frame2.focus();  
  return false;
 }


