// JavaScript Document

var imagePath = false;

function getScrollXY() {
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return [ scrOfY ];
}


function big_pictures_height(){
          
          var szelesseg = 0, magassag = 0;
          var scrOfY = getScrollXY();
          if( typeof( window.innerWidth ) == 'number' ) {
                    // Non-IE
                    szelesseg = window.innerWidth;
                    magassag = window.innerHeight;
          } 
          else if( document.documentElement && 
                           ( document.documentElement.clientWidth || 
                             document.documentElement.clientHeight ) ) 
          {
                    //IE 6+ in 'standards compliant mode'
              szelesseg = document.documentElement.clientWidth;
              magassag = document.documentElement.clientHeight;
          } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
                    //IE 4 compatible
          szelesseg = document.body.clientWidth;
          magassag = document.body.clientHeight;                
      }
                
      var szeles = document.getElementById("big_picture").width;
      var magas = document.getElementById("big_picture").height+20;
      var pictures_top = (magassag - magas) / 2 + parseInt(scrOfY);
                    
      document.getElementById("picture-container").style.width = szeles+"px";
      document.getElementById("picture-container").style.top = pictures_top-20+"px";
      document.getElementById("picture-container").style.left= szelesseg/2-(szeles/2)+"px";
                    
      document.getElementById("big_picture").style.top=pictures_top+"px";
      document.getElementById("big_picture").style.left=(szelesseg/2)-(szeles/2)+"px";
      document.getElementById("big_picture_table").style.height = parseInt(magassag) + parseInt(magas) + parseInt(150) + "px";  
       
 }

 
 function show_big_pictures(imagePath){
      if(imagePath!=='imagePath'){
          wleft = screen.width;
          document.getElementById("picture-container").style.left = wleft /2;
          document.getElementById("big_picture").src = imagePath;
          document.getElementById("big_picture_table").style.display = 'block';
      }
 }
 
 function big_pictures_close(){
       document.getElementById("big_picture_table").style.display = 'none';
 }


