var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);

function attach(id)
{
 var obj
  if(ns4) obj = document.layers[id];
  else if(ie4) obj = document.all[id];
          else if(ie5 || ns6) obj = document.getElementById(id);

 return obj
}

function hide_obj(id)
{
 var temp_Obj = attach(id);
 if(ns4) temp_Obj.visibility = "hide";
 else temp_Obj.style.visibility = "hidden"
}

function show_obj(id)
{
 var temp_Obj = attach(id);
 if(ns4) temp_Obj.visibility = "show";
 else temp_Obj.style.visibility = "visible"
}

function f_attach(id)
{
 var obj
  if(ns4) obj = parent.grafic.document.layers[id];
  else if(ie4) obj = parent.grafic.document.all[id];
          else if(ie5 || ns6) obj = parent.grafic.document.getElementById(id);

 return obj
}

function f_hide_obj(id)
{
 temp_Obj = f_attach(id);
 if(ns4) temp_Obj.visibility = "hide";
 else temp_Obj.style.visibility = "hidden"
}

function f_show_obj(id)
{
 temp_Obj = f_attach(id);
 if(ns4) temp_Obj.visibility = "show";
 else temp_Obj.style.visibility = "visible"
}

function t_attach(id)
{
 var obj
  if(ns4) obj = parent.content.document.layers[id];
  else if(ie4) obj = parent.content.document.all[id];
          else if(ie5 || ns6) obj = parent.content.document.getElementById(id);
 return obj
}

function t_hide_obj(id)
{
 temp_Obj = t_attach(id);
 if(ns4) temp_Obj.visibility = "hide";
 else temp_Obj.style.visibility = "hidden"
}

function t_show_obj(id)
{
 temp_Obj = t_attach(id);
 if(ns4) temp_Obj.visibility = "show";
 else temp_Obj.style.visibility = "visible"
}

function ZweiFrames(URL1,F1,URL2,F2)
     {
     parent.frames[F1].location.href=URL1;
     parent.frames[F2].location.href=URL2;
     }
     
var the_timeout;
function Move1(id){
the_timeout=setTimeout('MoveDiv(\'id\');',100) ;
}

function MoveDiv(id)
{
  // get the stylesheet
  //
  var the_style = getStyleObject(id);
  if (the_style)
  {
    // get the current coordinate and add 5
    //
    var current_top = parseInt(the_style.top);
    var new_top = current_top + 5;

    // set the left property of the DIV, add px at the
    // end unless this is NN4
    //
    if (document.layers)
    {
      the_style.top = new_top;
    }
    else
    {
      the_style.top = new_top + "px";
    }

    // if we haven't gone to far, call moveDiv() again in a bit
    //
    if (new_top < 400)
    {
      the_timeout = setTimeout('MoveDiv();',10);
    }
  }
}


function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject
