function salvarPecaSuaMusica(){
	alert("enviado");
}



function conferePecaSuaMusica(){
	valido = false;
	
	if(!document.getElementById("programa")[document.getElementById("programa").selectedIndex].value){document.getElementById("programa")[document.getElementById("programa").selectedIndex].style.background = '#FF8080'; valido = false;} else { document.getElementById("programa")[document.getElementById("programa").selectedIndex].style.background = '#666'; valido = true;}
	if(!document.getElementById('nome').value){document.getElementById('nome').style.background = '#FF8080'; valido = false;} else { document.getElementById('nome').style.background = '#666'; valido = true;}
	if(!document.getElementById('email').value){document.getElementById('email').style.background = '#FF8080'; valido = false;} else { document.getElementById('email').style.background = '#666'; valido = true;}
	if(!document.getElementById("dia")[document.getElementById("dia").selectedIndex].value) { document.getElementById('dia').style.background = '#FF8080'; valido = false; } else { document.getElementById('dia').style.background = '#666'; valido = true; }
	if(!document.getElementById("mes")[document.getElementById("mes").selectedIndex].value) { document.getElementById('mes').style.background = '#FF8080'; valido = false; } else { document.getElementById('mes').style.background = '#666'; valido = true; }
	if(!document.getElementById("ano")[document.getElementById("ano").selectedIndex].value) { document.getElementById('ano').style.background = '#FF8080'; valido = false; } else { document.getElementById('ano').style.background = '#666'; valido = true; }
	
	if(!document.getElementById('interprete').value){document.getElementById('interprete').style.background = '#FF8080'; valido = false;} else { document.getElementById('interprete').style.background = '#666'; valido = true;}
	if(!document.getElementById('musica').value){document.getElementById('musica').style.background = '#FF8080'; valido = false;} else { document.getElementById('musica').style.background = '#666'; valido = true;}
	
	if(valido==true){
		document.getElementById('formulario').action = 'peca_sua_musica_salvar.asp?action=cadastrar';
		document.getElementById('formulario').submit();
	} else {
		document.getElementById('msgAlerta').innerHTML = 'Por favor, preencha todos os campos marcados com *';
	}
}






function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function SendDataToFlashMovie(obj,variavel)
{
	var flashMovie=getFlashMovieObject(obj);
	flashMovie.SetVariable("audio", variavel);
	flashMovie.SetVariable("executaPodcast", true);
	
}

function mudaVideoTopVideos(src){
	document.getElementById('topVideosVideo').innerHTML = '<object width="275" height="185"><param name="movie" value="'+src+'"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"><param name="wmode" value="transparent" /></param><embed src="'+src+'" width="275" type="application/x-shockwave-flash" height="185" allowscriptaccess="always" allowfullscreen="true" movie="'+src+'" wmode="transparent"></embed></object>'
}

function abreDestaqueDrop(div){
	$(div).slideDown();
}
function fechaDestaqueDrop(div){
	$(div).slideUp();
}





	//HighLight
	hs.graphicsDir = '/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	hs.outlineType = 'rounded-white';
	hs.headingEval = 'this.a.title';
	hs.numberPosition = 'heading';
	hs.useBox = true;
	hs.width = 600;
	hs.height = 400;
	hs.showCredits = false;
	//hs.dimmingOpacity = 0.8;

	// Add the slideshow providing the controlbar and the thumbstrip
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			position: 'top right',
			offsetX: 200,
			offsetY: -65
		},
		thumbstrip: {
			position: 'rightpanel',
			mode: 'float',
			relativeTo: 'expander',
			width: '210px'
		}
	});

	// Make all images animate to the one visible thumbnail
	var miniGalleryOptions1 = {
		thumbnailId: 'thumb1'
	}

