function jSkipToStrLink(forma,akcja,lOpcji,selOpcji){document.write('<select title="Wszystkie strony" style="margin-left:5pt;" class="classSelectBelka" onchange="'+forma+".action='"+akcja+"'+this.value;"+forma+'.submit();">');for(var i=1;i<=lOpcji;i++)document.write('<option value='+i+(i==selOpcji?' selected':'')+'>'+i+'</option>');document.write('</select>');}
function jSkipToStrPost(nazwaStart,akcja,lOpcji,selOpcji){document.write('<select title="Wszystkie strony" style="margin-left:5pt;" class="classSelectBelka" onchange="'+nazwaStart+".value=this.value;"+akcja+';">');for(var i=1;i<=lOpcji;i++)document.write('<option value='+i+(i==selOpcji?' selected':'')+'>'+i+'</option>');document.write('</select>');}
var dragon={};
dragon.nrObj=0;
dragon.getNextNrObj=function(){return ++this.nrObj;};
dragon.swf_imgAdobe="img/get_flash_player.gif";
dragon.swf_expressInstall="swf/expressInstall.swf";
dragon.swf_msg=function(msg){return '<a href="http://www.adobe.com/go/getflashplayer"><img src="'+this.swf_imgAdobe+'" alt="Get Adobe Flash player"/></a> Pobierz Flash Player'+(msg?" "+msg:"")+".";};
dragon.swf_div=function(idDiv,msg){ret=(idDiv?idDiv:"divSWF_"+this.getNextNrObj());document.write('<div id="'+ret+'">'+this.swf_msg(msg)+"</div>");return ret;};
dragon.swf_embed=function(swf,idDiv,w,h,v,fv,fp,fa){swfobject.embedSWF(swf,idDiv,w,h,v,this.swf_expressInstall,fv,fp,fa);};
dragon.swf_writeEmbed=function(swf,w,h,v,fv,fp,fa,msg){this.swf_embed(swf,this.swf_div(false,msg),w,h,v,fv,fp,fa);};
dragon.swf_galeria=function(sc,xml,zd){this.swf_writeEmbed("swf/Album_04.swf","650","540","6.0.40",{sciezka:sc,xml_galerii:xml,zdjecia:(zd?zd:"")},{play:"true",menu:"false",loop:"false"},{},"aby otworzyć galerię");};
dragon.swf_YouTube=function(sc,w,h){this.swf_writeEmbed("swf/dragon_YouTube_01.swf",w==""?"480":w,h==""?"384":h,"6.0.40",{adres:"http://www.youtube.com/v/"+sc.replace(/.*v=(.+)/,"$1").replace(/([0-9a-zA-Z_\-]+)([^0-9a-zA-Z_\-].*)?/,"$1")},{play:"true",menu:"false",loop:"false",scale:"noscale",salign:"TL"},{}," aby otworzyć film");};
dragon.swf_mp3=function(adres,odtw,powt){this.swf_writeEmbed("swf/odtwarzacz_mp3.swf","400","64","6.0.40",{adresPliku:adres,odtwarzaj:odtw,powtarzaj:powt},{play:"true",menu:"false",loop:"false"},{},"aby otworzyć odtwarzacz muzyki");};
dragon.swf_v2flv=function(adres,w,h,autPl){this.swf_writeEmbed("swf/allok/flvplayer.swf",w,h,"7.0.0",{streamName:adres,autoPlay:(autPl=="0"?"false":"true"),MM_ComponentVersion:"1",skinName:"/swf/allok/cool_style3",autoRewind:"true"},{play:"true",menu:"false",loop:"false",salign:"lt",quality:"hight",scale:"noscale"},{},"aby otworzyć film");};
dragon.swf_ALLCapture=function(adres,w,h,qual,autPl){this.swf_writeEmbed(adres,w,h,"5.0.0",{},{play:(autPl=="0"?"false":"true"),menu:"false",loop:"false",quality:(qual==""?"hight":qual)},{},"aby otworzyć film");};
// Cross-browser onload
// - Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/ 
dragon.addLoadEvent=function(fn){if(typeof window.addEventListener!="undefined"){window.addEventListener("load",fn,false);}else if(typeof document.addEventListener!="undefined"){document.addEventListener("load",fn,false);}else if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",fn);}else if(typeof window.onload=="function"){var fnOld=window.onload;window.onload=function(){fnOld();fn();};}else{window.onload=fn;}};
dragon.addUnLoadEvent=function(fn){if(typeof window.attachEvent!="undefined"){window.attachEvent("onunload",fn);}else if(typeof window.addEventListener!="undefined"){window.addEventListener("unload",fn,false);}else if(typeof document.addEventListener!="undefined"){document.addEventListener("unload",fn,false);}else if(typeof window.onunload=="function"){var fnOld=window.onunload;window.onunload=function(){fnOld();fn();};}else{window.onunload=fn;}};

