    var sirka = screen.width-70;
    var vyska = screen.height-70;

    function fVyska() {
     var vvyska = document.getElementById('photoPop').offsetHeight+80;
     if (vyska>vvyska)
     {
       return vvyska;
     }  
     else
     {
       return vyska;
     }  
    }
    function fSirka() {
     var vsirka = document.getElementById('obbr').offsetWidth+80;
     if (sirka>vsirka)
     {
       return vsirka;
     }  
     else
     {
       return sirka;
     }
    }
    function pVyska() {
      var vv = fVyska();
      return (screen.height-fVyska())/2;
    }
    function pSirka() {
      var vv = fSirka();
      return (screen.width-fSirka())/2;
    }

if(typeof jQuery != 'undefined') {
  jQuery.noConflict();
  
  jQuery(function(){
    
    // Keep track of the iframe height.
    var if_height,
    
      // Pass the parent page URL into the Iframe in a meaningful way (this URL could be
      // passed via query string or hard coded into the child page, it depends on your needs).
      // src = 'http://testy.hrdept.cz/iframe/#' + encodeURIComponent( document.location.href ),
      src = 'https://evraz.tms.hrdepartment.com/cgi-bin/a/alljobs.cgi?qty=25&order=jobs.timedate%20DESC&view_language=cs-CZ',
      // Append the Iframe into the DOM.
      iframe = jQuery( '<iframe " src="' + src + '" width="700" height="500" scrolling="no" frameborder="0"><\/iframe>' )
        .appendTo( '#iframe' );
    
    // Setup a callback to handle the dispatched MessageEvent event. In cases where
    // window.postMessage is supported, the passed event will have .data, .origin and
    // .source properties. Otherwise, this will only have the .data property.
    jQuery.receiveMessage(function(e){
      
      // Get the height from the passsed data.
      var h = Number( e.data.replace( /.*if_height=(\d+)(?:&|$)/, '$1' ) );
      
      if ( !isNaN( h ) && h > 0 && h !== if_height ) {
        // Height has changed, update the iframe.
        iframe.height( if_height = h );
      }
      
    // An optional origin URL (Ignored where window.postMessage is unsupported).
    }, 'https://evraz.tms.hrdepartment.com' );
    
  });
}
