//Script für PullDown Menüs
function surfto(form) {
var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != "0") {
location=form.select1.options[myindex].value;}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function pop (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Pop','toolbar=1,location=0,status=0,menubar=1,resizable=yes,scrollbars=1,height=520,width=475,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Pop','toolbar=1,location=0,status=0,menubar=1,resizable=yes,scrollbars=1,height=500,width=475,top=0,left=0');
		mini.focus();	
	}
}

function popHomepage (){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open('http://www.brandenburgs.de/popup/index.html','PopHomepage','toolbar=0,location=0,status=0,menubar=0,resizable=yes,scrollbars=0,height=597,width=850,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open('http://www.brandenburgs.de/popup/index.html','PopHomepage','toolbar=0,location=0,status=0,menubar=0,resizable=yes,scrollbars=0,height=597,width=850,top=0,left=0');
		mini.focus();	
	}
}

function zoom (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'win_','toolbar=0,location=0,directories=0,status=0,menubar=0,menubar=no, scrollbars=YES,scrollbars=1,resizable=no,copyhistory=0,height=515,width=600,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'win_','toolbar=0,location=0,directories=0,status=0,menubar=0,menubar=no, scrollbars=YES,scrollbars=1,resizable=no,copyhistory=0,height=520,width=600,top=0,left=0');
		mini.focus();	
	}
}

function sitemap (dateiname){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(dateiname,'sitemap','toolbar=yes,location=no,status=no,menubar=yes,resizable=no,scrollbars=yes,height=520,width=750,top=0,left=0');
    	mini.focus();
	}
	else{
		mini=window.open(dateiname,'sitemap','toolbar=1,location=0,status=0,menubar=1,resizable=no,scrollbars=1,height=500,width=750,top=0,left=0');
    	mini.focus();	
	}
}

function makeRemote(dateiname) {
remote = window.open("","remotewin",'toolbar=0,location=0,status=0,menubar=0,resizable=yes,scrollbars=1,height=520,width=790,top=0,left=0');
remote.location.href = dateiname
if (remote.opener == null) remote.opener = window;
remote.opener.name = "opener";
}
function go(url) {
opener.location.href = url;
}



var i=0, sw=screen.width*80/100, sh=screen.height*100/100;
function resize() {
if (navigator.appName == 'Netscape') i=0;
nw = 170 + ((document.closeButton.width > document.articleImage_1.width) ? document.closeButton.width : document.articleImage_1.width);
nh = document.articleImage_1.height + 235 - i;

if(nw>sw) nw = sw;
if(nh>sh) nh = sh;
window.resizeTo(nw, nh);
nx = screen.width/2 - nw/2;
ny = screen.height/2 - nh/2;
window.moveTo(nx, ny);
}



function surftonav(form) {
    var myindex=form.menue.selectedIndex
    location=form.menue.options[myindex].value;
}
function surftoquick(form) {
    var myindex=form.quick.selectedIndex
    location=form.quick.options[myindex].value;
}
function surftokategorie(form) {
    var myindex=form.menue.selectedIndex
    location=form.menue.options[myindex].value;
}
