function load_buttons()
{
window.document.write='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="765" height="140" id="links" align="middle">';
window.document.write='<param name="allowScriptAccess" value="sameDomain" />';
window.document.write='<param name="movie" value="/flash/links.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#006666" /><embed src="/flash/links.swf" quality="high" scale="noscale" wmode="transparent" bgcolor="#006666" width="765" height="140" name="links" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
window.document.write='</object>';
}
function load_map()
{
window.document.write='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="444" id="map1" align="middle">';
window.document.writeln='<param name="allowScriptAccess" value="sameDomain" />';
window.document.writeln='<param name="movie" value="/flash/map1.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#3399cc" /><embed src="/flash/map1.swf" quality="high" wmode="transparent" bgcolor="#3399cc" width="100%" height="444" name="map1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
window.document.writeln='</object>';
}


function show(obj) {
	document.getElementById(obj).style.display = 'block';
}   

function show2(obj) {	
	document.getElementById(obj).style.display = 'none';
}

function popup_picture(pic_url, pic_width, pic_height)
{
	window.open(pic_url,"","scrollbars=no,resizable=no,width="+pic_width+",height="+pic_height+"\""); 	
}

function ImgShw(ID, width, height, alt)
{
	var scroll = "no";
	var top=0, left=0;
	if(width > screen.width-10 || height > screen.height-28) scroll = "yes";
	if(height < screen.height-28) top = Math.floor((screen.height - height)/2-14);
	if(width < screen.width-10) left = Math.floor((screen.width - width)/2-5);
	width = Math.min(width, screen.width-10);
	height = Math.min(height, screen.height-28);
	var wnd = window.open("","","scrollbars="+scroll+",resizable=yes,width="+width+",height="+height+",left="+left+",top="+top);
	wnd.document.write(
		"<html><head>"+
		"<"+"script type=\"text/javascript\">"+
		"function KeyPress()"+
		"{"+
		"	if(window.event.keyCode == 27) "+
		"		window.close();"+
		"}"+
		"</"+"script>"+
		"<title>"+(alt == ""? "Картинка":alt)+"</title></head>"+
		"<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" onKeyPress=\"KeyPress()\">"+
		"<img src=\""+ID+"\" border=\"0\" alt=\""+alt+"\" />"+
		"</body></html>"
	);
	wnd.document.close();
}
var doc 
var up
var dn
var first;
function getnodes(first)
{
        for(i=0;i<first.childNodes.length;i++)
	{

		if(first.childNodes.item(i).attributes!=null)
		 {
		   if(first.childNodes.item(i).attributes.id!=null)
		   {

		   	if(first.childNodes.item(i).attributes.id.nodeValue=='hiden_text') doc=first.childNodes.item(i);
		   	if(first.childNodes.item(i).attributes.id.nodeValue=='dn1') dn=first.childNodes.item(i);
		   	if(first.childNodes.item(i).attributes.id.nodeValue=='up1') up=first.childNodes.item(i);
		   }
		 }
	}
}
function change(id)
{

	doc = document.getElementById(id+'_hiden_text');
	dn = document.getElementById(id+'_dn1');
	up = document.getElementById(id+'_up1');

	if(doc.style.display=="block")
	{
		doc.style.display="none";
		dn.style.display="block";
		up.style.display="none";
	}
	else
	{
		doc.style.display="block";
		up.style.display="block";
		dn.style.display="none";
	}
}

function showHTMLCont(html_url,header,width,height)
{
	window.open(html_url,header,config='height='+height+',width='+width+',scrollbars=yes');
}