function getSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  return [myWidth, myHeight];
}

dimension = getSize();

var hoehe = dimension[1];
var breite = dimension[0];

RandX = 20;
RandY = 20;

grenzeX = breite -(2*RandX+25);
grenzeY = hoehe - (2*RandY+18+219);

xpos = Math.floor(Math.random()*grenzeX)+RandX;
ypos = Math.floor(Math.random()*grenzeY)+RandY+219;

document.write("<div style=\"width:25px; height:18px; z-index:50; position:absolute;top:"+ypos+"px; left:"+xpos+"px;\"><img src=\"fileadmin/styles/01_layouts_basics/img/schmetterling.gif\" width=\"25\" height=\"18\" alt=\"Schmetterling\"></div>");

/* */
