// Statusleiste
self.defaultStatus = 'Willkommen bei der Stadt Melle';

function show(text){
myText = text;
 setTimeout("window.status = myText", 0);
 return true;
}

// Adress-Datenblatt
function adresse(adresse_id) {
  var breite=350;
  var hoehe=450; 
  var positionX=((screen.availWidth / 2) - breite / 2); 
  var positionY=((screen.availHeight / 2) - hoehe / 2); 
  var url='http://www.melle.info/ap_static/print_adresse.cfm?adresse_id='+adresse_id;
  pop=window.open('','adresse','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,fullscreen=0,width='+breite+',height='+hoehe+',top=10000,left=10000'); 
  pop.resizeTo(breite,hoehe); 
  pop.moveTo(positionX,positionY); 
  pop.location=url;
}

// GIS-Link ALT
/*
function open_ortsplan_adresse(str, nr, erw, gem)	{
	url =
"http://gis2.melle.info/proStrassenWebService/index.aspx?str=" + str + "&nr="
+ nr + "&erw=" + erw + "&gem=" + gem;
	gis = window.open (url,"","resizable=yes");
}
*/

// GIS-Link
function open_ortsplan_adresse(str, nr, erw, gem)
{
	url = "http://gis2.melle.info/promegisMAPnet2006/default.aspx?adress_suche=true&str=" + str + "&nr=" + nr + "&erw=" + erw + "&gem=" + gem;
	gis = window.open (url,"","resizable=no");
}

// Bebauungsplaene
function open_bpl_daten() {
  url='http://gis2.melle.info/bpl.htm';
  gis=window.open(url,'',resizable='no');
}

// Stadtplan
function stadtplanstatic() {
	url = "http://gis2.melle.info/promegisMAPnet2006/";
	gis = window.open (url,"","resizable=yes");
}

// Katalog der Stadtbibliothek
function katalog_popup() {
  window.open('https://katalog.stadtbibliothek-melle.de/alswww2.dll/APS_OPAC&Style=OpacB','katalog','width=750,height=500,locationbar=yes,menubar=no,toolbar=yes,status=no,scrollbars=1');
}

// Voting
function voting_results() {
  window.open('http://www.melle.info/ap_static/voting_results.cfm?o_lang_id=1','voting_results','width=600,height=300,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=1');
}

// Voting blank
function voting_blank() {
  window.open('http://www.melle.info/ap_static/leer.htm','voting_results','width=600,height=300,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=1');
}

// WebCam
function webcam() {
window.open('http://www.melle.info/ap_static/webcam.cfm','webcam','width=420,height=400,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=0');
}

// Melle-Song
function song() {
window.open('http://www.melle.info/ap_static/song.cfm','song','width=570,height=260,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=0');
}

// Virtuelles Rathaus
function rathaus() {
  var breite=1020;
  var hoehe=655; 
  var positionX=0; 
  var positionY=0; 
  pop=window.open('http://rathaus.melle.info','rathaus','toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,fullscreen=0,width='+breite+',height='+hoehe+',top='+positionX+',left='+positionY); 
}

// Cassy direkt
function cassy_direct() {
  var breite=1020;
  var hoehe=655; 
  var positionX=((screen.availWidth / 2) - breite / 2); 
  var positionY=((screen.availHeight / 2) - hoehe / 2); 
  pop=window.open('http://rathaus.melle.info','rathaus','toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,fullscreen=0,width='+breite+',height='+hoehe+',top='+positionX+',left='+positionY); 
}

// Erlaeuterungen zum Mietpreisspiegel
function mietpreis() {
  window.open('go/058DCA2D50BAEA7AF934D5D58B4C1BE4/?view=popup','mietpreis','width=575,height=450,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=1');
}

// Gewerbe-Foto
function show_pic(item) {
  window.open('http://www.melle.info/ap_static/show_pic.cfm?uuid='+item,'show_pic','width=440,height=380,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=1');
}

// Gewerbe-Registrierung
function reg_user() {
  window.open('http://www.melle.info/ap_static/reg_user.cfm','reg_user','width=500,height=450,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=1');
}

// Gewerbe-Anfrage
function immo_anfrage(item) {
  window.open('http://www.melle.info/ap_static/immo_anfrage.cfm?obj_id='+item,'immo_anfrage','width=500,height=450,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=1');
}

// Veranstaltungskalender
function show_event(item) {
  window.open('http://www.melle.info/ap_static/event.cfm?obj_id='+item+'&o_lang_id=1','event','width=500,height=400,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=1');
}

// BuergerAktiv
function meldung() {
  window.open('http://www.melle.info/ap_static/buerger_aktiv.cfm','meldung','width=575,height=450,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=1');
}

// Flachennutzungsplan
function open_stellungnahme()
{
  url = "http://gis2.melle.info/proFNPWebApplication/default.asp";
  x = parseInt(screen.availWidth);
  y = parseInt(screen.availHeight);
  gis = window.open (url,"","width=" + x + ",height=" + y + ",scrollbars,resizable=yes");
  gis.opener = self.top;
}

// Schulsuche
function openschule() {
  url = "http://gis2.melle.info/proSISSchule/default.asp";
  x = parseInt(screen.availWidth);
  y = parseInt(screen.availHeight);
  gis = window.open (url,"","width=" + x + ",height=" + y + ",scrollbars,resizable=yes"); 
  gis.opener = self.top;
}

// Verwaltung
function person(famname) {
window.open('http://www.melle.info/ap_static/person.cfm?o_lang_id=1&famname='+famname,'person','width=180,height=225,locationbar=no,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=0');
}

// Sprechzeiten
function sprechz() {
window.open('go/9B078D6850BAEA7AF9DDF2EE4DEC3525/?view=popup','sprechz','width=575,height=405,locationbar=yes,menubar=no,toolbar=no,status=no,resizeable=no,scrollbars=1');
}

// Stadtplaene
function city() {
window.open('http://www.internetstadtplan.com/Melle/Melle-Stadt/mellein.html','city','width=780,height=480,locationbar=yes,menubar=yes,toolbar=yes,status=no,resizeable=no,scrollbars=1');
}
function melle1() {
window.open('http://www.internetstadtplan.com/Melle/melle1/melle1.html','city','width=780,height=480,locationbar=yes,menubar=yes,toolbar=yes,status=no,resizeable=no,scrollbars=1');
}
function melle2() {
window.open('http://www.internetstadtplan.com/Melle/melle2/melle2.html','city','width=780,height=480,locationbar=yes,menubar=yes,toolbar=yes,status=no,resizeable=no,scrollbars=1');
}
function melle3() {
window.open('http://www.internetstadtplan.com/Melle/melle3/melle3.html','city','width=780,height=480,locationbar=yes,menubar=yes,toolbar=yes,status=no,resizeable=no,scrollbars=1');
}

// Busfahrplan
function fahrplan() {
window.open('http://www.weser-ems-bus.de/web-bin/detect.exe/web-bin/query.exe/d?','fahrplan','width=780,height=480,locationbar=yes,menubar=yes,toolbar=yes,status=no,resizeable=no,scrollbars=1');
}

// Rechter Mausklick
/*
var text="© Stadt Melle";

if (document.layers){
    window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
    window.onmousedown=rightclick;
    window.onmouseup=rightclick;
    
    function rightclick(e) {
    if (e.which == 3) {
    alert(text);
    return false; 
    }
    else {
        return true; 
        }
    }
}

if (document.all){
    function click() {
    if (event.button==2) {
    alert(text)
    }
    
    if (event.button==3) {
    alert(text)}
    }
    document.onmousedown=click
}
*/