var __pid=34532;
var __am_invisible=1;
	
	function showStory(whichLayer) {
		document.getElementById('greyout').style.display = 'block';
		document.getElementById('greyout').style.width = '100%';
		document.getElementById('greyout').style.height = '100%';
		document.getElementById('selected_story').style.display = 'block';
		document.getElementById('selected_story').style.width = '70%';
		document.getElementById('selected_story').style.height = '80%';
		if (whichLayer == "selected_story") {
			document.getElementById('sort_forms').style.display = 'none';
		}
	}

	function hideStory(whichLayer) {
		document.getElementById('greyout').style.display = 'none';
		document.getElementById('selected_story').style.display = 'none';
		if (document.getElementById('sort_forms').style.display == 'none') {
			document.getElementById('sort_forms').style.display = 'block';
		}
	}
	
	function getHeight() {
		var divh = document.getElementById('selected_story').offsetHeight;
		var divw = document.getElementById('selected_story').offsetWidth;
		document.getElementById('div_story').style.height = divh-45 +"px";
		document.getElementById('div_story').style.width = divw-45 +"px";
		document.getElementById('div_story').style.overflow = 'auto';
		//alert(divh +"px");
	}