function Rand(min, max)
{
	return Math.floor(Math.random() * (max - min + 1)) + min;
}
var bnrs=[
	{
		'small':'dusatkova1/99p_dusatkova_A_cas.swf?clickthru=http%3A%2F%2Fads.atlas.sk%2Fadclick.php%3Fbannerid%3D20677%26zoneid%3D%26source%3D%26dest%3Dhttp%3A%2F%2Fwww.99percent.sk%2Fobcianski-zastupcovia%2Fvideo-rozhovory%3Futm_source%3Daktualne_dnes%26utm_medium%3Dvideo_banner%26utm_content%3Dvideo_dusatkova1%26utm_campaign%3Dvideo_bannery',
	},
	{
		'small':'dusatkova2/99p_dusatkova_B_cas.swf?clickthru=http%3A%2F%2Fads.atlas.sk%2Fadclick.php%3Fbannerid%3D20677%26zoneid%3D%26source%3D%26dest%3Dhttp%3A%2F%2Fwww.99percent.sk%2Fobcianski-zastupcovia%2Fvideo-rozhovory%3Futm_source%3Daktualne_dnes%26utm_medium%3Dvideo_banner%26utm_content%3Dvideo_dusatkova2%26utm_campaign%3Dvideo_bannery',
	},
	{
		'small':'pavlik1/99p_pavlik_A_cas.swf?clickthru=http%3A%2F%2Fads.atlas.sk%2Fadclick.php%3Fbannerid%3D20677%26zoneid%3D%26source%3D%26dest%3Dhttp%3A%2F%2Fwww.99percent.sk%2Fobcianski-zastupcovia%2Fvideo-rozhovory%3Futm_source%3Daktualne_dnes%26utm_medium%3Dvideo_banner%26utm_content%3Dvideo_pavlik1%26utm_campaign%3Dvideo_bannery',
	},
	{
		'small':'pavlik2/99p_pavlik_B_cas.swf?clickthru=http%3A%2F%2Fads.atlas.sk%2Fadclick.php%3Fbannerid%3D20677%26zoneid%3D%26source%3D%26dest%3Dhttp%3A%2F%2Fwww.99percent.sk%2Fobcianski-zastupcovia%2Fvideo-rozhovory%3Futm_source%3Daktualne_dnes%26utm_medium%3Dvideo_banner%26utm_content%3Dvideo_pavlik2%26utm_campaign%3Dvideo_bannery',
	}        	
];
function ADSAttachEvent(el, ev, func, tf) {
	document.all ? el.attachEvent('on' + ev, func) : el.addEventListener(ev, func, tf);
}

var cn=0;
var ch=Rand(0,(bnrs.length-1));

var swfSmall = 'http://img.mediacentrum.sk/ads/16157/'+bnrs[ch]['small'];

bW=800;bH=300;
sW=300;sH=300;
xOff=-500;//zarovnanie velkeho voci squareu
yOff=0;//zarovnanie velkeho voci squareu
function restart() {
	
}
function axaInvisible ()/*nastavit podla velkej casti*/ {
	document.getElementById("c4_ap1").style.display='none';
}
flashText=
'<style>#content-right, .rightPanel, .bat_top, .secondary-column, .login, .area_300{overflow:visible;position:relative;z-index:9999;}</style>'+/*tu je dolezite pozriet si class elementu kde sa zobrazuje 300x300 a nastavit mu position relative a overflow visible*/
'<div id="c4_scr" style="position:relative;height: '+sH+'px;width:'+sW+'px;text-align:left;z-index:555">'+
'<div id="c4_ap2" style="position:absolute;width:'+sW+'px;height:'+sH+'px;top:0px;left:0px;z-index:998;display:block">'+
'<object name="centrums" id="centrums" type="application/x-shockwave-flash" data="'+swfSmall+'" width="'+sW+'" height="'+sH+'"><param name="movie" value="'+swfSmall+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /><embed src="'+swfSmall+'" quality="high" allowscriptaccess="always" width="'+sW+'" height="'+sH+'" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="centrums" id="centrums"></embed></object>'+
'</div>'+
'</div>';
document.write(flashText);
setTimeout(axaInvisible,6000);
