var otwarta=false;
	var posluchaj;
	var posluchajlist;
	var navlink;
	var navT;
	function nawigacja_posluchaj() {
		posluchaj = document.getElementById("posluchaj");
		posluchajlist = document.getElementById("posluchajlist");
		navlink = document.getElementById("navlink");
		if(otwarta)  {
			posluchaj.style.height="15px";
			navlink.style.backgroundPosition="0px 0px";
			otwarta=false;
  }
		else  {
			posluchaj.style.height = (15 + posluchajlist.offsetHeight + 5) + "px";
			navlink.style.backgroundPosition="0px -16px";
			otwarta=true;
  }
 }

	function nawigacja_posluchaj_otworz() {
	      clearTimeout(navT);
	      if (!otwarta) {
	           nawigacja_posluchaj();
       }
 }

	function nawigacja_posluchaj_zamknij() {
	        clearTimeout(navT);
	        if (otwarta) {
			navT=setTimeout('nawigacja_posluchaj()',500);
  }
 }

	var toPlay = new Array();
	toPlay[0]="/posluchaj/spot.mp3";
	toPlay[1]="/posluchaj/rr.mp3";
	function playifp(which) {
			var so = new SWFObject("flash/musplayer.swf", "musicplayerinstance", "109", "30", "8", "#FFFFFF");
			so.addParam("wmode","transparent");
			so.addVariable("whichtoplay",toPlay[which]);
			so.addVariable("type",playerekTyp);
			so.write("posluchajflash");
			nawigacja_posluchaj();
 }

	function close_flashplayer() {
	        document.getElementById("posluchajflash").innerHTML="";
 }

