function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


var okno_odtwarzaczWindow=null;
function okno_odtwarzacz(mypage,myname,w,h,pos,infocus,rozdz_x,rozdz_y){
if(pos=='random')
{
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
}
if(pos=='center')
{
LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;
}
else if((pos!='center' && pos!='random') || pos==null)
{
LeftPosition=100;TopPosition=100;
}

settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
okno_odtwarzaczWindow=window.open('',myname,settings);

if(infocus=='front'){
okno_odtwarzaczWindow.focus();
okno_odtwarzaczWindow.location='includes/odtwarzacz.php?demo='+mypage+'&rozdz_x='+rozdz_x+'&rozdz_y='+rozdz_y;
}
}

var okno_odtwarzacz2Window=null;
function okno_odtwarzacz2(mypage,myname,w,h,pos,infocus){
if(pos=='random')
{
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
}
if(pos=='center')
{
LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;
}
else if((pos!='center' && pos!='random') || pos==null)
{
LeftPosition=100;TopPosition=100;
}

settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
okno_odtwarzacz2Window=window.open('',myname,settings);

if(infocus=='front'){
okno_odtwarzacz2Window.focus();
okno_odtwarzacz2Window.location='includes/odtwarzacz2.php?demo=' + mypage;
}
}

  var acePopupWindow=null;
function acePopup(mypage,myname,w,h,pos,infocus){
if(pos=='random'){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=='center'){
LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!='random') || pos==null){LeftPosition=100;TopPosition=100;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
acePopupWindow=window.open('',myname,settings);
if(infocus=='front'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/latino1b.jpg';}
if(infocus=='front2'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/latino2b.jpg';}
if(infocus=='front3'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/latino3b.jpg';}
if(infocus=='front4'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/latino4b.jpg';}
if(infocus=='front5'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/standart1b.jpg';}
if(infocus=='front6'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/standart2b.jpg';}
if(infocus=='front7'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/standart3b.jpg';}
if(infocus=='front8'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/standart4b.jpg';}
if(infocus=='front9'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/pierwszy1b.jpg';}
if(infocus=='front10'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/pierwszy2b.jpg';}
if(infocus=='front11'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/pierwszy3b.jpg';}
if(infocus=='front12'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/static/pierwszy4b.jpg';}
if(infocus=='front13'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(14).jpg';}
if(infocus=='front14'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(17).jpg';}
if(infocus=='front15'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(16).jpg';}
if(infocus=='front16'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(15).jpg';}
if(infocus=='front17'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(20).jpg';}
if(infocus=='front18'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(27).jpg';}
if(infocus=='front19'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(18).jpg';}
if(infocus=='front20'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(28).jpg';}
if(infocus=='front21'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(26).jpg';}
if(infocus=='front22'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(23).jpg';}
if(infocus=='front23'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(31).jpg';}
if(infocus=='front24'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(29).jpg';}
if(infocus=='front25'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(26).jpg';}
if(infocus=='front26'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(21).jpg';}
if(infocus=='front27'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(30).jpg';}
if(infocus=='front28'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(19).jpg';}
if(infocus=='front29'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(22).jpg';}
if(infocus=='front30'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(24).jpg';}
if(infocus=='front31'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(1).jpg';}
if(infocus=='front32'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1.jpg';}
if(infocus=='front33'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(2).jpg';}
if(infocus=='front34'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(3).jpg';}
if(infocus=='front35'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(13).jpg';}
if(infocus=='front36'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(7).jpg';}
if(infocus=='front37'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(8).jpg';}
if(infocus=='front38'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(12).jpg';}
if(infocus=='front39'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(9).jpg';}
if(infocus=='front40'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(4).jpg';}
if(infocus=='front41'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(6).jpg';}
if(infocus=='front42'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(10).jpg';}
if(infocus=='front43'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(5).jpg';}
if(infocus=='front44'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/amp/amp_1(11).jpg';}
if(infocus=='front45'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/balet/balet_1.jpg';}
if(infocus=='front46'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/balet/balet_1(1).jpg';}
if(infocus=='front47'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/balet/balet_1(2).jpg';}
if(infocus=='front48'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/balet/balet_1(3).jpg';}
if(infocus=='front49'){acePopupWindow.focus();acePopupWindow.location='http://www.naukatanca.pl/photos/riviera/plakat_riviera_789.jpg';}
}


