function randomBackground(){
	var imageArray = new Array();
	imageArray[0]="windows.gif";
	imageArray[1]="chair.gif";
	imageArray[2]="goats.gif";
	imageArray[3]="gull.gif";
	imageArray[4]="hotdog.gif";
	imageArray[5]="hotdog_2.gif";
	imageArray[6]="shroom.gif";
	imageArray[7]="storm.gif";
	imageArray[8]="sunset.gif";
	imageArray[9]="sunshine.gif";
	var image = imageArray[Math.floor(Math.random()*imageArray.length)];
	document.getElementById("container").style.backgroundImage = "url('images/"+ image +"')";
}

function isPlayer(){
	var foo = parent.player.location.href;
	var pattern = new RegExp("player.html");
	var test = pattern.test(foo);
	if (!test){
		parent.player.location.href = "player.html";
	}
}

function randomColor() { 
	var red = Math.floor(Math.random() * 255); 
	var green = Math.floor(Math.random() * 255); 
	var blue = Math.floor(Math.random() * 255); 
	document.body.style.color = 'rgb('+red+','+green+','+blue+')'; 
	document.linkColor = 'rgb('+red+','+green+','+blue+')'; 
	document.alinkColor = 'rgb('+red+','+green+','+blue+')'; 
	document.vlinkColor = 'rgb('+red+','+green+','+blue+')'; 
}

function colorPlayer() {
//	parent.player.body.style.backgroundColor = "#484848"
//	parent.getElementById("player").body.style.backgroundColor = "#484848"
//	parent.getElementById("player").style.backgroundColor = "#484848"
}

function changeSong() {
//	var url ="audio/intro.mp3";
//	parent.player.getElementById("s2").sendEvent("LOAD",url);
}

