function over_logo(sound){

soundManager.stopAll();
soundManager.setPosition(sound,0);
soundManager.play(sound);
fade(sound,0,50);
return true;

}



function fade(sound,start,end)
{

	soundManager.setVolume(sound,start);

	if (start<end){start=start+1; fact=80;};
	if (start>end){start=start-1; fact=10;};
	
	d=start;
	e=end;
	newsound = sound;
	if (start!=50){
	var t=setTimeout("fade(newsound,d,e)",fact);
	};
}

<!--
// Nannette Thacker http://www.shiningstar.net
function confirmSubmit(title)
{
var agree=confirm("Are you sure you wish to delete "+title+"?");
if (agree)
	return true ;
else
	return false ;
}
// -->

function rate(track,rating){

	attach_file('update_rating.php?r='+rating+'&mp3='+ track);

}



function attach_file(p_script_url) {
      // create new script element, set its relative URL, and load it<br />
      script = document.createElement( 'script' );
      script.src = p_script_url;
      document.getElementsByTagName( 'head' )[0].appendChild( script );
}


function search(){

location.replace('./mplayer.php?genre=' + document.search.genre.options[document.search.genre.selectedIndex].value + '&mood=' + document.search.mood.options[document.search.mood.selectedIndex].value)

}






