/*aqui vão as funções relativas ao projeto desenvolvido*/

 function ouvirNoticia(file) {
  	if(file.indexOf('.mp3')!=-1) {
	     document.getElementById('top10').innerHTML='<object width="225" height="285"> <param name="wmode" value="transparent"> <param name="movie" value="noticia.swf"> <param name="FlashVars" value="audio='+file+'"> <embed flashvars="audio='+file+'" wmode="transparent" src="noticia.swf" width="225" height="285"> </embed> </object>';
	     document.getElementById('top10').style.display='block';
	     getElmt('top10').style.top=100+document.body.scrollTop;
	     parar();	     
  	}
 }

function getHoroscopo(signo) {
	getElmt('dvhoroscopo').style.display='block';
	buscarURL("contentHoroscopo","buscarHoroscopo.php","signo="+signo);
	getElmt('topoHoroscopo').style.backgroundImage='url(imagens/horoscopo/fatiados/'+signo+'.png)';
	getElmt('dvhoroscopo').style.top=100+document.body.scrollTop;
}

 function ouvirTop10(file,topo) {
 	if(file.indexOf('.mp3')!=-1) {
 		document.getElementById('top10').style.display='block';
 		
 	  if(window.navigator.appVersion.indexOf('MSIE 6.0')!=-1) {
 	  	window.setTimeout(function(){document.getElementById('top10').innerHTML=insertSWF('top10.swf',225, 285, 'audio='+file+',topo='+topo);},100);
 	  }else {
	 	  str='<object width="225" height="285"> <param name="wmode" value="transparent"> <param name="flashvars" value="audio='+file+'&topo='+topo+'"> <param name="wmode" value="transparent"> <param name="movie" value="top10.swf"> <embed flashvars="audio='+file+'&topo='+topo+'" wmode="transparent" src="top10.swf" width="225" height="285"> </embed> </object>';
		  window.setTimeout(function(){document.getElementById('top10').innerHTML=str;},100);
 	  }
 	  getElmt('top10').style.top=100+document.body.scrollTop;
	  parar();
 	}
 }
 
 function fecharOuvir() {
 	document.getElementById('top10').innerHTML='';
 	document.getElementById('top10').style.display='none';
 	tocar();
 }
 
 
