hs.graphicsDir = 'js/graphics/';
hs.outlineType = 'rounded-white';
hs.showCredits = false;

var dCurTime = new Date().getTime()/1000;
var FObj = "";

// var wmtt = null;
// document.onmousemove = updateWMTT;

if (top != self)
   {
       top.location = self.location;
   }

// function updateWMTT(e) {
//   x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
//   y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
//   if (wmtt != null) {
//     wmtt.style.left = (x - 80) + "px";
//     wmtt.style.top   = (y + 20) + "px";
//   }
// }

// function showWMTT(id) {
//   wmtt = document.getElementById(id);
//   wmtt.style.display = "block"
// }

// function hideWMTT() {
//   wmtt.style.display = "none";
// }

// window.open('', '_self', 'resizable=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,toolbar=0,width=1024,height=768')

function runde(x, n) {
  if (n < 1 || n > 14) return false;
  var e = Math.pow(10, n);
  var k = (Math.round(x * e) / e).toString();
  if (k.indexOf('.') == -1) k += '.';
  k += e.toString().substring(1);
  return k.substring(0, k.indexOf('.') + n+1);
}

function showLoadingTime(sTime,FocusObj)
   {
       // aktueller Zeitstempel
       var dTime = new Date().getTime()/1000;
       var difTime=dTime-sTime;
       difTime=runde(difTime,3);
       document.getElementById("LoadingTime").innerHTML="<font <font class='txtgrau0'>Seite geladen in: " + difTime + " Sekunden.</font>";

       if(document.getElementsByName(FocusObj)[0])
           {
               document.getElementsByName(FocusObj)[0].focus();
           }
   }

function toggleMenu(me){
        if (me.style.display=="none")
            {
                me.style.display="block";
            }
        else {
                me.style.display="none";
            }
        }
