function stroka(name) {

document.write ("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"620\" height=\"150\">");
document.write ("<param name=\"movie\" value=\""+name+".swf\" />");
document.write ("<param name=\"quality\" value=\"high\" />");
document.write (" <param name=\"allowFullScreen\" value=\"false\" />");
document.write (" <param name=\"allowScriptAccess\" value=\"always\" />");
document.write (" <param name=\"wmode\" value=\"transparent\">");
document.write ("  <embed src=\""+name+".swf\"");
document.write ("  quality=\"high\"");
document.write ("  type=\"application/x-shockwave-flash\"");
document.write ("  WMODE=\"transparent\"");
document.write ("  width=\"620\"");
document.write ("  height=\"150\"");
document.write ("  allowFullScreen=\"false\"");
document.write ("  pluginspage=\"http://www.macromedia.com/go/getflashplayer\"");
document.write ("  allowScriptAccess=\"always\" /></object>");

}


function carusel(name,width) {
document.write ("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+width+"\" height=\"160\">");
document.write ("<param name=\"movie\" value=\""+name+".swf\" />");
document.write ("<param name=\"quality\" value=\"high\" />");
document.write (" <param name=\"allowFullScreen\" value=\"false\" />");
document.write (" <param name=\"allowScriptAccess\" value=\"always\" />");
document.write (" <param name=\"wmode\" value=\"transparent\">");
document.write ("  <embed src=\""+name+".swf\"");
document.write ("  quality=\"high\"");
document.write ("  type=\"application/x-shockwave-flash\"");
document.write ("  WMODE=\"transparent\"");
document.write ("  width=\""+width+"\"");
document.write ("  height=\"160\"");
document.write ("  allowFullScreen=\"false\"");
document.write ("  pluginspage=\"http://www.macromedia.com/go/getflashplayer\"");
document.write ("  allowScriptAccess=\"always\" /></object>");
}

function marqopen() {
document.write ("<marquee onmouseover=\"this.stop();\" onmouseout=\"this.start();\" scrollamount=\"2\" scrolldelay=\"2\" behavior=\"alternate\" direction=\"left\" bgcolor=\"#FEF7EC\" height=\"100\" width=\"300\">");
}
function marqclose() {
document.write ("</marquee><br /><br />");
}


function clearInput(input) {
	input.value = '';
}

function open_l(name) {


 		//elem = eval("document.all."+name);
		if (document.getElementById(name)!=null)
		{
 		elem = document.getElementById(name);
		if (elem.style.display == "none" || !elem.style.display) {
			elem.style.display = "block";
		} else {
			elem.style.display = "none";
		}
		}
	}

	var winH;
	var winW;
	var winUrl;
	var winProp;
	var scrol;

function popUpOpen (winUrl, winW, winH)
{
//функция открывает заданный файл в заданных размерах окна
		scrol = 1;
		winProp = "toolbar=0,resizable=0,fullscreen=0,scrollbars="+scrol+",left=50,top=50,height="+winH+",width="+winW;
		window.open(winUrl,'',winProp);
}

function popUpOpenNS (winUrl, winW, winH)
{
//функция открывает заданный файл в заданных размерах окна без скроллинга
		scrol = 0;
		winProp = "toolbar=0,resizable=0,fullscreen=0,scrollbars="+scrol+",left=50,top=50,height="+winH+",width="+winW;
		window.open(winUrl,'',winProp);
}

function popUpOpenARS (winUrl)
{
//функция открывает заданный файл в окне с возможностью ресайза.
		winProp = "width=300,height=200,scrollbars=no,left=50,top=50, toolbar=no,location=no,status=no,resizable=yes,screenX=50,screenY=50";
		window.open(winUrl,'',winProp);
}

