
function showPicture(img, path) {

	var theImage = document.getElementById('thePhoto');
	theImage.setAttribute('src', path);
	
	// unselect the previous icons
	var icons = document.getElementsByName('asset_icon');
	for (i = 0; i < icons.length; i++) {
		icons[i].className = 'unselected';
		//icons[i].setAttribute('class', 'unselected');
	}
	
	img.className = 'selected';

}

function playAudio(url) {
	var player = document.getElementById('ply');
	player.sendEvent("LOAD", url);
	player.sendEvent("PLAY");
}