function mouse_over(target_id) {
    var target=document.getElementById(target_id);
    target.src = target.src.replace('.jpg', '_over.jpg');
}

function mouse_out(target_id) {
    var target=document.getElementById(target_id);
    target.src = target.src.replace('_over.jpg', '.jpg');
}

function fitPic() {
  var myWidth = 0, myHeight = 0;
  var x = 0, y = 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;
	//alert('szél: '+myWidth+' mag: '+myHeight);
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

  iWidth = document.getElementById('uvbImage').width - myWidth + 50;
  iHeight =  document.getElementById('uvbImage').height - myHeight + 50;
  window.resizeBy(iWidth, iHeight);
  
  var NS = (navigator.appName=="Netscape")?true:false;

  if (NS) {
    x = (screen.availWidth - window.outerWidth)/2;
    y = (screen.availHeight - window.outerHeight)/2;
  } else {
    x = (screen.width - document.body.clientWidth)/2;
    y = (screen.height - document.body.clientHeight)/2 - 100;
  }

  self.moveTo(x, y);
  self.focus();
}

function fitSzusza() {
  var x = 0, y = 0;
  var NS = (navigator.appName=="Netscape")?true:false;

  if (NS) {
    x = (screen.availWidth - window.outerWidth)/2;
    y = (screen.availHeight - window.outerHeight)/2;
  } else {
    x = (screen.width - document.body.clientWidth)/2;
    y = (screen.height - document.body.clientHeight)/2 - 100;
  }

  self.moveTo(x, y);
  self.focus();
}

function alertSize() {
  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;
  }

  document.write("Screen resolution: ")
  document.write(screen.width + "*" + screen.height)
  document.write("<br />")
  document.write("Available view area: ")
  document.write(myWidth + "*" + myHeight)
  document.write("<br />")
  document.write("Color depth: ")
  document.write(screen.colorDepth)
  document.write("<br />")
}

function getViewSize(){
  var myWidth = 0, myHeight = 0;
  $viewSize = array();
  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>900)?1:0;
}
