function resizePhotoGalery(){
    var twidth  = 701;
    var theight = 512;
    var corectW = 8;
    var corectH = 160;

    self.moveTo(0, 0);

    if (parseInt(navigator.appVersion)>3) {
      if (navigator.appName=="Netscape") {
        window.innerWidth   = twidth;
        window.innerHeight  = theight;
      }
      else {
        if (navigator.appName.indexOf("Microsoft")!=-1) {
          var cWidth  = document.body.clientWidth;
          var cHeight = document.body.clientHeight;
          var oWidth  = document.body.offsetWidth;
          var oHeight = document.body.offsetHeight;
          self.resizeTo(oWidth - cWidth + twidth + corectW, oHeight - cHeight + theight + corectH);
        }
        else{
          self.resizeTo(twidth + corectW, theight + corectH);
        }
      }
    }
    else {
      self.resizeTo(twidth + corectW, theight + corectH);
    }
  }
  
  function popup(location, size_x, size_y){
  	
  	if (parseInt(navigator.appVersion)>3) {
      
        if (navigator.appName.indexOf("Microsoft")!=-1) {
          //size_x += 20;
          //size_y += 20;
        }
        
    }
    window.open(location,null, "height=" + size_y +",width=" + size_x + ",status=yes,toolbar=no,menubar=no,location=no,scrollbars=no");
    
  }