var chromeColor="#3C0000";
var chromeWidth=770;
var bCrumbLevel_1="Entertainment";
var bCrumbLevel_2_text="Walt Disney Pictures";
var bCrumbLevel_2_url="http://disney.go.com/disneypictures/index.html";
var bCrumbLevel_3_text="The Nightmare Before Christmas 3-D";
var bCrumbLevel_3_url="http://disney.go.com/disneypictures/nightmare";
var legalFooterColor="#515151";

var legalFtrCpyRgt="&copy; Disney. All rights reserved.";
window.status="The Nightmare Before Christmas 3-D"
window.focus();

var legalFtrOpts = ["Register","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/wdpictures/chooseAge&name=g_legalFooter_register","Guest Services","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/wdpictures/lists&name=g_legalFooter_guestservices","Help","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://psc.disney.go.com/guestservices/index.html&name=g_legalFooter_help"]

// JOE'S QUERY SEARCH
function params(qp){ try{r=unescape(location.search.match(new RegExp(qp+"=+([^&]*)"))[1]);}catch(e){r='';} return r; }

// RESIZE POPUP WHEN COMING FROM DISNEY PICTURES HOMEPAGE
// DOCTYPE NEEDS TO BE HTML FOR THIS TO WORK
function resizeMe(width,height) {
	if (window.innerWidth){popWidth=window.innerWidth;popHeight=window.innerHeight;}else{popWidth=document.body.clientWidth;popHeight=document.body.clientHeight;}
	var left=(screen.width-width)/2;var top=(screen.height-height)/2;//FIGURE THE CENTER OF THE SCREEN
	self.window.moveTo(left,top)//MOVE THE POPUP TO THE CENTER
	popWidth=width-popWidth;popHeight=height-popHeight;window.resizeBy(popWidth, popHeight);//MAKE THE POPUP THE RIGHT SIZE
}
// Deeplink to Game
if(location.search.match(/game/)){window.open('game/game-popup.html','game','width=800,height=600')}

function openDisclaimer(URL){
win = window.open('http://disney.go.com/disneypictures/javascript/disclaimer/disclaimer.html?'+ URL, 'intermediate', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=210');}
ratingsDisclaimerFont="#000";
ratingsDisclaimerBackground="#FFF";
ratingsDisclaimerBorder="#000";

function openThe(what){
	if(what=="rules"){window.open('http://daninreallife.movies.go.com/disclaimer.html','rules','width=750,height=520,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0');}
}
// stuff for the file upload util
fileTypes=".jpg, .jpeg, .gif, .mpg, .mpeg, .mov, .wmv, .avi, .pdf, .tif, .png, .doc, and .txt.";
rejectedText="Supported file types are "+fileTypes+"<br />Please try again.";

uploadError="<br><br><br><span style=\"font:12px arial,helvetica,geneva,sans-serif\"><strong>Sorry. You have already uploaded a file.</strong></span><br><br><br>"

function openThe(what){
	if(what=="rules"){window.open('http://disney.go.com/disneypictures/nightmare/officialrules.html','rules','width=750,height=520,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0');}
}

function openThe2(){
	window.open('http://disney.go.com/disneypictures/nightmare/officialrules.html','rules','width=750,height=520,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0');
}

var areyouafan='<div align="center" id="howItWorks"><img src="http://disney.go.com/disneypictures/assets/invis.gif" alt="" width="450" height="350" border="0" usemap="#info"></div>';

document.write('<map name="info">\
<area coords="262,40,423,51"  title="Submission Guidelines"  href="http://disney.go.com/disneypictures/narnia/fanclub/disclaimer.html" target="disclaimer">\
<area coords="20,40,423,99"   title="To submit your artwork, read the [Submission Guidelines] and follow the instructions below.  Entries are limited to one file upload per fan.  Sponsor has no obligation to post or publish your uploaded submission">\
<area coords="49,134,223,149" title="Submit Your Artwork">\
<area coords="87,163,373,223" title="1. Use the BROWSE button to select a file from your computer (accpeted file types: .jpg). File size cannot exceed 15MB. Minimum resolution: 300 DPI.">\
<area coords="86,224,380,271" title="2. Provide a written description of what your artwork depicts in the DESCRIPTION box below.">\
<area coords="85,275,384,302" title="3. Check the box below, agreeing to the terms of submission.">\
<area coords="85,306,375,335" title="4. Click the UPLOAD button to submit your artwork.">\
</map>');

var uploadInstructions="";


var theFinePrint="<table><tr valign=\"top\"><td><input type=\"checkbox\" name=\"disclaimerCheckbox\" value=\"1\" id=\"disclaimerCheckbox\" onclick=\"checkValue();return true;\"></td><td style=\"padding-top:4px;\"><label for=\"disclaimerCheckbox\">By clicking this box and submitting my artwork, including any digital files and any other information, descriptions or materials (collectively, the \"Artwork\"), I agree to the following:</label></td></tr></table>";

uploadHeader='<img src="https://disney.go.com/disneypictures/narnia/registration/header.jpg" alt="" border="0">';

function uncheck(){
	document.getElementById('disclaimerCheckbox').checked==false;
	document.getElementById('buttonUpload').disabled=true;
}
function checkValue(){
	if(document.getElementById('disclaimerCheckbox').checked==true){
//		document.getElementById('buttonBrowse').disabled=false;
//		document.getElementById('descriptionField').disabled=false;
		document.getElementById('buttonUpload').disabled=false;
//		document.getElementById('buttonReset').disabled=false;
	}else{
//		document.getElementById('buttonBrowse').disabled=true;
//		document.getElementById('descriptionField').disabled=true;
		document.getElementById('buttonUpload').disabled=true;
//		document.getElementById('buttonReset').disabled=true;
	}
}