questExist=false;zoomExist=false;
_d=document;
function actQuest () {
	if (!questExist) {
		_d.body.insertAdjacentHTML ('beforeEnd','<div id="quest" style="position:absolute; width:500; height:400; filter:progid:DXImageTransform.Microsoft.Shadow(color=#404040,direction=135,strength=15); border: 1 solid Black;"><iframe id="qData" width="100%" height="100%" frameborder="0" scrolling="No"></iframe></div>');
		questExist=true
	}
	else quest.style.display='';
	qData.location.href='/quest.asp';
	quest.style.top=_d.body.scrollTop+(_d.body.clientHeight-quest.clientHeight)/2;
	quest.style.left=_d.body.scrollLeft+(_d.body.clientWidth-quest.clientWidth)/2;
	return false;
}
function iZoom(ni) {
	/*if (!zoomExist) {
		_d.body.insertAdjacentHTML ('beforeEnd','<div id="zoom" style="position:absolute; display=none; filter:progid:DXImageTransform.Microsoft.Shadow(color=#404040,direction=135,strength=15); border: 1 solid Black;"><iframe id="zData" width="100%" height="100%" frameborder="0" scrolling="No"></iframe></div>');
		zoomExist=true
	};
	zData.location.href='zoom.asp?'+ni;*/
	window.open ('zoom.asp?'+ni, 'img', 'fullscreen=yes,status=no,scrollbars=no,resizable=no,titlebar=no,toolbar=no');
	return false;
}
function alignZoom () {
	with (parent.zoom.style) {
		display='';
		x=event.srcElement.clientWidth;
		width=(x>900)?900:x;
		zdiv.style.width=(x>900)?898:x;
		y=event.srcElement.clientHeight+38;
		height=(y>500)?500:y;
		zdiv.style.height=(x>500)?498-38:y;
		top=parent.document.body.scrollTop+(parent.document.body.clientHeight-parent.zoom.clientHeight)/2;
		left=parent.document.body.scrollLeft+(parent.document.body.clientWidth-parent.zoom.clientWidth)/2;
	}
	return false;
}
function act(the) {
	with(the.style) display=(display=='')?'none':'';
	return false;
}
function actMenu(the) {
	if (the.style.display!='')
		for (i=1;i<6;i++)
			eval ('menu'+i).style.display='none';
	act (the);
	return false;
}
function eMail (ema,domain,txt) {
	ema+='@'+domain;
	if (txt=='') txt=ema;
	document.write ('<a href="mailto:'+ema+'">'+txt+'</a>');
	return false;
}
function url (u,txt) {
	document.write ('<a href="'+u+'" target="_blank">'+txt+'</a>');
	return false;
}
