function open_win ( addr, width, height, title )
			    {
			        r = window.open( addr, '', "width="+width+", height="+height+", location=0, menubar=0, resizable=0, scrollbars=1, status=0, titlebar=0, toolbar=0, screenX=100, left=100, screenY=30, top=60 ");
			        //return r;
			    }
			    function openPic(image, width, height) {
			        var win;
			        if( win ) {
			            win.close();
			        }
			       	win = window.open( '', 'win', 'location=0, toolbar=0, menubar=0, scrollbars=0, height='+height+', width='+width+', status=0' );
        				win.document.write( '<html><head><title>ЕвроМедЦентр</title></head>' );
        				win.document.write( '<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">' );
        				win.document.write( '<a href="javascript: window.close()" title="Закрыть окно"><img src="http://www.euromedclinic.ru/'+image+'" width="'+width+'" height="'+height+'" border="0" /></a>' );
        				win.document.write( '</body></html>' );
        				win.document.close();
			    }

function ShowDiv(id, idoutput) {
	var id = id;
	var idoutput = idoutput;
	var toc = document.getElementById(id);
	var toggleLink = document.getElementById(id);

	var output = document.getElementById(idoutput);
	
	output.style.color = '#1E81DF';
	output.style.fontSize = '16px';
	output.style.fontWeight = 'bold';
	output.style.margin = '0px';
	output.style.padding = '15 15 0 10';
	output.style.cursor = 'pointer';
	
	if (toc && toggleLink && toc.style.display == 'none') {
		toc.style.display = 'block';
		document.cookie = "hidetoc=0";
		output.innerHTML = 'СЃРІРµСЂРЅСѓС‚СЊ СЃРїРёСЃРѕРє:';
	} else {
		toc.style.display = 'none';
		document.cookie = "hidetoc=1";
		output.innerHTML = 'РіРґРµ РѕРєР°Р·С‹РІР°РµС‚СЃСЏ СѓСЃР»СѓРіР°:';
	}
}

function ShowDivStyle()
	{
		var idoutput;
		var outputs; 
	for (i=1; i<=1000; i++)
		{
		idoutput = 'output'+i;
		outputs = document.getElementById(idoutput);

		if (document.getElementById(idoutput)) {
	
		outputs.style.color = '#1E81DF';
		outputs.style.fontSize = '16px';
		outputs.style.fontWeight = 'bold';
		outputs.style.margin = '0px';
		outputs.style.padding = '15 15 0 10';
		outputs.style.cursor = 'pointer';
		
			}
		}
	}

objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}

function show_hide (id) {
		var el = document.getElementById(id);
		if (el.style.display == 'none') el.style.display = 'block'; else el.style.display = 'none';
	}
