
var isLoaded = false;

an = new Image(10, 18);
an.src = "../images/arrow_on.gif";
af = new Image(10, 18);
af.src = "../images/arrow_off.gif";


function img_act(imgName) {
	if (isLoaded) {
	document[imgName].src = an.src;
	}
}

function img_inact(imgName) {
	if (isLoaded) {
	document[imgName].src = af.src;
	}
}


function BrowserDetect() {
	var browser = navigator.appName
	if (browser=="Microsoft Internet Explorer") this.browser = "ie"
	else if (browser=="Netscape") this.browser = "ns"
	else this.browser = browser
	this.ie = (this.browser=="ie")
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	this.ver = parseInt(navigator.appVersion)
	this.ns = (this.browser=="ns")
	this.ns4 = (this.browser=="ns" && this.ver==4)
	this.ns5 = (this.browser=="ns" && this.ver==5)
	if (this.ie5) this.ver = 5
	this.min = (this.ns4||this.ns5||this.ie4||this.ie5)
}
is = new BrowserDetect();



function ups(url,w,h) {
	if (window.popup_window) {
		popup_window.close();
	}
	popup_window = window.open(url,"popup","toolbar=no,location=no,directories=no,status=no,scrollbars=auto,resizable=yes,copyhistory=no,width="+w+",height="+h+" ");
	popup_window.focus();
}

function upspic(url,w,h) {
	if (window.popup_window) {
		popup_window.close();
	}
	popup_window = window.open(url,"popup","hotkeys=no;toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width="+w+",height="+h+" ");
	popup_window.focus();
}


function zoompic(url,w,h) {
	upspic('',w,h)
	if (window.popup_window) {
		popup_window.document.write ('<html><head><meta http-equiv="expires" content="Now"><meta http-equiv="Pragma" content="no-cache"><title>Farsang-szauna</title></head><body bgcolor="#FFFFFF" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0">');
		popup_window.document.write ('<img src="'+url+'" width="'+w+'" height="'+h+'">');
		popup_window.document.write ('</body></html>');
		//popup_window.focus();
	}
}
