/*
 * common.js
 * 
 * Common Javascript methods for Art of the Matter
 * 
 */
 

 
// Opens the specified url in a new window with the given width and height
function openFullSize(url, width, height) 
{
	attr = 'width=' + width + ',height=' + height + ',toolbar=no,scrollbars=yes';
	htmlWindow = window.open(url, url, attr);
	htmlWindow.focus();
}

 

/*

function openGalleryFullSize(url, width, height)
{
	openFullSize( "images/gallery/" + url, width, height );
}

*/



/*
 *  Show the full-size version of an image
 */
function showImg(file, width, height, desc) {
	var image = document.getElementById('fullSizeImage');
	// image.style.visibility = "hidden";
	image.width = width;
	image.height = height;
	image.src= file + '.jpg';
	image.style.visibility = "visible";
	
	// var image = document.getElementById('description');
	// description.className = '';
	// description.innerHTML = desc;
}
	

	









