<!--

window.name= "winmain";

function init() {

window.focus();

}

onload = init ;

function showHead() {

	if (document.all) window.document.xyz.Play();

}



function uniqueId(input) {

	re = /[A-Za-z0-9]/g;

	myArray = input.match(re);

	output = "";

	for (i=0;i<myArray.length;i++) {

		output = output + myArray[i];

	}

	return output;

}



function replaceSome(tt) {

	myRe0 = new RegExp('href="[a-z0-9/\_\:\-]+\.html"', 'g');

	midStr0 = tt.replace(myRe0, "href='#' onclick='return false;'");

	return midStr0;

}



function prnWin() {

	if (!document.layers) {

		pageTitle = document.title;

		whatToPrint = document.getElementById("content");

		textHeader =  document.getElementById("content_header");

		innerCon = whatToPrint.innerHTML;

		printCon = replaceSome(innerCon);

		s = 'resizable=no,menubar=yes,location=no,toolbar=yes,status=no,scrollbars=yes,width=' + 700 + ',height=' + 600;

	    WindowName = uniqueId(window.location.href);

		var secWnd = window.open('', WindowName, s);

		with (secWnd) {

			document.write("<HTML>\n<head>\n<title>" + pageTitle + "</title>\n<link href=\"/style/print.css\" rel=\"stylesheet\" type=\"text/css\">\n</head>\n");

			document.write("<body>\n");

			//document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="/images/logo_print.gif" alt="" width="200" height="80" border="0"></td><td width="100%" align="right">Ìîñêâà, óë. Á. Äìèòðîâêà, 32, ñòð. 4-6<br>òåë.: + 7 (095) 937-25-83<br>òåë./ôàêñ: + 7 (095) 937-25-93</td></tr></table><br>&nbsp;<br>\n');

			if (textHeader != null) document.write('<h1>' + textHeader.innerHTML + '</h1>');

			document.write(printCon);

			document.write("\n</body>\n");

			document.write("</html>");

			document.close();

			focus();

		}

	}

}



function tops(url,w,h,scroll) {

	isScroll = (scroll) ? 'yes' : 'no';

	if ((url.indexOf('_bnk') != -1) || (url.indexOf('_krc2') != -1)) {

		w = 928;

		h = 700;

	}

	s = 'resizable=no,status=no,scrollbars=' + isScroll + ',width=' + w + ',height=' + h;

	WindowName = uniqueId(url);

	secWnd = window.open(url, WindowName, s);

	secWnd.focus();

}



function ops(path, x, y) {

	if (typeof(path) == 'object') {

		re = /images\/views\/(\w+)t.jpg/;

		myArray = re.exec(path.innerHTML);

		url = '/images/views/' + RegExp.$1 + '.jpg';

	} else

		url = path;

	w_w = x; w_h = y;

	WindowName = uniqueId(url);

	s = 'status=no,scrollbars=no' + ',width=' + w_w + ',height=' + w_h;

	secWnd = window.open('', WindowName, s);

	with (secWnd) {

		document.write("<HTML>\n<head>\n<title>Ýêîëýíä</title>\n");

		//document.write('<link rel="stylesheet" href="/default.css" type="text/css">\n');

		document.write("</head>\n");

        document.write("<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgcolor='White'>\n");

		//document.write(path.innerHTML);

        document.write("<DIV STYLE='left:0px;top:0px;margin:0px 0px 0px 0px;'>\n");

        document.write("<IMG SRC=\""+url+"\" WIDTH="+ w_w +" HEIGHT=" + w_h + " BORDER=0>\n");

        document.write("</DIV>\n");

        document.write("</BODY>\n</HTML>");

        document.close();

		focus();

	}

}



function ops2(path, x, y, ext)

{

	if (typeof(path) == 'object')

    {

		re = /userfiles\/(\w+)t.(\w+)/;

		myArray = re.exec(path.innerHTML);

		url = '/userfiles/' + RegExp.$1 + ext;

	}

    else

		url = path;

	w_w = x; w_h = y;

	WindowName = uniqueId(url);

	s = 'status=no,scrollbars=no' + ',width=' + w_w + ',height=' + w_h;

	secWnd = window.open('', WindowName, s);



	with (secWnd)

    {

		document.write("<HTML>\n<head>\n<title>Ýêîëýíä</title>\n");

		document.write("</head>\n");

        document.write("<body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 marginheight=0 marginwidth=0 bgcolor='White'>\n");

		document.write("<table width=100% height=100% border=0 cellspacing=0 cellpadding=0><tr align=center valign=center><td>");

        if(ext == '.jpg' || ext == '.jpeg' || ext == '.gif' || ext == '.png')

            document.write("<IMG SRC=\"" + url + "\"  BORDER=0>");

        else

        {

            document.write("<object id='MediaPlayer' classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' ");

            document.write("standby='Loading Microsoft® Windows® Media Player components...' ");

            document.write("type='application/x-oleobject' ");

            document.write("codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112'>");

            document.write("<PARAM NAME='filename' VALUE='" + url + "'>");

            document.write("<PARAM NAME='autoStart' VALUE='true'>");

            document.write("<PARAM NAME='showControls' VALUE='true'>");

            document.write("<param name='ShowStatusBar' value='true'>");

            document.write("<PARAM NAME='Autorewind' VALUE='true'>");

            document.write("<EMBED SRC='" + url + "' type='application/x-mplayer2' name=MediaPlayer autostart=1 showcontrols=0 showstatusbar=1 autorewind=1>");

            document.write("</EMBED></OBJECT>");

        }

		document.write("</td></tr></table>");

        document.write("</BODY>\n</HTML>");

        document.close();

		focus();

	}

}



function ops3(path)

{

	if (typeof(path) == 'object')

    {

		re = /userfiles\/(\w+).(\w+)/;

		myArray = re.exec(path.innerHTML);

		url = '/userfiles/' + RegExp.$1 + '.' + RegExp.$2;

	}

    else

		url = path;



	WindowName = uniqueId(url);

	s = 'status=no,scrollbars=no' + ',width=800' + ',height=600';

	secWnd = window.open('', WindowName, s);

	with (secWnd)

    {

		document.write("<HTML>\n<head>\n<title>Ýêîëýíä</title>\n");

		document.write("</head>\n");

        document.write("<body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 marginheight=0 marginwidth=0 bgcolor='White'>\n");

		document.write("<table width=100% height=100% border=0 cellspacing=0 cellpadding=0><tr align=center valign=center><td>");

        document.write("<IMG SRC=\"" + url + "\"" + " BORDER=0>\n");

		document.write("</td></tr></table>");

        document.write("</BODY>\n</HTML>");

        document.close();

		focus();

	}

}

function ops4(path, wd, ht)

{

		WindowName = uniqueId(path);

		s = 'status=no,scrollbars=no' + ',width=' + wd + ',height=' + ht;

		secWnd = window.open('', WindowName, s);

		with (secWnd)

    	{

			document.write("<HTML>\n<head>\n<title>Ýêîëýíä</title>\n");

			document.write("</head>\n");

    	    document.write("<body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 marginheight=0 marginwidth=0 bgcolor='White'>\n");

			document.write("<table width=100% height=100% border=0 cellspacing=0 cellpadding=0><tr align=center valign=center><td>");

    	    document.write("<IMG SRC=\'" + path + "\'" + " BORDER=0>\n");

			document.write("</td></tr></table>");

	        document.write("</BODY>\n</HTML>");

    	    document.close();

			focus();

		}

}

// -->