window.onresize = positionMoskito;
function positionMoskito() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {

    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {

    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  obj = document.getElementById("moskito");
  var delta = 0;
  var mainWidth = 950;
  if(myWidth > mainWidth) {
    delta = (myWidth - mainWidth) / 2;
  }
  obj.style.left = (delta + 120) + "px";
  obj.style.top = 47 + "px";
}
