function showHide(id) {
    var obj = document.getElementById(id);
    if (obj.style.display == "none") {
        //obj.style.display = "block";
        Effect.SlideDown(id);
    } else {
    	Effect.SlideUp(id);
        //obj.style.display = "none";
    }

}

function addCode(obj, code) {
	var object = document.getElementById(obj);
 	object.value += ' ' + code;
}

function ads(time, swf, fwidth, fheight) {
 time=time+'000';
 setTimeout("hiddenAds('"+swf+"', '"+fwidth+"', '"+fheight+"')", time);
}

function hiddenAds(swff, fwidth, fheight) {
document.getElementById('flashAdsStart').style.visibility = 'hidden';
document.getElementById('flashAdsStart').style.display = 'none';

var swfa = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+fwidth+'" height="'+fheight+'"><param name="movie" value="'+swff+'" /><param name="quality" value="high" /><embed src="'+swff+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700"+fwidth+"700" height="600"+fheight+"600"></embed></object>'; 

document.getElementById('swf').innerHTML = swfa;

}

function odliczaj(o,sek){
o=document.getElementById('sekundy');
o.innerHTML=sek
if(sek>0)setTimeout(function(){odliczaj(o,--sek)},1e3)
}


