clickurl = 'http%3A%2F%2Fads.atlas.sk%2Fadclick.php%3Fbannerid%3D20565%26zoneid%3D%26source%3D%26dest%3Dhttp%3A%2F%2Fsk.hit.gemius.pl%2Fhitredir%2Fid%3D.KhKTvAER8z2AMN_sj_.ZaQP76Eu6c_814NnFlPWK7j.w7%2Ffastid%3D2377900603271688261%2Fstparam%3Dsgqeolgoeo%2Furl%3Dhttp%3A%2F%2Fwww.funfon.sk';

swfBig = 'http://img.mediacentrum.sk/ads/16097/ilayer.swf?clickthru='+clickurl;
swfSmall = 'http://img.mediacentrum.sk/ads/16097/300x300.swf?clickthru='+clickurl;

var d=document;

function getIE() {
  var rv = 100; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer') {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}

flashText=
'<div id="chipEL" style="position:relative;z-index:9000;overflow:visible;width:300px;height:300px;">'+
    '<div id="chip1" style="position:absolute;left:-500px;top:0;width:800px;height:300px;display: block;z-index:9999;">'+ ((getIE() < 9) ? '<div style="width: 1px; height: 1px; font-size: 1px; overflow: hidden">&nbsp;</div>' : '') +
        '<object id="chip1_object" type="application/x-shockwave-flash" data="'+swfBig+'" width="800" height="300"><param name="movie" value="'+swfBig+'" /><param name="allowScriptAccess" value="always" /><param name="scale" value="noScale" /><param name="wmode" value="transparent" />'+
            '<embed src="'+swfBig+'" quality="high" allowscriptaccess="always" width="800" height="300" name="nalepka011" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+
        '</object>'+
    '</div>'+
    '<div style="position:absolute;left:0;top:0;width:300px;height:300px;display:block;z-index:9998;">' +
        '<object id="chip2" type="application/x-shockwave-flash" data="'+swfSmall+'" width="300" height="300"><param name="allowScriptAccess" value="always" /><param name="movie" value="'+swfSmall+'" /><param name="wmode" value="transparent" />'+
            '<embed src="'+swfSmall+'" quality="high" allowscriptaccess="always" width="300" height="300" name="nalepka022" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+
        '</object>'+
    '</div>'+
'</div>';
d.write(flashText);

function _close(never_show) {
  st1=d.getElementById("chip1").style;
  
  if ( st1.top == '-3500px' ) return;   

  // hide ilayer flash
  st1.left = '-3500px';
  if ( never_show == 1 ) {
    st1.top='-3500px';
    st1.display = 'none';
  }
  
  // play square flash
  if ( obj = d.getElementById("chip2")) obj.playFlash();
}

function _closeX(never_show) {
  st1=d.getElementById("chip1").style;
  if ( st1.top == '-3500px' ) return;   
  // hide ilayer flash
  st1.left = '-3500px';
  if ( never_show == 1 ) {
    st1.top='-3500px';
    st1.display = 'none';
  }
  
  // play square flash
  if ( obj = d.getElementById("chip2")) obj._playFlash();
}


function show_layer(){ 
  st1=d.getElementById("chip1").style;   
  st1.left='50%'; 
  
  if ( (parseInt(st1.top) != '-3500') && (obj = d.getElementById("chip2")) ) obj.stopFlash();  
  if ( obj = d.getElementById("chip1_object")) obj.playFlash();
}
// ak je casovo obmedzena max doma na zbehnutie velkeho banneru
setTimeout('_close(1)',5000);
