isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;
Opera = false;
if (typeof(window.opera) != 'undefined') {
	browserName = ' ' + navigator.userAgent.toLowerCase();
	if ((browserName.indexOf('opera') != 0)) {
		Opera = true;
		isIE5 = isIE4 = isNS6 = isNS4 = false;
	};
};
//	alert('NS4='+isNS4+', NS6='+isNS6+', IE4='+isIE4+', IE5='+isIE5+', Opera='+Opera);

//----------------------------------------------------------------------------------

function DoZoom (path, w, h) {
	param = "toolbar=no,directories=no,scrollbars=yes,status=no,menubar=no,"+
	        "resizable=yes,"+"width="+(w+17)+",height="+h;
	NewWindow = window.open("", "photo"+(Math.round(Math.random()*100)), param);
	
    NewWindow.document.open();
	NewWindow.document.write('<html><head><title></title><META HTTP-EQUIV="Content-Type CONTENT="text/html; charset=windows-1251"></head>');
	NewWindow.document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="this.focus()">');
	NewWindow.document.write('<img src="'+path+'" border=0 width='+w+' height='+h+'><br>');
	NewWindow.document.write('</body></html>');
	NewWindow.document.close();  
}

function GirlClick () {
	obj = document.getElementById('iFrameGirl');
	if (isIE4 || isIE5) frames['iFrameGirl'].location.href = 'girl.php';
	else obj.src = 'girl.php';
	
	obj.style.visibility = 'visible';
	setTimeout("obj.style.visibility = 'hidden'", 1000);
}

