<!--
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 addCartFrame(p_id,frm_id,gtag) {
	var link='/cgi-bin/mpw8/addtocart2.cgi?pid='+p_id+'&fid='+frm_id;
	var dtag = 0;
	if(document.getElementById('frdry')) {
		var dropdownIndex = document.getElementById('frdry').selectedIndex;
		dtag = document.getElementById('frdry')[dropdownIndex].value;
	}
	if (gtag) link = link + '&gtag=1';
	if (dtag == "1") link = link + '&dtag=1';
	if (document.all!=null) { // ie
		var iev = /MSIE 5\.2[123]/;
		var iep = /PowerPC/;
		var iestr = navigator.userAgent;
		if (iev.test(iestr) && iep.test(iestr)) {
			link = '/cgi-bin/mpw8/addtocartlite.cgi?pid='+p_id+'&fid='+frm_id;
			if (gtag) link = link + '&gtag=1';
			if (dtag == "1") link = link + '&dtag=1';
			window.location = link;
		} else {
			document.all['shoppingcart'].style.display = 'block';
			document.all['shoppingcart'].style.top = (screen.height/2 + document.body.scrollTop - parseInt(document.getElementById('shoppingcart').clientHeight)) + 'px';
			document.all['shoppingcart'].style.left = '175px';
			document.all['shoppingcart'].style.visibility = 'visible';
			document.all['shoppingcart'].src=link;
		}
	} else { // nn4 or nn6
		var nn6=(document.getElementById != null)
		if (nn6) {	// nn6
			document.getElementById('shoppingcart').style.display = 'block';
			document.getElementById('shoppingcart').style.top = (screen.height/2 + window.pageYOffset - parseInt(document.getElementById('shoppingcart').clientHeight)) + 'px';
			document.getElementById('shoppingcart').style.left = (screen.width/2 - parseInt(document.getElementById('shoppingcart').clientWidth)) + 'px';
			document.getElementById('shoppingcart').style.visibility = 'visible';
			document.getElementById('shoppingcart').src=link;
		} else { // we are in NN4
			popupWin=window.open(link+'&pl=1','remote','menubar=no,toolbar=no,location=no,directives=no,status,scrollbars,resizable=no,width=250,height=300');
			popupWin.focus();
		}
	}
}
function addWLFrame(p_id,frm_id,gtag) {
	var link='/cgi-bin/mpw8/addtowishlist.cgi?pid='+p_id+'&fid='+frm_id;
	if(document.getElementById('frdry')) {
		var dropdownIndex = document.getElementById('frdry').selectedIndex;
		dtag = document.getElementById('frdry')[dropdownIndex].value;
	}
	if (gtag) link = link + '&gtag=1';
	if (dtag == "1") link = link + '&dtag=1';
	if (document.all!=null) { // ie
		var iev = /MSIE 5\.2[123]/;
		var iep = /PowerPC/;
		var iestr = navigator.userAgent;
		if (iev.test(iestr) && iep.test(iestr)) {
			link = '/cgi-bin/mpw8/addtowishlist.cgi?pid='+p_id+'&fid='+frm_id;
			if (gtag) link = link + '&gtag=1';
			if (dtag == "1") link = link + '&dtag=1';
			window.location = link;
		} else {
			var myregex = /MSIE 7\.0/i;
			if(myregex.test(iestr)) scrollY = document.documentElement.scrollTop;
			else scrollY = document.body.scrollTop;
			document.all['wishlist'].style.display = 'block';
			document.all['wishlist'].style.top = (screen.height/2 + scrollY - parseInt(document.getElementById('wishlist').clientHeight)) + 'px';
			document.all['wishlist'].style.left = '175px';
			document.all['wishlist'].style.visibility = 'visible';			
			document.all['wishlist'].src=link;
		}
	} else { // nn4 or nn6
		var nn6=(document.getElementById != null)
		if (nn6) {	// nn6
			document.getElementById('wishlist').style.display = 'block';
			document.getElementById('wishlist').style.top = (screen.height/2 + window.pageYOffset - parseInt(document.getElementById('wishlist').clientHeight)) + 'px';
			document.getElementById('wishlist').style.left = (screen.width/2 - parseInt(document.getElementById('wishlist').clientWidth)) + 'px';
			document.getElementById('wishlist').style.visibility = 'visible';
			document.getElementById('wishlist').src=link;
		} else { // we are in NN4
			popupWin=window.open(link+'&pl=1','remote','menubar=no,toolbar=no,location=no,directives=no,status,scrollbars,resizable=no,width=250,height=300');
			popupWin.focus();
		}
	}
}
function addCartCanvas(p_id) {
	var link='/cgi-bin/mpw8/addtocart2.cgi?pid='+p_id+'&cv=1';
	if (document.all!=null) { // ie
		var iev = /MSIE 5\.2[123]/;
		var iep = /PowerPC/;
		var iestr = navigator.userAgent;
		if (iev.test(iestr) && iep.test(iestr)) {
			link = '/cgi-bin/mpw8/addtocartlite.cgi?pid='+p_id+'&cv=1';
			window.location = link;
		} else {
			document.all['shoppingcart'].style.display = 'block';
			document.all['shoppingcart'].style.top = (screen.height/2 + document.body.scrollTop - parseInt(document.getElementById('shoppingcart').clientHeight)) + 'px';
			document.all['shoppingcart'].style.left = '175px';
			document.all['shoppingcart'].style.visibility = 'visible';
			document.all['shoppingcart'].src=link;
		}
	} else { // nn4 or nn6
		var nn6=(document.getElementById != null)
		if (nn6) {	// nn6
			document.getElementById('shoppingcart').style.display = 'block';
			document.getElementById('shoppingcart').style.top = (screen.height/2 + window.pageYOffset - parseInt(document.getElementById('shoppingcart').clientHeight)) + 'px';
			document.getElementById('shoppingcart').style.left = (screen.width/2 - parseInt(document.getElementById('shoppingcart').clientWidth)) + 'px';
			document.getElementById('shoppingcart').style.visibility = 'visible';
			document.getElementById('shoppingcart').src=link;
		} else { // we are in NN4
			popupWin=window.open(link+'&pl=1','remote','menubar=no,toolbar=no,location=no,directives=no,status,scrollbars,resizable=no,width=250,height=300');
			popupWin.focus();
		}
	}
}
function addWLCanvas(p_id) {
	var link='/cgi-bin/mpw8/addtowishlist.cgi?pid='+p_id+'&cv=1';
	if (document.all!=null) { // ie
		var iev = /MSIE 5\.2[123]/;
		var iep = /PowerPC/;
		var iestr = navigator.userAgent;
		if (iev.test(iestr) && iep.test(iestr)) {
			link = '/cgi-bin/mpw8/addtowishlist.cgi?pid='+p_id+'&cv=1';
			window.location = link;
		} else {
			var myregex = /MSIE 7\.0/i;
			if(myregex.test(iestr)) scrollY = document.documentElement.scrollTop;
			else scrollY = document.body.scrollTop;
			document.all['wishlist'].style.display = 'block';
			document.all['wishlist'].style.top = (screen.height/2 + scrollY - parseInt(document.getElementById('wishlist').clientHeight)) + 'px';
			document.all['wishlist'].style.left = '175px';
			document.all['wishlist'].style.visibility = 'visible';			
			document.all['wishlist'].src=link;
		}
	} else { // nn4 or nn6
		var nn6=(document.getElementById != null)
		if (nn6) {	// nn6
			document.getElementById('wishlist').style.display = 'block';
			document.getElementById('wishlist').style.top = (screen.height/2 + window.pageYOffset - parseInt(document.getElementById('wishlist').clientHeight)) + 'px';
			document.getElementById('wishlist').style.left = (screen.width/2 - parseInt(document.getElementById('wishlist').clientWidth)) + 'px';
			document.getElementById('wishlist').style.visibility = 'visible';
			document.getElementById('wishlist').src=link;
		} else { // we are in NN4
			popupWin=window.open(link+'&pl=1','remote','menubar=no,toolbar=no,location=no,directives=no,status,scrollbars,resizable=no,width=250,height=300');
			popupWin.focus();
		}
	}
}
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 showFrameTab() {
	if (cvOnline) selCanvas('0');
	if (pqOnline) selPlaque('0');
	hidediv('contentReelMud');
	hidediv('hang');
	hidediv('castcrewdiv')
	showdiv('mainmpw');
	sethd('tabPoster');
	setsh('tabFrame');
	sethd('tabCanvas');
	sethd('tabPlaque');
	sethd('tabHanger');
	sethd('tabReelMud');
	selHangOption('Frame');
}
function showCanvasTab() {
	if (frOnline) selectFrame('0',0);
	if (pqOnline) selPlaque('0');
	hidediv('divFrame');
	hidediv('hang');
	hidediv('contentReelMud');
	hidediv('castcrewdiv')
	showdiv('mainmpw');
	sethd('tabPoster');
	sethd('tabFrame');
	sethd('tabPlaque');
	setsh('tabCanvas');
	sethd('tabHanger');
	sethd('tabReelMud');
	selCanvas('1');
}
function showPlaqueTab() {
	if (frOnline) selectFrame('0',0);
	hidediv('divFrame');
	hidediv('hang');
	hidediv('contentReelMud');
	hidediv('castcrewdiv')
	showdiv('mainmpw');
	sethd('tabPoster');
	sethd('tabFrame');
	sethd('tabCanvas');
	setsh('tabPlaque');
	sethd('tabHanger');
	sethd('tabReelMud');
	selPlaque('1');
}
function showHangerTab() {
	// if (cvStatus) selCanvas('0');
	if (cvOnline) selCanvas('0');
	if (pqOnline) selPlaque('0');
	// if (frStatus) selectFrame('0',0);
	if (frOnline) selectFrame('0',0);
	hidediv('mainmpw');
	hidediv('contentReelMud');
	hidediv('divFrame');
	hidediv('castcrewdiv')
	showdiv('hang');
	sethd('tabPoster');
	sethd('tabFrame');
	sethd('tabPlaque');
	sethd('tabCanvas');
	setsh('tabHanger');
	sethd('tabReelMud');
}
function showReelMudTab() {
	// if (cvStatus) selCanvas('0');
	if (cvOnline) selCanvas('0');
	if (pqOnline) selPlaque('0');
	// if (frStatus) selectFrame('0',0);
	if (frOnline) selectFrame('0',0);
	showdiv('mainmpw');
	showdiv('contentReelMud');
	showdiv('castcrewdiv');
	hidediv('divFrame');
	hidediv('hang');
	sethd('tabPoster');
	sethd('tabFrame');
	sethd('tabPlaque');
	sethd('tabCanvas');
	sethd('tabHanger');
	setsh('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();
	if (!frOnline) hidediv('tabFrame');
	if (!pqOnline) hidediv('tabPlaque');
	if (!cvOnline) hidediv('tabCanvas');
	if (!hgOnline) hidediv('tabHanger');
	if (!rmOnline) hidediv('tabReelMud');
}
//-->
