// JavaScript Document



var aid="b33144";
var adWidth="540";
var adHeight="160";
var transp=true;
var fullscr=false;
var noO = ((document.getElementById||document.all) && (window.navigator.userAgent.indexOf ("Opera") == -1)) ? true : false;
var wstaw; 
if (!fullscr) wstaw="width:"+adWidth+"px; height:"+adHeight+"px"; else wstaw="width:100%; height:100%;";
if (noO) {
document.write('<DIV id="'+aid+'" style="position:absolute;visibility:hidden;left:0; top:0;z-index:9999;'+wstaw+'">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" ID="toplayer_400x300" width='+adWidth+' height='+adHeight+'>');
document.write('<PARAM NAME=movie VALUE="toplayer_400x300.swf?clickTag=http://www.sobieniekrolewskie.pl/apartamenty.pdf">');
if (transp) {
document.write('<PARAM NAME=wmode VALUE=transparent>'); 
wstaw=" wmode=transparent";
} else wstaw="";
document.write('<PARAM NAME=quality VALUE=high>');
document.write('<embed'+wstaw+' NAME="toplayer_400x300" ID="toplayer_400x300" src="toplayer_400x300.swf?clickTag=http://www.sobieniekrolewskie.pl/apartamenty.pdf" quality=high swLiveConnect=true  pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width='+adWidth+' height='+adHeight+'>');
document.write('</EMBED></OBJECT></DIV>');
}

var tohide = ["select"];

function setPoz(){
adw = document.body.clientWidth/2 - adWidth/2 + document.body.scrollLeft;
adh = document.body.clientHeight/2 - adHeight/2 + document.body.scrollTop+75;
if (adh<0)adh=0; if (adw<0)adw=0;
o.style.left = adw;
o.style.top = adh;
visSelects('hide');
visObj(o,'show');
}

function visObj(obj,action) {
if (obj.style) {
if (action=='hide') obj.style.visibility='hidden';
else if (action='show') obj.style.visibility='visible';
}}

function visSelects(action) {
var tohideObj;
for(i=0;i<tohide.length;i++) {
tohideObj=document.getElementsByTagName?document.getElementsByTagName(tohide[i]):document.all.tags(tohide[i]);
for(z=0;z<tohideObj.length;z++) visObj(tohideObj[z],action);
}
}

function onFinishedPlaying(){
visSelects('show');
visObj(o,'hide');
}

function ukryj(){
visSelects('show');
visObj(o,'hide');
}  

var o = (document.getElementById)?eval("document.getElementById('"+aid+"')"):eval("document.all."+aid);

if (o) {
if (window.attachEvent) {
window.attachEvent("onresize", setPoz);
window.attachEvent("onload",setPoz);
} else {
window.onresize=setPoz;
window.onload=setPoz;
}}

