

<!--
setInterval("set_time()",1000);

var musdir = "";
var musics = new Array(
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Animosity.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Burning.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Deceived.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Disease.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Downside.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Fall.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Leave.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Scarified.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Time.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Klank - Woodensoul.wma",

"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - Blood Sacrifice.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - Bloodworld.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - Distarnish Priest.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - Grind Planetarium.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - Mephibosheth.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - New Beginning.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - Nocturnal.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - Primitive Rhythm Machine.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - Scrolls Of The Megilloth.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - The Destroyer Beholds.wma",

"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - The Majestic Infiltration of Orde.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/Mortification - Your Life.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/New Jerusalem - A Melody, A Symphony, A Song.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/New Jerusalem - Forgiven.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/New Jerusalem - Foundation.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/New Jerusalem - Hail Tonight.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/New Jerusalem - Judgement Day.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/New Jerusalem - Living in the Light.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/New Jerusalem - Sincerity.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/New Jerusalem - Take Me Home.wma",

"http://media1.praize.com/radio/files/playlist/songs/Hard/New Jerusalem - You Are My Life.wma",
"http://media1.praize.com/radio/files/playlist/songs/Hard/P.O.D - Alive.wma");

var titles = new Array(
"Animosity",
"Burning",
"Deceived",
"Disease",
"Downside",
"Fall",
"Leave",
"Scarified",
"Time",
"Woodensoul",

"Blood Sacrifice",
"Bloodworld",
"Distarnish Priest",
"Grind Planetarium",
"Mephibosheth",
"New Beginning",
"Nocturnal",
"Primitive Rhythm Machine",
"Scrolls Of The Megilloth",
"The Destroyer Beholds",

"The Majestic Infiltration...",
"Your Life",
"A Melody, A Symphony...",
"Forgiven",
"Foundation",
"Hail Tonight",
"Judgement Day",
"Living in the Light",
"Sincerity",
"Take Me Home",

"You Are My Life",
"Alive");




var artists = new Array(
"Klank",
"Klank",
"Klank",
"Klank",
"Klank",
"Klank",
"Klank",
"Klank",
"Klank",
"Klank",

"Mortification",
"Mortification",
"Mortification",
"Mortification",
"Mortification",
"Mortification",
"Mortification",
"Mortification",
"Mortification",
"Mortification",

"Mortification",
"Mortification",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",

"New Jerusalem",
"P.O.D.");


var albums = new Array(
"Still Suffering",
"Still Suffering",
"Still Suffering",
"Still Suffering",
"Still Suffering",
"Still Suffering",
"Still Suffering",
"Still Suffering",
"Still Suffering",
"Still Suffering",

"1990-1995 Five Years",
"1990-1995 Five Years",
"1990-1995 Five Years",
"1990-1995 Five Years",
"1990-1995 Five Years",
"1990-1995 Five Years",
"1990-1995 Five Years",
"1990-1995 Five Years",
"1990-1995 Five Years",
"1990-1995 Five Years",

"1990-1995 Five Years",
"1990-1995 Five Years",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",
"New Jerusalem",

"New Jerusalem",
"Satellite");



var url = new Array(
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",

"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",

"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",

"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>",
"<a href=http://praize.spreadtheword.com/store/BrowseCategories/asp/Cat0/689/Cat0Literal/Music/Cat1/727/Cat1Literal/Rock/Cat2/802/Cat2Literal/Hard%20Rock target=0>Buy this Album</a>");



var images = new Array(
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",
"http://media.praize.com/radio/images/covers/klank_stillsuffering.gif",

"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",

"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/mortification_fiveyears.gif",
"http://media.praize.com/radio/images/covers/newjerusalem_newjerusalem.gif",
"http://media.praize.com/radio/images/covers/newjerusalem_newjerusalem.gif",
"http://media.praize.com/radio/images/covers/newjerusalem_newjerusalem.gif",
"http://media.praize.com/radio/images/covers/newjerusalem_newjerusalem.gif",
"http://media.praize.com/radio/images/covers/newjerusalem_newjerusalem.gif",
"http://media.praize.com/radio/images/covers/newjerusalem_newjerusalem.gif",
"http://media.praize.com/radio/images/covers/newjerusalem_newjerusalem.gif",
"http://media.praize.com/radio/images/covers/newjerusalem_newjerusalem.gif",

"http://media.praize.com/radio/images/covers/newjerusalem_newjerusalem.gif",
"http://media.praize.com/radio/images/covers/pod_satellite.gif");
/////////////////////////////////////
var id = 0;
var backid = -1;
var status = 0;
var mode = "wm";
var mute_status = 0;
var stop_status = 0;
var _volume_back = 50;
var maxid = 32;
var toc = 0;

function seturlr(){
	id = Math.floor(Math.random() * maxid);
	seturl(musics[id]);
	chgtext(id);
}

function seturl(url){
	if(mode != 'rm'){
		document.getElementById('wmp').URL = url;
	}
	else{
		document.getElementById('wmp').SRC = url;
	}
	show_volume();
}

function wmp_go(){
	if(status == 0){
		wmp_play();
	}
	else{
		wmp_pause();
	}
}

function wmp_stop(){
	document.getElementById('wmp').CurrentPosition=0;
document.getElementById('wmp').controls.stop();
	stop_status = 1;
	playbtn = "play";
	document.getElementById(playbtn).src="images/player_bt_play.gif";
	status = 0;

	chgtext(-1);

	show_volume();
	set_time();
	//seturlr();
}

function wmp_pause(){
	document.getElementById('wmp').controls.pause();
	stop_status = 1;
	playbtn = "play";
	document.getElementById(playbtn).src="images/player_bt_play.gif";
	status = 0;

	show_volume();
	set_time();
}

function _setup(_id){
	//srand();
	seturlr();
	//seturl(musics[_id]);
	wmp_play();
	//id = _id;
	chgtext(id);
}

function wmp_play(){
	stop_status = 0;
	playbtn = "play";
	document.getElementById(playbtn).src="images/player_bt_temstop.gif";
	status = 1;

//	if(id >= (musics.length)){id = 0;}
	chgtext(id);
//	if(backid != id)
//		document.getElementById('wmp').URL = musics[id];
	backid = id;

	document.getElementById('wmp').controls.play();
	show_volume();
	set_time();
}

function wmp_play2(_id){
	id = _id;
	wmp_play();
}

function wmp_next(){
//	id = ((id > musics.length) ? 0 : id + 1);
	seturlr();
	show_volume();
}

function set_time(){
		t1 = document.getElementById('wmp').controls.currentPositionString;
		if(t1 == ""){
			t1 = "00:00";
		}
		t2 = document.getElementById('wmp').currentMedia.durationString;
		if(t2 == ""){
			t2 = "00:00";
		}
		document.getElementById("curtime").innerHTML = t1;
		document.getElementById("maxtime").innerHTML = t2;
}

function wmp_nextplay(){
//	if(!stop_status){
		wmp_next();
		document.getElementById('wmp').controls.currentPosition = 0;
//	}
//	show_volume();
	focus();
//	blur();
	toc = setTimeout("wmp_click()", 1);
}

function wmp_click(){
//	focus();
//	document.getElementById('play').click();
	wmp_stop();
	wmp_play();
}

function wmp_prev(){
	id = ((id <= 0) ? musics.length - 1 : id - 1);

	show_volume();
}

function wmp_prevplay(){
	wmp_prev();
	wmp_play(id);

	show_volume();
}

function chgtext(_id){
	if(_id == -1){
		document.getElementById("title").innerHTML = "";
		document.getElementById("artist").innerHTML = "";
		document.getElementById("album").innerHTML = "";
		document.getElementById('image').src = "images/gray_bg.gif";
	}
	else{
		document.getElementById("title").innerHTML = titles[_id];
		document.getElementById("artist").innerHTML = artists[_id];
		document.getElementById("album").innerHTML = albums[_id];
                document.getElementById("url").innerHTML = url[_id];
		document.getElementById('image').src = images[_id];
	}

	show_volume();
}

function show_volume(){
	_volume = document.getElementById("wmp").settings.volume;
	document.getElementById("volume").innerHTML = ""+_volume;
}

function wmp_mute_go(){
	if(mute_status){
		mute_status = 0;
		document.getElementById("wmp").settings.volume = _volume_back;
		document.getElementById('mute').src = "images/player_bt_vol.gif";
	}
	else{
		mute_status = 1;
		_volume_back = document.getElementById("wmp").settings.volume;
		document.getElementById("wmp").settings.volume = 0;
		document.getElementById('mute').src = "images/player_bt_vol0.gif";
	}
}

function wmp_volume(v){
	_volume_back = v;
	document.getElementById("wmp").settings.volume = _volume_back;
	show_volume();
}

function volume(id){
	img1 = 'images/1pixel.gif';
	img2 = 'images/media_icon3.gif';

	document.getElementById('volume_icon0').src = (id == 0) ? img2 : img1;
	document.getElementById('volume_icon1').src = (id == 1) ? img2 : img1;
	document.getElementById('volume_icon2').src = (id == 2) ? img2 : img1;
	document.getElementById('volume_icon3').src = (id == 3) ? img2 : img1;

	_volume = 0 - (id * 1500);
	document.getElementById("wmp").volume = _volume;
}

function wmp_volumeup(){
	_volume = document.getElementById("wmp").settings.volume;
	document.getElementById("wmp").settings.volume = _volume + 10;
	_volume = document.getElementById("wmp").settings.volume;
	show_volume();
}

function wmp_volumedown(){
	_volume = document.getElementById("wmp").settings.volume;
	document.getElementById("wmp").settings.volume = _volume - 10;
	_volume = document.getElementById("wmp").settings.volume;
	show_volume();
}

function voldown(){
}

// -->


