<!--
var allowSwap = false;
function changeShowcase(i) {
	if(allowSwap) {
		var id="artist_showcase";
		var imgObj;
		if (document.getElementById) {
			imgObj = document.getElementById(id);
			} else if(document.all) {
			imgObj = document.all.item(id);
			}
		if(imgObj) {
			imgObj.src=i;
			}
		}
	}
function elementExist(id) {
	if (document.getElementById) {
		return(document.getElementById(id));
		} else if(document.all) {
		return(document.all.item(id));
		}
	return false;
	}
function closeOverlays(olid,btnid) {
	var ols = new Array("send_to_friend","purchase_inquiry","a_video");
	var btns = new Array("btnSendToFriend","btnPurchaseInquiry","btnArtistVideo");
	for(var x=0;x<ols.length;x++) {
		if(olid!=ols[x]&&(oObj=elementExist(ols[x]))) {
			oObj.style.visibility = "hidden";
			}
		if(btns[x]!=btnid&&(btnObj=elementExist(btns[x]))) {
			btnObj.className = "nav_btn";
			}
		}
	}
function viewVideo() {
	var id="a_video";
	var btn="btnArtistVideo";
	closeOverlays(id,btn);
	if(fObj = elementExist(id)) {
		if(fObj.style.visibility=="visible") {
			fObj.style.visibility = "hidden";
			} else {
			fObj.style.visibility = "visible";
			}
		if(btnObj = elementExist(btn)) {
			if(btnObj.className=="nav_btn") {
				btnObj.className = "nav_btn_selected";
				} else {
				btnObj.className = "nav_btn";
				}
			}
		}
	}
function sendToFriend() {
	var id="send_to_friend";
	var btn="btnSendToFriend";
	closeOverlays(id,btn);
	if(fObj = elementExist(id)) {
		if(fObj.style.visibility=="visible") {
			fObj.style.visibility = "hidden";
			} else {
			fObj.style.visibility = "visible";
			}
		if(btnObj = elementExist(btn)) {
			if(btnObj.className=="nav_btn") {
				btnObj.className = "nav_btn_selected";
				} else {
				btnObj.className = "nav_btn";
				}
			}
		}
	}
function inquireOnPurchase() {
	var id="purchase_inquiry";
	var btn="btnPurchaseInquiry";
	closeOverlays(id,btn);
	if(fObj = elementExist(id)) {
		if(fObj.style.visibility=="visible") {
			fObj.style.visibility = "hidden";
			} else {
			fObj.style.visibility = "visible";
			}
		if(btnObj = elementExist(btn)) {
			if(btnObj.className=="nav_btn") {
				btnObj.className = "nav_btn_selected";
				} else {
				btnObj.className = "nav_btn";
				}
			}
		}
	}
function checkSendToFriend() {
	with(document.forms['toFriendForm']) {
		if(isValidEmail(from_friend.value)) {
			from_friend.style.backgroundColor="#ffffff";
			if(isValidEmail(to_friend.value)) {
				submit();
				} else {
				alert('Invalid email address entered. Please correct.');
				to_friend.style.backgroundColor="#cc3300";
				}
			} else {
			alert('Invalid email address entered. Please correct.');
			from_friend.style.backgroundColor="#cc3300";
			}
		}
	}
function checkPuchaseInquiry() {
	with(document.forms['purchaseInquiryForm']) {
		cust_email.style.backgroundColor="#ffffff";
		cust_name.style.backgroundColor="#ffffff";
		b_country.style.backgroundColor="#ffffff";
		b_zip.style.backgroundColor="#ffffff";
		if(isValidEmail(cust_email.value)) {
			var fullname = cust_name.value.split(" ");
			if(fullname.length<2||fullname[0]==""||fullname[1]=="") {
				alert('Please enter your full name.');
				cust_name.style.backgroundColor="#cc3300";
				} else if(b_country.value==""||b_country.value.length>2) {
				alert('Please select a valid country.');
				b_country.style.backgroundColor="#cc3300";
				} else if(b_country.value=="US"&&!formatZipCode(b_zip)) {
				alert('Please enter a valid U.S. zip code');
				b_zip.style.backgroundColor="#cc3300";
				} else {
				submit();
				}
			} else {
			alert('Invalid email address entered. Please correct.');
			cust_email.style.backgroundColor="#cc3300";
			}
		}
	}
function isNumeric(s) {
	for(var x=0;x<s.length;x++) {
		if((s.charCodeAt(x) < 48 || s.charCodeAt(x) > 57)) {
			return false;
			}
		}
	return true;
	}
function formatZipCode(o) {
	o.value = o.value.replace(" ","");
	switch(o.value.length) {
		case 5:
			if(!isNumeric(o.value)) {
				return false;
				}
			break;
		case 9:
			if(isNumeric(o.value)) {
				o.value = o.value.substring(0,5)+"-"+o.value.substring(5);
				} else {
				return false;
				}
			break;
		case 10:
			if(isNumeric(o.value.substring(0,5))&&isNumeric(o.value.substring(6))) {
				o.value = o.value.substring(0,5)+"-"+o.value.substring(6);
				} else {
				return false;
				}
			break;
		default:
			return false;
			break;
		}
	return true;
	}
function isValidEmail(e) {
	if(e.lastIndexOf(".")<1||e.indexOf("@")<1||e.lastIndexOf(".")<e.indexOf("@")||(e.lastIndexOf(".")-e.indexOf("@"))<=1||
	e.lastIndexOf(".")>=(e.length-2)
	) {	
		return false;
		}
	return true;
	}
function setItemName(s) {
	if(nObj = elementExist("item_name")) {
		nObj.innerHTML = s;
		}
	}
//-->