function createFlash(movie, wdth, hght, bgnd, idName, cel, fVars) {
	obj_setFlash = document.getElementById(cel);
	objTag = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+wdth+"' height='"+hght+"' id='"+idName+"'>";
	objTag2 = "<object data='"+movie+"' type='application/x-shockwave-flash' width='"+wdth+"' height='"+hght+"' id='"+idName+"'>";
	paramTag = "<param name='movie' value='"+movie+"' /><param name='bgcolor' value='"+bgnd+"' /><param name='quality' value='high' /><param name='menu' value='false' /><param name='FlashVars' value='"+fVars+"' /><param name='wmode' value='transparent' /></object>";
	if (typeof HTMLElement != "undefined") {
		obj = document.createElement("object");
		obj.setAttribute("data", movie);
		obj.setAttribute("type", "application/x-shockwave-flash");
		obj.setAttribute("width", wdth);
		obj.setAttribute("height", hght);
		obj.setAttribute("id", idName);
		par = document.createElement("param");
		par.setAttribute("name", "quality");
		par.setAttribute("value", "high");
		obj.appendChild(par);
		par = document.createElement("param");
		par.setAttribute("name", "bgcolor");
		par.setAttribute("value", bgnd);
		obj.appendChild(par);
		par = document.createElement("param");
		par.setAttribute("name", "menu");
		par.setAttribute("value", "false");
		obj.appendChild(par);
		par = document.createElement("param");
		par.setAttribute("name", "FlashVars");
		par.setAttribute("value", fVars);
		obj.appendChild(par);
		par = document.createElement("param");
		par.setAttribute("name", "wmode");
		par.setAttribute("value", "transparent");
		obj.appendChild(par);
		par = document.createElement("param");
		par.setAttribute("name", "pluginspage");
		par.setAttribute("value", "http://www.macromedia.com/go/getflashplayer");
		obj.appendChild(par);
		obj_setFlash.appendChild(obj);
	} else {
		obj_setFlash.insertAdjacentHTML('beforeEnd',objTag+paramTag);
	}
}

function fix()
{
	var d = document.getElementById('container');
	var d1 = document.getElementById('bg5');
	var d2 = document.getElementById('bg4');
	var d3 = document.getElementById('ulMenu');
	var x = d3.offsetHeight - 160;
	var h = d.offsetHeight;
	//alert(x);
	//alert(h);
	if ( x < h )
	{
		alert('asd');
		var h1 = h + 165;
		var h2 = h + 130;
		var t = x + 20;
		d1.style.height = t+"px";
		d.style.height = t+"px";
		d2.style.height = h1+"px";
		d3.style.height = h2+"px";
	}
	else
	{
		var h1 = x + 161;
		var h2 = x + 126;
		var t = x + 0;
		d.style.height = t+"px";
		d1.style.height = t+"px";
		d2.style.height = h1+"px";
		d3.style.height = h2+"px";
	}
	return true;
}
