<!--
var helpwin=null;
function help_check(pfad){
  helperwin=false;

  if (!helpwin) helperwin=true;
  else {
    if (helpwin.closed == true) helperwin=false;
  }
  if (helperwin==true) {
    if (confirm("Wollen Sie die Hilfe lesen?")) help(pfad);
  }
}

function help(pfad) {
  helpwin = window.open(pfad,'loop_help','width=610,height=500,scrollbars=yes,resizable=yes');
  helpwin.focus();
}

function button(n_form, n_submit){
  eval("document." + n_form + "." + n_submit + ".value=\"Bitte warten...\"");
  eval("document." + n_form + "." + n_submit + ".disabled");
}

function umlaut(key) {
  var numSelected = key.selectedIndex;
  if (numSelected != 0) {
    newtext = document.schreib_form.w_text.value;
    newtext = newtext + key.options[numSelected].value;
    document.schreib_form.w_text.value = newtext;
    key.selectedIndex = 0;
    document.schreib_form.w_text.focus();
  }
}

function archiv() {
  document.naviarchiv_form.s_volltext.value = document.navi_form.s_volltext.value;
}

function DisplayElement ( idname, displayValue ) {
  if (typeof idname == "string" ) idname = document.getElementById(idname);
  if (idname == null ) return;

  if ( displayValue == "table-row" && idname.tagName == "TR" && navigator.appName.indexOf("Explorer") != -1)
    displayValue = "block";
  
  idname.style.display = displayValue;
}

function linkon () {
  DisplayElement ( "linkrow", "table-row" );
  DisplayElement ( "linklink", "none" );
  DisplayElement ( "linklink2", "inline" );
}

function linkoff () {
  DisplayElement ( "linkrow", "none" );
  DisplayElement ( "linklink", "inline" );
  DisplayElement ( "linklink2", "none" );
}

function bildon () {
  DisplayElement ( "bildrow", "table-row" );
  DisplayElement ( "bildlink", "none" );
  DisplayElement ( "bildlink2", "inline" );
}

function bildoff () {
  DisplayElement ( "bildrow", "none" );
  DisplayElement ( "bildlink", "inline" );
  DisplayElement ( "bildlink2", "none" );
}

function umlauton () {
  DisplayElement ( "umlautrow", "table-row" );
  DisplayElement ( "umlautlink", "none" );
  DisplayElement ( "umlautlink2", "inline" );
}

function umlautoff () {
  DisplayElement ( "umlautrow", "none" );
  DisplayElement ( "umlautlink", "inline" );
  DisplayElement ( "umlautlink2", "none" );
}

function sicherung(){
  if (!confirm("Sind sie sich sicher?")) return false;
  return true;
}

function lanahoff(){
  Fenster = window.open('archiv/release/lanahoff/lanago.htm','lana','scrollbars=yes,width=600,height=500');
  Fenster.focus();
}

function sampler(){
  Fenster = window.open('archiv/release/sampler/loopmsx.htm','sampler','scrollbars=yes,width=460,height=440');
  Fenster.focus();
}

function textperi(){
  Fenster = window.open('archiv/release/textperi/textperi.htm','textperi','scrollbars=yes,width=640,height=480');
  Fenster.focus();
}

function bankturm(){
  Fenster = window.open('archiv/release/bankturm/btgo.htm','bankturm','scrollbars=yes,width=780,height=470');
  Fenster.focus();
}

function cafe(){
  Fenster = window.open('archiv/release/litcafe/litcafe.htm','litcafe','scrollbars=no,width=620,height=450');
  Fenster.focus();
}

function suna(){
  Fenster = window.open('archiv/release/suna/suna_go.htm','suna','scrollbars=yes,width=500,height=500');
  Fenster.focus();
}

function iloveyou(){
  Fenster = window.open('archiv/release/iloveyou/ily_set.htm','iloveyou','scrollbars=no,width=600,height=480');
  Fenster.focus();
}

function getdone(){
  Fenster = window.open('archiv/release/getdone/get_set.htm','getdone','scrollbars=no,width=650,height=500');
  Fenster.focus();
}

function glueck(){
  Fenster = window.open('archiv/release/annaluz/glueck_set.htm','glueck','scrollbars=no,width=680,height=520');
  Fenster.focus();
}

function lischke(){
  Fenster = window.open('archiv/release/lischke/lischke.htm','lischke','scrollbars=yes,width=500,height=520');
  Fenster.focus();
}

function zak(){
  Fenster = window.open('archiv/release/zak/zak_intro1.htm','zak','scrollbars=yes,width=560,height=560');
  Fenster.focus();
}

function arc_link(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
var x=1;
var y=1;
var maxx=400;
var maxy=600;
var maxz=100;
var counter=0;
var schritt=10;
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  }
  else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
function zoom(zoom_id, pic_id){
  var idobj=document.getElementById? document.getElementById(zoom_id) : document.all[zoom_id];
  var picobj=document.getElementById? document.getElementById(pic_id) : document.all[pic_id];
  idobj.style.width=x+"px";
  idobj.style.height=y+"px";
  idobj.style.top=(counter/2)+"%";
  idobj.style.left=(counter/2)+"%";
  picobj.width=x;
  picobj.height=y;
  idobj.style.filter="alpha(opacity="+counter+")";
  idobj.style.MozOpacity=counter/100;
  if(x < maxx) { x = x + (schritt/maxy*maxx); }
  if(y < maxy) { y = y + (schritt/maxy*maxy); }
  if(counter < maxz) { counter = counter + (schritt/maxy*maxz); }
  setTimeout("zoom('"+zoom_id+"', '"+pic_id+"')", 1);
}
function opac_set(opac_id, opac_wert){
  var idobj=document.getElementById? document.getElementById(opac_id) : document.all[opac_id];
  idobj.style.filter="alpha(opacity="+opac_wert+")";
  idobj.style.MozOpacity=opac_wert/100;
}
function box_close(zoom_id){
  var idobj=document.getElementById? document.getElementById(zoom_id) : document.all[zoom_id];
  idobj.style.display="none";
  opac_set('content', 100);
}
function box_open(zoom_id, pic_id){
  opac_set('content', 20);
  zoom(zoom_id, pic_id);
  box_visible();
}
function box_visible(){
  var idobj=document.getElementById? document.getElementById('box_buch') : document.all['box_buch'];
  idobj.style.display="block";
}
/*
addLoadEvent(function() {
  if(!document.cookie) {
    setTimeout("box_visible()", 2000);
    setTimeout("zoom('box_buch', 'box_grafik')", 2000);
    setTimeout("opac_set('content', 20)", 2000);
    var ablauf = new Date();
    ablauf.setTime(ablauf.getTime() + (60 * 60 * 1000));
    document.cookie = "Name=loopbuch; expires=" + ablauf.toGMTString();
  }
});
*/
//-->