var sX;		// Store the user's current X position (FF Only)
var sY;		// Store the user's current Y position (FF Only)

// Function to show the CSS window
function showWindow(newid)
{
	// Set the user's current position
	sX = window.scrollX;
	sY = window.scrollY;

		
	// Set the "blanket" layer to inline display (show blanket layer)
	document.getElementById("blanket").style.display="inline";
	
	// Set the newid window to inline display (show newid window)
	document.getElementById(newid + "_window").style.display = "inline";
	
	// Show the body's scrollbars
	document.body.style.overflow="Hidden";
	
	// Scroll the user to (0,0)
	window.scrollTo(0,0);
}

// Function to hide all CSS windows
function closeWindows()
{
	// Re-add the body's scrollbars
	document.body.style.overflow="auto";
	
	// Hide the "blanket" layer
	document.getElementById("blanket").style.display="none";
	
	// Hide all CSS windows
	document.getElementById("a_window").style.display="none";
	document.getElementById("ahover_window").style.display="none";
	document.getElementById("body_window").style.display="none";
	document.getElementById("currently_on_window").style.display="none";
	document.getElementById("fic_window").style.display="none";
	document.getElementById("info_window").style.display="none";
	document.getElementById("infoOn_window").style.display="none";
	document.getElementById("info_b_window").style.display="none";
	document.getElementById("inner_body_window").style.display="none";
	document.getElementById("mainbody_window").style.display="none";
	document.getElementById("row_even_window").style.display="none";
	document.getElementById("row_odd_window").style.display="none";
	document.getElementById("section_header_window").style.display="none";
	document.getElementById("subtext_window").style.display="none";
	
	// Jump back to the previous position (FF only)
	window.scrollTo(sX, sY);
}
