//---flv---------------------------------------------------------------------------------------------------------
var bgOver='#B2926C'; bgOut='#544947'; bgOn='#6E4D3A';
var NrIdflv=-1;
var MaxIdflv=1;
var stop=0;
var aaa=6000;





//zatrzymaj przesuwanie zakladek
function Stopflv()
{
stop=1;
}






//-------------
 function Clearflv()
 {
    for(k=0;k<=MaxIdflv;k++) //zeruje podswietlenie
    {
    var theobjBtnFlv_tmp= eval ('document.getElementById("poleBtn'+k+'")');
	theobjBtnFlv_tmp.style.background='#544947';
	}
 }
//-------------






function Moveflv()
{
 if(stop==0)
 {
 var t=setTimeout("Moveflv()", aaa);
 if(NrIdflv>=MaxIdflv) { NrIdflv=0; } else {  NrIdflv=NrIdflv+1;}//ustwa nastepna pole

 SetpoleZoom(-1);

 }
}





//-------------
 function SetpoleZoom(i)
 {

  if(i!=-1) { NrIdflv=i; /*Stopflv();*/ } //wymuszone klikniecie
alert('file/graphic/'+flv[NrIdflv]['plik']+'');

 var theobj= eval ('document.getElementById("poleZoom")');
 var theobjBtnFlv= eval ('document.getElementById("poleBtn'+NrIdflv+'")');

	alert('file/graphic/'+flv[NrIdflv]['plik']+'');
 if(theobj)
 {
  Clearflv();

  theobjBtnFlv.style.background=bgOn;//podswietl wybrane

   if(flv[NrIdflv]['typ']=='img')
   {
   //alert ('file/graphic/'+flv[NrIdflv]['plik']+'');
   theobj.innerHTML='<a href="'+flv[NrIdflv]['url']+'" ><img alt="" src="file/graphic/'+flv[NrIdflv]['plik']+'" /></a>';
   }


   if(flv[NrIdflv]['typ']=='flv')
   {
   var baner= new SWFObject("flv/"+flv[NrIdflv]['plik'], 'zoom', 487, 404, "7", "#ffffff");
   baner.addParam("wmode", "transparent");
   baner.addParam("loop", "true");
   baner.write('poleZoom');

   }
  }

 }
//-------------





 //zmiana tla btn
 function ChangeBg(action,i)
 {
  var theobjBtnFlv= eval ('document.getElementById("poleBtn'+i+'")');
  if(i!=NrIdflv)//tylko dla tych nie wybranych
  {
  if(action=='Over') { theobjBtnFlv.style.background=bgOver; }
  if(action=='Out') { theobjBtnFlv.style.background=bgOut; }
  }
 }
//---------------------------------------------------------------------------------------------------------------------

