// getrss_uk.js
var IFrameRSS; // our RSS IFrame object
function showrss_uk(n,u) {
 var responseMessage = document.getElementById('rss_selected');
 if(!document.createElement) {return true};
 var IFrameDocRSS;
 var URL = 'rssi/rss_frame_uk.php?n='+n+'&u='+u;
 responseMessage.innerHTML = '<span style="color:green">Йде завантаження...<\/span>';
	
 if(!IFrameRSS && document.createElement) {
  try {
   var tempIFrame=document.createElement('iframe');
   tempIFrame.setAttribute('id','RSSFrame');
   tempIFrame.style.border='0px';
   tempIFrame.style.width='0px';
   tempIFrame.style.height='0px';
   IFrameRSS = document.body.appendChild(tempIFrame);
   if(document.frames) {
    // this is for IE5 Mac
    IFrameRSS = document.frames['RSSFrame'];
   }
  } catch(exception) {
   // This is for IE5 PC
   iframeHTML='<iframe id="RSSFrame" style="';
   iframeHTML+='border:0px;';
   iframeHTML+='width:0px;';
   iframeHTML+='height:0px;';
   iframeHTML+='"><\/iframe>';
   document.body.innerHTML+=iframeHTML;
   IFrameRSS = new Object();
   IFrameRSS.document = new Object();
   IFrameRSS.document.location = new Object();
   IFrameRSS.document.location.iframe = document.getElementById('RSSFrame');
   IFrameRSS.document.location.replace = function(location) {
    this.iframe.src = location;
   }
  }
 }
 if(navigator.userAgent.indexOf('Gecko') !=-1 && !IFrameRSS.contentDocument) {
  // we have to give NS6 a fraction of a second
  // to recognize the new IFrame
  setTimeout('showrss_uk("'+n+'","'+u+'")',10);
  return false;
 }
 if(IFrameRSS.contentDocument) {
  // For NS6
  IFrameDocRSS = IFrameRSS.contentDocument;
 } else if(IFrameRSS.contentWindow) {
  // For IE5.5 and IE6
  IFrameDocRSS = IFrameRSS.contentWindow.document;
 } else if(IFrameRSS.document) {
  // For IE5
  IFrameDocRSS = IFrameRSS.document;
 } else {
  return true;
 }
 IFrameDocRSS.location.replace(URL);
 return false;
}
function handleCSSResponse(doc) {
 var resMessage = document.getElementById('rss_selected');
 resMessage.innerHTML = doc.getElementById('rssresponse').innerHTML;
 return false;
}