// <!-- hide from unwicked browsers

/*
   written by:  Dean Edwards
      contact:  mailto://dean@NERD.co.uk
         date:  18.05.2000
    copyright:  © 2000, WellWicked Records
*/

// constants
	
	var PLAY	= "play";
	var BUTTON	= "button";

	var MESSAGE	= "Play this track!";

// variables

	var imgIconLo 		= new Image(35, 35);
	imgIconLo.src 		= root + "traxx/" + IMAGES + BUTTON + LO + GIF;
	var imgIconHi 		= new Image(35, 35);
	imgIconHi.src 		= root + "traxx/" + IMAGES + BUTTON + HI + GIF;
	
	var imgCaptionLo 	= new Image(62, 14);
	imgCaptionLo.src 	= root + "traxx/" + IMAGES + PLAY + LO + GIF;
	var imgCaptionHi 	= new Image(62, 14);
	imgCaptionHi.src 	= root + "traxx/" + IMAGES + PLAY + HI + GIF;

function play_click(A, params) {
	if (imageCache) imageCache.stop();
	if (ie4 && !mac) A.href = VOID0;
	else return true;
	if (ie4 && A) A.blur();
//	play_off(1);
//	play_off(2);
	
	var w = 350;
	var h = 450;
	var l = 50;
	var t = 25;
	
	if (window.screen) {
		l = (screen.width - w) / 2;
		t = (screen.height - h) / 2;
	}
	var settings = 'height='+h+',width='+w+',top='+t+',left='+l+',resizable=no,scrollbars=no';
	window.params = unescape(params);
	window.open(root + 'traxx/player.htm', 'player', settings);
	
	return true;
}

function play_on(button) {
	if(document.images) {
		document.images[PLAY + K_ + ICO + K_ + button].src = imgIconHi.src;
		document.images[PLAY + K_ + CAP + K_ + button].src = imgCaptionHi.src;
	}
	window.status = MESSAGE;
}

function play_off(button) {
	if(document.images) {
		document.images[PLAY + K_ + ICO + K_ + button].src = imgIconLo.src;
		document.images[PLAY + K_ + CAP + K_ + button].src = imgCaptionLo.src;
	}
	window.status = READY;
}
// end -->