<!--
//---------------------------------- Fenster öffnen ----------------------------------
function fenster(url, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  name='';
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';

  var pp = window.open(url, name, ',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str, 'pp');
  pp.moveTo((screen.availWidth - width) / 2,(screen.availHeight - height) / 2);
  pp.focus();
}

//---------------------------------- Downloadfenster ----------------------------------
function download(id)
{
  name='';
  width="400";
  height="150";
  toolbar_str = 0;
  menubar_str = 0;
  statusbar_str = 0;
  scrollbar_str = 0;
  resizable_str = 0;
  url = "download.html?id="+id;

  var pp = window.open(url, name, ',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str, 'pp');
  //pp.moveTo((screen.availWidth - width) / 2,(screen.availHeight - height) / 2);
  pp.focus();
}

//-------------------------------- Mouseover defenieren --------------------------------
 function rollon(a) {
 a.style.backgroundColor='#00D400';
 //a.style.border = '#FFFFFF solid 1px';
 a.style.cursor = 'hand';
 }	

 function rolloff(a) {
 a.style.backgroundColor='#008800';	
 //a.style.border = '#003399 solid 1px';
 }

//-------------------------------- Drucken (für Frames) --------------------------------
function druck() {
if(window.print){
parent.Hauptframe.focus();
parent.Hauptframe.print();
}
return;
}

//---------------------------------- Bookmark ----------------------------------
function addbookmark(){
var bookmarkurl=document.URL;
var bookmarktitle=document.title;
if (document.all) {
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}
}

//---------------------------------- Speichern ----------------------------------
var spr=true;
function doSaveAs(){
if (document.execCommand){
if (spr){document.execCommand("SaveAs");}
}
}

//---------------------------------- Senden ----------------------------------
function sendpage(infos)
{
if (infos==undefined||infos==""){
mail_str = "mailto:?subject= Empfehlung von Olvenstedt.de"
mail_str += "&body=Ihnen wurde die Seite \"" + document.title +"\" von Olvenstedt.de empfohlen. "
mail_str += "Hier geht es zur Seite: " + location.href + "";
location.href = mail_str;
}
else {
mail_str = "mailto:?subject= Empfehlung von Olvenstedt.de"
mail_str += "&body=Ihnen wurde die Seite \"" + document.title +"\" von Olvenstedt.de empfohlen. "
mail_str += "Hier geht es zur Seite: " + location.href + " Noch ein paar extra Informationen dazu: " + infos + " ";
location.href = mail_str;
}
}


//---------------------------------- Spam-Schutz ----------------------------------
function mail(code)
{
//kulturscheune@olvenstedt.de = 25921:17227:18837:17388:18676:18837:18354:18515:15939:16744:16261:18837:17710:16261:10304:17871:17388:18998:16261:17710:18515:18676:16261:16100:18676:7406:16100:16261
//aktuelles@olvenstedt.de = 60025:23765:26215:28420:28665:24745:26460:26460:24745:28175:15680:27195:26460:28910:24745:26950:28175:28420:24745:24500:28420:11270:24500:24745
//news@olvenstedt.de = 60025:26950:24745:29155:28175:15680:27195:26460:28910:24745:26950:28175:28420:24745:24500:28420:11270:24500:24745
//galerie@olvenstedt.de = 36481:19673:18527:20628:19291:21774:20055:19291:12224:21201:20628:22538:19291:21010:21965:22156:19291:19100:22156:8786:19100:19291
//links@olvenstedt.de = 36481:20628:20055:21010:20437:21965:12224:21201:20628:22538:19291:21010:21965:22156:19291:19100:22156:8786:19100:19291
//fehler@olvenstedt.de = 26569:16626:16463:16952:17604:16463:18582:10432:18093:17604:19234:16463:17930:18745:18908:16463:16300:18908:7498:16300:16463
//info@olvenstedt.de = 60025:25725:26950:24990:27195:15680:27195:26460:28910:24745:26950:28175:28420:24745:24500:28420:11270:24500:24745
//holger.stitz@olvenstedt.de = 57121:24856:26529:25812:24617:24139:27246:10994:27485:27724:25095:27724:29158:15296:26529:25812:28202:24139:26290:27485:27724:24139:23900:27724:10994:23900:24139


var ac=code.split(":");
var s="";
for(i=1;i<ac.length;++i){
s+=String.fromCharCode(Number(ac[i])/Math.sqrt(Number(ac[0])));
}
document.write('<a href="mailto:'+s+'">'+s+'</a>');
}


//---------------------------------- Jahr (nur im IE) ----------------------------------
function jahr()
{
d=new Date();
jahr=d.getYear()
document.write(jahr)
}

//-->
