var rewrite = "<object type='application/x-shockwave-flash' data='http://themanifolds.com/mp3player/player_mp3_multi.swf' width='300' height='20'><param name='movie' value='http://themanifolds.com/mp3player/player_mp3_multi.swf'><param name='bgcolor' value='000000'><param name='FlashVars' id='songlist' value='autoplay=1&amp;";




function playsong(newsong, newsongtitle)
{
var varfile=document.getElementById("songlist").getAttribute("value");
var varfile2 = varfile.replace("mp3=", "mp3="+newsong+"|");
var varfile3 = varfile2.replace("title=", "title="+newsongtitle+"|");
document.getElementById("songlist").setAttribute("value",varfile3)
var varfile=document.getElementById("songlist").getAttribute("value");
document.getElementById('musicPlayer').innerHTML = rewrite + varfile3 + "'></object>";


	if (c==0) {
	show_hide_menu();
	}
}


<!--****************Album cover Change***************-->

function changecover(album)
{

<!--Nicky Driscoll Covers-->

if (album==1)
{
	currentcover = document.getElementById("markingTimeCover").getAttribute("src");

	if (currentcover=="http://themanifolds.com/nickydriscoll/albums/markingtime/artwork/markingTimeFCover.jpg")
	{
	document.getElementById("markingTimeCover").setAttribute("src", 	"http://themanifolds.com/nickydriscoll/albums/markingtime/artwork/markingTimeBCover.jpg");
	}
	else 
	{
	document.getElementById("markingTimeCover").setAttribute("src", 	"http://themanifolds.com/nickydriscoll/albums/markingtime/artwork/markingTimeFCover.jpg");
	}
}
if (album==2)
{
	currentcover = document.getElementById("smallSongsCover").getAttribute("src");

	if (currentcover=="http://themanifolds.com/nickydriscoll/albums/smallsongs/artwork/smallSongsFCover.jpg") 
	{
	document.getElementById("smallSongsCover").setAttribute("src", 	"http://themanifolds.com/nickydriscoll/albums/smallsongs/artwork/smallSongsBCover.jpg");
	}
	else 
	{
	document.getElementById("smallSongsCover").setAttribute("src", 	"http://themanifolds.com/nickydriscoll/albums/smallsongs/artwork/smallSongsFCover.jpg");
	}
}



<!--Bearskin Covers-->

var currentcover;
if (album==3)
{
	currentcover = document.getElementById("goodbyeWorldCover").getAttribute("src");

	if (currentcover=="http://themanifolds.com/bearskin/albums/goodbyeworld/artwork/bearskincover.jpg")
	{
	document.getElementById("goodbyeWorldCover").setAttribute("src", "http://themanifolds.com/bearskin/albums/goodbyeworld/artwork/clouds.jpg");
	}
	else 
	{
	document.getElementById("goodbyeWorldCover").setAttribute("src", 	"http://themanifolds.com/bearskin/albums/goodbyeworld/artwork/bearskincover.jpg");
	}
}
if (album==4)
{
	currentcover = document.getElementById("heart2HartCover").getAttribute("src");

	if (currentcover=="albums/heart2hart/artwork/heart2hart.jpg") http://themanifolds.com/bearskin/
	{
	document.getElementById("heart2HartCover").setAttribute("src", "http://themanifolds.com/bearskin/albums/heart2hart/artwork/heart2hartB.jpg");
	}
	else 
	{
	document.getElementById("heart2HartCover").setAttribute("src", 	"http://themanifolds.com/bearskin/albums/heart2hart/artwork/heart2hart.jpg");
	}
}


<!--The Autonomous Rex Covers -->

if (album==6)
{
	currentcover = document.getElementById("tiger").getAttribute("src");

	if (currentcover=="http://themanifolds.com/autonomousrex/albums/tiger/artwork/tigerF.jpg") 
	{
	document.getElementById("tiger").setAttribute("src", "http://themanifolds.com/autonomousrex/albums/tiger/artwork/tigerB.jpg");
	}
	else 
	{
	document.getElementById("tiger").setAttribute("src", "http://themanifolds.com/autonomousrex/albums/tiger/artwork/tigerF.jpg");
	}
}


if (album==7)
{
	currentcover = document.getElementById("thePurpleClaw").getAttribute("src");

	if (currentcover=="http://themanifolds.com/autonomousrex/albums/thepurpleclaw/artwork/thePurpleClawF.jpg") 
	{
	document.getElementById("thePurpleClaw").setAttribute("src", "http://themanifolds.com/autonomousrex/albums/thepurpleclaw/artwork/thePurpleClawB.jpg");
	}
	else 
	{
	document.getElementById("thePurpleClaw").setAttribute("src", 	"http://themanifolds.com/autonomousrex/albums/thepurpleclaw/artwork/thePurpleClawF.jpg");
	}
}

<!--the Lauths-->

if (album==8)
{
	currentcover = document.getElementById("theRapAlbum").getAttribute("src");

	if (currentcover=="http://themanifolds.com/theohesians/albums/therapalbum/artwork/theRapAlbumF.jpg")
	{
	document.getElementById("theRapAlbum").setAttribute("src", 	"http://themanifolds.com/theohesians/albums/therapalbum/artwork/theRapAlbumFMouseOver.jpg");
	}
	else 
	{
	document.getElementById("theRapAlbum").setAttribute("src", 	"http://themanifolds.com/theohesians/albums/therapalbum/artwork/theRapAlbumF.jpg");
	}
}

if (album==9)
{
	currentcover = document.getElementById("rememberYouForget").getAttribute("src");

	if (currentcover=="http://themanifolds.com/theohesians/albums/rememberyouforget/artwork/rememberYouForgetF.jpg")
	{
	document.getElementById("rememberYouForget").setAttribute("src", 	"http://themanifolds.com/theohesians/albums/rememberyouforget/artwork/rememberYouForgetB.jpg");
	}
	else 
	{
	document.getElementById("rememberYouForget").setAttribute("src", 	"http://themanifolds.com/theohesians/albums/rememberyouforget/artwork/rememberYouForgetF.jpg");
	}
}

if (album==10)
{
	currentcover = document.getElementById("aThousandMiles").getAttribute("src");

	if (currentcover=="http://themanifolds.com/theohesians/albums/athousandmiles/artwork/aThousandMilesF.jpg")
	{
	document.getElementById("aThousandMiles").setAttribute("src", 	"http://themanifolds.com/theohesians/albums/athousandmiles/artwork/aThousandMilesFMouseOver.jpg");
	}
	else 
	{
	document.getElementById("aThousandMiles").setAttribute("src", 	"http://themanifolds.com/theohesians/albums/athousandmiles/artwork/aThousandMilesF.jpg");
	}
}

}<!--end of changeCover()-->



<!--*****music player motion script*******-->
var i=-100;
var c=0;
var intHide;
var speed=6;
function show_hide_menu()
{
if (c==0)
{
c=1;
clearInterval(intHide);
intShow=setInterval("show()",10);
}
else
{
c=0;
clearInterval(intShow);
intHide=setInterval("hide()",10);
}
}

function show()
{
if (i<-10) {
i=i+speed;
document.getElementById('musicPlayer').style.bottom=i;
}
}

function hide()
{
if (i>-90)
{
i=i-speed;
document.getElementById('musicPlayer').style.bottom=i;
}
}

