function toggleLyric(targetId) {
	var allDivs = document.getElementsByTagName('div');
	for(var i=0; i < allDivs.length; i++) {
		if(allDivs[i].className == 'lyrictracklist') {
			target = allDivs[i];
			if(target.id == targetId) {
		  		if(target.style.display == "none")
					target.style.display = "";
				else
					target.style.display = "none";
			}
			else {
				target.style.display = "none";
			}
		}
	}
}

function toggle(targetId) {
  	if(document.getElementById) {
  		target = document.getElementById(targetId);
  		if(target.style.display == "none") {
			target.style.display = "";
		} else {
			target.style.display = "none";
		}
	}
}

function viewPhoto(pageUrl,imgWidth,imgHeight) {
	var attributes = "height="+eval(eval(imgHeight)+100)+",width="+eval(eval(imgWidth)+30)+",directories=no,location=no,menubar=no,resizable,scrollbars=auto,toolbar=no";
	newWin = window.open(pageUrl,"imgWin",attributes);
}

function openReading(pageUrl) {
	var attributes = "height=650,width=800,directories=no,location=no,menubar=no,resizable,scrollbars=yes,toolbar=no";
	newWin = window.open(pageUrl,'reading',attributes);
}