if(top.frames.length > 0){top.location.href=self.location;}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (numGotos != null)
    if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
    else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  jmpFwd = (fNew > tmLn.curFrame);
  for (i = 0; i < tmLn.length; i++) {
    sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
    if (sprite.charAt(0) == "s") {
      numKeyFr = sprite.keyFrames.length;
      firstKeyFr = sprite.keyFrames[0];
      lastKeyFr = sprite.keyFrames[numKeyFr - 1];
      if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
      for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
      for (j=0; j<sprite.values.length; j++) {
        props = sprite.values[j];
        if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
        else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
        if (sprite.obj != null) {
          if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
          else        sprite.obj[props.prop2][props.prop] = props[propNum];
      } }
    } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  }
  tmLn.curFrame = fNew;
  if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
}

function MM_initTimelines() { //v4.0
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    document.MM_Time = new Array(2);
    document.MM_Time[0] = new Array(1);
    document.MM_Time["agbs"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "agbs";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0][0] = new String("sprite");
    document.MM_Time[0][0].slot = 1;
    if (ns4)
        document.MM_Time[0][0].obj = document["agb"];
    else if (ns5)
        document.MM_Time[0][0].obj = document.getElementById("agb");
    else
        document.MM_Time[0][0].obj = document.all ? document.all["agb"] : null;
    document.MM_Time[0][0].keyFrames = new Array(1, 15);
    document.MM_Time[0][0].values = new Array(2);
    if (ns5)
        document.MM_Time[0][0].values[0] = new Array("-2000px", "-927px", "-854px", "-780px", "-707px", "-634px", "-561px", "-488px", "-414px", "-341px", "-268px", "-195px", "-121px", "-48px", "25px");
    else
        document.MM_Time[0][0].values[0] = new Array(-2000,-695,-639,-584,-529,-473,-418,-363,-307,-252,-196,-141,-86,-30,25);
    document.MM_Time[0][0].values[0].prop = "left";
    if (ns5)
        document.MM_Time[0][0].values[1] = new Array("200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px", "200px");
    else
        document.MM_Time[0][0].values[1] = new Array(200,200,200,200,200,200,200,200,200,200,200,200,200,200,200);
    document.MM_Time[0][0].values[1].prop = "top";
    if (!ns4) {
        document.MM_Time[0][0].values[0].prop2 = "style";
        document.MM_Time[0][0].values[1].prop2 = "style";
    }
    document.MM_Time[0].lastFrame = 15;
    document.MM_Time[1] = new Array(1);
    document.MM_Time["kalkulator"] = document.MM_Time[1];
    document.MM_Time[1].MM_Name = "kalkulator";
    document.MM_Time[1].fps = 15;
    document.MM_Time[1][0] = new String("sprite");
    document.MM_Time[1][0].slot = 1;
    if (ns4)
        document.MM_Time[1][0].obj = document["kalkulator"];
    else if (ns5)
        document.MM_Time[1][0].obj = document.getElementById("kalkulator");
    else
        document.MM_Time[1][0].obj = document.all ? document.all["kalkulator"] : null;
    document.MM_Time[1][0].keyFrames = new Array(1, 15);
    document.MM_Time[1][0].values = new Array(3);
    if (ns5)
        document.MM_Time[1][0].values[0] = new Array("-2000px", "-927px", "-854px", "-780px", "-707px", "-634px", "-561px", "-488px", "-414px", "-341px", "-268px", "-195px", "-121px", "-48px", "25px");
    else
        document.MM_Time[1][0].values[0] = new Array(-2000,-927,-854,-780,-707,-634,-561,-488,-414,-341,-268,-195,-121,-48,25);
    document.MM_Time[1][0].values[0].prop = "left";
    if (ns5)
        document.MM_Time[1][0].values[1] = new Array("180px", "180px", "180px", "180px", "180px", "180px", "180px", "180px", "180px", "180px", "180px", "180px", "180px", "180px", "180px");
    else
        document.MM_Time[1][0].values[1] = new Array(180,180,180,180,180,180,180,180,180,180,180,180,180,180,180);
    document.MM_Time[1][0].values[1].prop = "top";
    if (!ns4) {
        document.MM_Time[1][0].values[0].prop2 = "style";
        document.MM_Time[1][0].values[1].prop2 = "style";
    }
    if (ns5)
        document.MM_Time[1][0].values[2] = new Array("930px", "930px", "930px", "930px", "930px", "930px", "930px", "930px", "930px", "930px", "930px", "930px", "930px", "930px", "930px");
    else
        document.MM_Time[1][0].values[2] = new Array(930,930,930,930,930,930,930,930,930,930,930,930,930,930,930);
    document.MM_Time[1][0].values[2].prop = "width";
    if (!ns4)
        document.MM_Time[1][0].values[2].prop2 = "style";
    document.MM_Time[1].lastFrame = 15;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}

function inhalt(contart,contid) {
var content = contart;
var contnr = contid;

if (content == 'agbed')
document.getElementById("Frame").src = "incl_txtdata/agb.php";

if (content == 'impr')
document.getElementById("Frame").src = "incl_txtdata/impressum.php";

if (content == 'bestform')
document.getElementById("Frame").src = "incl_txtdata/bestform_print.php";

if (content == 'help')
document.getElementById("Frame").src = "incl_txtdata/hilfe.php?help=best";

if (content == 'contid')
document.getElementById("Frame").src = "incl_txtdata/canapesinfo.php?id="+contnr;

if (content == 'info')
document.getElementById("Frame").src = "incl_txtdata/info.php?id="+contnr;

if (content == 'platten')
document.getElementById("Frame").src = "incl_txtdata/platteninfo.php";

if (content == 'spezi')
document.getElementById("Frame").src = "incl_txtdata/info.php?id="+contnr;

if (content == 'gs')
document.getElementById("Frame").src = "incl_txtdata/gs.php?id="+0;

if (content == 'start')
document.getElementById("Frame").src = "incl_txtdata/willkommen.php";

if (content == 'blitz')
document.getElementById("Frame").src = "incl_txtdata/blitzbest.php";

}