var ResizedOpera = 0;

function adjustIFrameSize (iframeWindow) {
  if (iframeWindow.document.height) {
    var iframeElement = document.getElementById(iframeWindow.name);
	
    iframeElement.style.height = iframeWindow.document.height + 'px';
    iframeElement.style.width = iframeWindow.document.width + 'px';
  }
  else if (document.all) {
    var iframeElement = document.all[iframeWindow.name];
    if (iframeWindow.document.compatMode &&
        iframeWindow.document.compatMode != 'BackCompat') 
    {
      if(iframeWindow.document.documentElement.scrollHeight < 5 || iframeWindow.document.documentElement.scrollWidth < 5) 
        return false;
        
      if(!browser.opera)   	  	
      {      	
      	iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 5 + 'px';
      	iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 5 + 'px';
      }  else if((browser.opera && (ResizedOpera == 0)))   	  	
      {
      	ResizedOpera = 1;
      	iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight+ 'px';
      	iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 'px';
      }  else
      {  
      	iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 'px';
      	iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 'px';
      } 	
      
    }
    else {
      iframeElement.style.height = iframeWindow.document.body.scrollHeight + 5 + 'px';
      iframeElement.style.width = iframeWindow.document.body.scrollWidth + 5 + 'px';
    }
    
  }
  return true;
}


function ferror_ad()
{
	if (window.parent && (window.parent != window.self))
	{
	
		var par = window.parent.frames[0];
		/*if(src.window.parent != src.window.top) to olewka (src.window.parent == src.window.top) && */
		
		if(par.window.self.location.href == 'http://relaz.pl' || par.window.self.location.href == 'http://relaz.pl/') 
			window.location.replace('../blank.html');	
	}
	
	return true;
}	
