/*	image Mouse Over functions....
		on mouse over image
		present a pop up window with a larger version of image
*/


function open_new_window( orientation, imgSRC, caption ) {
	/*	paramters
		orientation = vertical | horizontal 
		imgSRC = image location (must be a web reference)
		caption = text for caption
		*/

	// open new window within document 
	if( orientation == 'vertical' ) {
		new_window = open( "", "hoverwindow", "width=600,height=820" );
	} else {
		new_window = open( "", "hoverwindow", "width=800,height=620" );
	}
	new_window.document.open();

	// window content
	new_window.document.write( "<html><head><title>caption</title></head>" );

	new_window.document.write( "<body bgcolor='#FFFFFF'>" );

	new_window.document.write( "<table width='100%'>" );
	new_window.document.write( "<tr valign='center'><td align='center'>"+caption+"</td></tr>" );
	new_window.document.write( "<tr valign='center'><td align='center'>" );
	if( orientation == 'vertical' ) {
		new_window.document.write( "<img height='600' src='"+imgSRC+"' /></caption>" );
	} else {
		new_window.document.write( "<img width='800' src='"+imgSRC+"' /></caption>" );
	}
	new_window.document.write( "</td></tr>" );
	new_window.document.write( "</table>" );
	new_window.document.write("</body></html>");

	// close the document
	new_window.document.close(); 
}

function close_window() {
	new_window.close();
}



