var newWin;
var is_opera = (navigator.userAgent.indexOf("Opera")!=-1);
var t = "resizable=yes,scrollbars=yes,height=600,width=780";

//для вывода фрагментов рукописей
function winopen(num){
var url = "show_img.php?n=" + num;
	if(!newWin || newWin.closed || is_opera){
    newWin= window.open(url,"new", t);
	if(newWin.focus) newWin.focus();
    }
	else {
    newWin.location.href = url;
    if(newWin.focus) newWin.focus();
    }
} 

//для вывода картинок с первой страницы
function winopen1(img,n){
var url = "img/" + img + ".jpg";
var str = '<html><head><title>Ancient Qur’ans</title><LINK href="gen.css" type="text/css" rel="stylesheet"></head><body><div class="nav">' + '<A HREF="javascript:this.close()">Close the window</A>' + '</div><p class="center"><img src="' + url + '" vspace=10><br><br>' + text[n] + "</p></body></html>";

	if(!newWin || newWin.closed || is_opera){
    newWin= window.open("","new", t);
	newWin.document.open();
    newWin.document.write(str);
	newWin.document.close();
	if(newWin.focus) newWin.focus();
    }
	else {
   	newWin.document.open();
    newWin.document.write(str);
	newWin.document.close();
	if(newWin.focus) newWin.focus();
    }
}
var text = new Array();
text[0]= "Jan Joseph Marcel (1776-1854)";
text[1]= "Mosque of Amr ibn al-As<BR>in Old Cairo (Fustat)";
