// JavaScript Document
	/*var w = 950;
	var h = 1300;
		
	if (navigator.appName=="Netscape") {
		top.outerWidth=w;
		top.outerHeight=h;
	} else {
		window.resizeTo(w,h);
	}*/
	
	var uploadPath = "";
	
	function update(name, title, story, story2, youremail, parentemail) {
		//alert("update: "+name+" : "+title);
		window.fileUploadFrame.updateForm(name, title, story, story2, youremail, parentemail);
	}
	
	function switchFrames() {
		document.getElementById('fileUploadBox').style.top = '-5000px';
		document.getElementById('thanksLayer').style.top = '250px';
		
	}
	function showFileUpload(hideThanks) {
		document.getElementById('fileUploadBox').style.left = '404px';
		document.getElementById('fileUploadBox').style.top = '193px';
		document.getElementById('uploadIFrame').src = "photoUpload.jhtml";
		if(hideThanks == 1) {
			//hideThanksLayer();
		}
	}

	function hideFileUpload(show) {
		var showThanks = show;
		document.getElementById('fileUploadBox').style.left = '-5000px';
		if(showThanks == 1) {
			//showThanksLayer(0);
		}
	}
	
	function showThanksLayer(hide) {
		var hideFile = hide;
		document.getElementById('thanksLayer').style.top = '13px';
		document.getElementById('thanksLayer').style.left = '18px';
		if(hideFile == 1) {
			hideFileUpload(1);
		}
	}
	
	function hideThanksLayer() {
		document.getElementById('thanksLayer').style.top = '-5000px';
	}
	
	function sendSuccess(id) {
		uploadPath = "http://www.nick.com/ads/dannon/rockyourblock/getter.jhtml?colID=296&qID=1001&entryID="+String(id);
		setTimeout("delayedSuccess()", 3500);
	}
	
	function delayedSuccess() {
	
		var browserTwo = navigator.appName;
		
		if(browserTwo == "Netscape") {
			var flashSwf = document['main'];;
		} else {
			var flashSwf = document['main'];
		}
		
		hideUploadWindow();	
		flashSwf.submitSucess(uploadPath);
	}
	

	function sendError(arg) {
		var browserThree = navigator.appName;
	
		if(browserThree == "Netscape") {
			var flashSwfError = document['main'];
		} else {
			var flashSwfError = document['main'];
		}
		flashSwfError.hideUploadProgress();
		flashSwfError.submitError(arg);
	}
	
	function showUploadWindow() {
		hideFileUpload();
		var browserThree = navigator.appName;
	
		if(browserThree == "Netscape") {
			var flashSwfError = document['main'];
		} else {
			var flashSwfError = document['main'];
		}
		
		flashSwfError.showUploadProgress();
	}
	
	function hideUploadWindow() {
	
		var browserTwo = navigator.appName;
		
		if(browserTwo == "Netscape") {
			var flashSwf = document['main'];;
		} else {
			var flashSwf = document['main'];
		}
		
		flashSwf.hideUploadProgress();
	}