﻿// CARREGA DE PODCAST
    

function carregarPodcast(va,i){
       
       $("#"+va).html("");
       //$("#"+va).height("53px");
       
       $("#"+va).flash({    // PosCas!!    
	        swf: 'flash/playerPodcast.swf',  id:'Podcast_'+i,name:'Podcast_'+i,  
		    flashvars: {
		        titol: PodcastTitul[i], 
			    mp3: Mp3Podcast[i],
			    idmp3: PodcastUrlDescarrega[i]
	
	        },
		    width: '708',
		    height: '53',
		    wmode: 'transparent',
		    params: {
                        allowScriptAccess: "always"
                    }
        });
        
    }


    $(document).ready(
    
        function() {  
            for (var i=0;i<QuantitatPodcast;i++){ 
                fi = document.getElementById('containerPodCast');
                contenedor = document.createElement('div');
                contenedor.id = 'Podcast_'+i;
                fi.appendChild(contenedor);
               
		         titol = PodcastTitul[i];
			     divId = 'Podcast_'+[i];
			     identificador = i;
		        $("#Podcast_"+[i]).html('<div class="posInici"><a href="javascript:carregarPodcast(\'' + divId + '\',\'' + identificador + '\')"></a><span>' + titol + '</span></div>');
	        };
       });
    
