var imgPath = "";
var framesTop = parent.parent;
function imgClick()
{
	var imgIdx = "";
	var parentPage = framesTop;
	var eImg = window.event.srcElement;

	if( eImg.tagName != "IMG" )return;
	imgPath = eImg.src;
	imgPath = imgPath.replace( "/small/", "/big/");
	/*imgIdx = imgPath.substr( imgPath.indexOf( "img"), imgPath.indexOf( ".jpg") - imgPath.indexOf( "img") );
	
	document.write( "<HTML>\n");
	document.write( "<HEAD>\n");
	document.write( "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;\" CHARSET=\"windows-1251\"/>\n" );
	document.write( "</HEAD>\n");
	document.write( "<BODY>\n");
	document.write( "<IMG align=\"center\"src=\"" + imgPath + "\">\n<BR>\n");
	document.write( "<A align=\"center\" href=\"/store/");
	switch( parentPage.currLNG )
	{
		case parentPage.lngUA:
			document.write( "ua/gallery.html" );
			if( imgIdx != "" )document.write( "#" + imgIdx );
			document.write( "\"><FONT face=\"Tahoma, Arial, Times Nes Roman\" size=\"8pt\">Повернутися до фотовиставки</FONT></A>");	
			break;
		case parentPage.lngRU:
			document.write( "ru/gallery.html" );
			if( imgIdx != "" )document.write( "#" + imgIdx );
			document.write( "\">Вернуться в фотовыставку</A>");	
			break;
		case parentPage.lngEN:
			document.write( "en/gallery.html" );
			if( imgIdx != "" )document.write( "#" + imgIdx );
			document.write( "\">Back to the photogallery</A>");	
			break;
	}
	document.write( "\n</BODY>");
	document.write( "\n</HTML>");*/
	window.open( imgPath );
}