function r(oElement)
{
	oElement._class	= oElement.className;
	oElement.className	= "over";
}
function t(oElement)
{
	oElement.className	= oElement._class;
}

var v=parseInt(navigator.appVersion);
isNetscape=navigator.appName.indexOf('Netscape')>=0;
isExplorer=navigator.appName.indexOf('Explorer')>=0;
if (v>=3) self.focus();



function onOff(elemID){
	if (isExplorer) {attrName='inline'} else {attrName='table-row-group'};
	if (document.getElementById(elemID).style.display == attrName)
	{
		document.getElementById(elemID).style.display = "none";
	}else{
		document.getElementById(elemID).style.display = attrName;
	}
}



function gallPopup(goLocation) {
ww = 900;
wh = 700;
scr = 1;
positionCode	= '';

		if (v>=4) {
			sw=screen.width; sh=screen.height;
			wbx=Math.round((sw-ww)/2); wby=Math.round((sh-wh)/2)-25;
			if (isExplorer) positionCode='left='+wbx+',top='+wby+',';
			if (isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
		}

window.open(goLocation,'','width='+ww+',height='+wh+','+positionCode+'toolbar=0,'+'scrollbars='+scr+','+'resizable=0');
}


function checkData(oForm){
			var oElement, req;
			var right = true;

			for (var i = 0; i<oForm.elements.length; i++){
				oElement	= oForm.elements[i];
				oElement.style.borderColor = "#8EE2F5";

				req = oElement.getAttribute('req');
				if ( req == "1" && oElement.value == ""){
						oElement.style.borderColor = "#ff0000";
						var right = false;
				}

			}
			return right;
		}


function popUp(goLocation,ww,wh,scr) {


		goLocation = "/img/"+goLocation;

		if (scr != 1){
			scr = 0;
		}else{
			ww = Number(ww) + 16;
		}
		positionCode='';

		if (v>=4) {
			sw=screen.width; sh=screen.height;
			wbx=Math.round((sw-ww)/2); wby=Math.round((sh-wh)/2)-25;
			if (isExplorer) positionCode='left='+wbx+',top='+wby+',';
			if (isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
		}

		page = window.open(goLocation,'','width='+ww+',height='+wh+','+positionCode+'toolbar=0,'+'scrollbars='+scr+','+'resizable=0');
		page.document.open();
		pagecode = '<HEAD><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=windows-1251" /><title>Ðåñòîðàííàÿ ãðóïïà ÒÐÈÒÎÍ</title></HEAD><BODY STYLE="margin: 0px; padding: 0px"><table height="100%" cellpadding=0 cellspacing=0><tr><td height="100%" valign="middle"><A HREF="#" OnClick="javascript: window.close(); return false;"><img src="' + goLocation + '" ALT="close window" border=0></A><br></td></tr></table></BODY>';
		page.document.write(pagecode);
		page.document.close();
		if (isNetscape && v>=3) page.focus();
}