// gets an url of a picture az parameter
// opens a window with this picture in it
// creates a shadow above the page
function window_view($content)
{	
	// opens the window
	var mywindow = document.getElementById("window");
	//mywindow.style.top = event.clientY;
	mywindow.setAttribute("class", "window_show");
	mywindow.setAttribute("className", "window_show");
	
	//alert("in");
	
	// loads the content of the window
	mywindow.innerHTML = $content
	
	
	return false;
}
	
// closes the opened window
// closes the shadow
function window_close()
{
			
	// closes the window
	var mywindow = document.getElementById("window");
	mywindow.setAttribute("class", "window_hide");
	mywindow.setAttribute("className", "window_hide");
	
	// clears the content of the window
	mywindow.innerHTML = "";
	
	return false;
}

