	function flash (version, filename, name, width, height, wmode, bgcolor, menu, flashvars) {
		document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>");
		document.write("<param name='FlashVars' value='"+flashvars+"' />");
		document.write("<param name='allowScriptAccess' value='sameDomain' />");
		document.write("<param name='wmode' value='"+wmode+"' />");
		document.write("<!-- Flash FIX v0.1 | www.mega.by -->");
		document.write("<param name='bgcolor' value='"+bgcolor+"' />");
		document.write("<param name='salign' value='lt' />");
		document.write("<param name='movie' value='"+filename+"' /><param name='menu' value='"+menu+"' /><param name='quality' value='high' /><embed src='"+filename+"' wmode='"+wmode+"' menu='true' quality='high' FLashVars='"+flashvars+"' salign='lt' width='"+width+"' height='"+height+"' bgcolor='"+bgcolor+"' name='"+name+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
		document.write("</object>");
	}
	function right_table() {
		document.body.clientWidth<880 ? document.getElementById("right_table").style.width="200" : document.getElementById("right_table").style.width="415";
		document.body.clientWidth<880 ? document.getElementById("trk").style.width="300" : document.getElementById("trk").style.width="425";
	}
	
	function get_photo(dep, img, sx, sy)
	{
		sx = sx+40;
		sy = sy+30;
		wnd = window.open("img/"+dep+"/"+img,"tdatawindow",
		"toolbar=no,location=no,directoties=no,"+
		"statusbar=no,menubar=no,scrollbars=yes,resizable=no,"+
		"width="+sx+","+"height="+sy+",left=0,top=0");
	}