function showLayer(layerId){
	try{
	document.getElementById("newsDiv").style.display='none';
	document.getElementById("newsHdr").style.display='none';
	} catch(err){}
	document.getElementById(layerId).style.display='block';
}
function hideLayer(layerId){
	document.getElementById(layerId).style.display='none';
	try{
	document.getElementById("newsDiv").style.display='block';
	document.getElementById("newsHdr").style.display='block';
	} catch(err){}
}
function getposOffset(what, offsettype){
	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl=what.offsetParent;
	while (parentEl!=null){
	totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
	parentEl=parentEl.offsetParent;
	}
	return totaloffset;
}

function galleryZoom(zoomTo,evt) {
	var ctnrElem = document.getElementById("imageLens");
	ctnrElem.innerHTML="<img src='" +zoomTo.src+ "' /><br /><strong style='color:white;'>click to un-zoom</strong>";
	//	var x=getposOffset(zoomTo, "left");
	//	var y=getposOffset(zoomTo, "top");
	//	ctnrElem.style.left= x + "px";
	//	ctnrElem.style.top= y + "px";
	ctnrElem.style.position="fixed";
	ctnrElem.style.top="2px";
	ctnrElem.style.left="2px";

	
	ctnrElem.style.display="block";
}
function noZoom() {
	var ctnrElem = document.getElementById("imageLens");
	ctnrElem.style.display="none";
	ctnrElem.innerHTML="";
}
function getCd(){
	var destinationURL = "http://www.amazon.com/s/ref=sr_nr_i_1/105-7487814-5647602?ie=UTF8&rs=&keywords=%26%2334%3Bsuperman%20curl%26%2334%3B&rh=i%3Aaps%2Ck%3A%26%2334%3Bsuperman%20curl%26%2334%3B%2Ci%3Apopular";
	var usrResponse;
	var winHandle;
	usrResponse = confirm("This will open a new window and take you to Superman Curl\'s recordings on Amazon.com.\n\nIs this OK with you?");
	if (usrResponse==true){
		winHandle=window.open(destinationURL,"orderWindow","",true);
		if (winHandle==null){document.location=destinationURL;}
	}
}

