<!--
var atcOriginal;
var atwOriginal;
function saveAtc() {
	if (document.getElementById) {
		if (document.getElementById('atc')) {
			atcOriginal = document.getElementById('atc').href;
		}
		if(document.getElementById('atc2')) {
			atcOriginal = document.getElementById('atc2').onclick;
		}
	}
}
function saveAtw() {
	if (document.getElementById) {
		if (document.getElementById('atw')) {
			atwOriginal = document.getElementById('atw').href;
		}
		if(document.getElementById('atw2')) {
			atwOriginal = document.getElementById('atw2').onclick;
		}
	}
}
function showPoster() {
	// if (cvStatus) selCanvas('0');
	if (cvOnline) selCanvas('0');
	if (pqOnline) selPlaque('0');
	// if (frStatus) selectFrame('0',0);
	if (frOnline) selectFrame('0',0);
	hidediv('contentReelMud');
	hidediv('divFrame');
	hidediv('hang');
	showdiv('mainmpw');
	showdiv('castcrewdiv');
	setsh('tabPoster');
	sethd('tabFrame');
	sethd('tabCanvas');
	sethd('tabPlaque');
	sethd('tabHanger');
	sethd('tabReelMud');
}
function hidediv(id) {
	if (document.getElementById) {
		if (document.getElementById(id)) {
			document.getElementById(id).style.display = 'none';
		}
	}	else {
		if (document.layers) {
			document.id.display = 'none';
		} else {
			document.all.id.style.display = 'none';
		}
	}
}
function showdiv(id) {
	if (document.getElementById) {
		if (document.getElementById(id)) {
			document.getElementById(id).style.display = 'block';
		}
	} else {
		if (document.layers) {
			document.id.display = 'block';
		} else {
			document.all.id.style.display = 'block';
		}
	}
}
function sethd(obj) {
	if (document.getElementById(obj)) {
		document.getElementById(obj).style.borderBottom = '1px solid #000000';
		document.getElementById(obj).style.borderTop = '1px solid #000000';
		document.getElementById(obj).style.backgroundColor = '#336699';
		document.getElementById(obj).style.color = '#ffffff';
	}
}
function setsh(obj) {
	if (document.getElementById(obj)) {
		document.getElementById(obj).style.borderBottom = '1px solid #F2F4F9';
		document.getElementById(obj).style.borderTop = '1px solid #000000';
		document.getElementById(obj).style.backgroundColor = '#F2F4F9';
		document.getElementById(obj).style.color = '#000000';
	}
}
function initvpid() {
	saveAtc();
	saveAtw();
}
function notifyMe() {
	var email = document.getElementById('notifyEmail').value;
	var pid = document.getElementById('pid').value;
	var notifyRequest = new AsyncRequest();
	notifyRequest.data="pid="+pid+"&email="+email;
	notifyRequest.method="POST";
	notifyRequest.url=document.getElementById('notifyForm').action;
	notifyRequest.cache=false;
	notifyRequest.callback=function(responseText) {
		if(responseText == 0) {
			alert("There was an error saving your email address, please try again.");
		} else {
			document.getElementById('divNotify').innerHTML = '<p><b>You will be notified when item comes in stock.</b></p>';
			document.getElementById('notifybutton').style.display = 'none';
		}
	}
	notifyRequest.send(null);	
}
//-->

