// -------------------------------------------------------- global -------------------------------------------------------- 
var ae = String.fromCharCode(228);
var ue = String.fromCharCode(252);
var oe = String.fromCharCode(246);
var sz = String.fromCharCode(223);

//function newWin(mypage, myname, w, h, scroll, resizable){
function newWin(mode, name){
	if (window.winImages && window.winImages.open && !window.winImages.closed){
		winImages.close();
	}
	w = imgArr[mode][name][1];
	h = imgArr[mode][name][2];
	mypage = "img_gross.html?mode="+mode+"&name="+name+"&w="+w+"&h="+h+"";
	var winl = (screen.availWidth - w) / 2;
	var wint = (screen.availHeight - h) / 3;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no,status=no'
	winImages = window.open(mypage, name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winImages.window.focus(); }
}

function closeDep() {
	if(navigator.platform.indexOf("Mac")>-1){
		if (window.winImages && !window.winImages.closed){winImages.close();}
	} else {
		if (window.winImages && window.winImages.open && !window.winImages.closed){winImages.close();}
	}
}
