																																																																										var dataLoad = 'Идет загрузка данных...';

var image = '<img src="/images/star.gif" />';

$(document).ready(function()
{//	CheckFlash('/network_new_xml_parser_fl10.swf',560,163)
});


function getContent(url, params, where)
{    var node = document.getElementById(where);
	if(node.tagName == "DIV" )//&& hide_block!=false)
	{		node.style.display = "block";	}
   	node.innerHTML = image;
    $(node).load(url, params);
	window.scroll(0, 330);
}


function postContent(url, params, where)
{	var node = document.getElementById(where);
    node.innerHTML = image;
	$.post(url, params, function(html){    	node.innerHTML = html;
  		src = ($("embed").attr("src"));
	});
}

function postContent1(url, params)
{
	$.post(url, params, function(html){
	});
}



function update_xml(where, form, publish_text, not_publish_text)
{	var param = new Array();
	var id = 0;
	id = param['id'] = form.id.value;
	param['path_bef'] = form.path_bef.value;
	param['path_aft'] = form.path_aft.value;
	param['img_bef'] = form.img_bef.value;
	param['img_aft'] = form.img_aft.value;
	param['txt'] = form.txt.value;
	param['detal'] = form.detal.value;
	param['link'] = form.link.value;
	if(form.target.checked)
		param['target'] = form.target.value;
	else
		param['target'] = "";


 	postContent1("/xml/save", {		id: param['id'],
		path_bef: param['path_bef'],
		path_aft: param['path_aft'],
		img_bef: param['img_bef'],
		img_aft: param['img_aft'],
		txt: param['txt'],
		detal: param['detal'],
		link: param['link'],
		target: param['target']
 	});
// 	postContent("/xml/show_banner", "", "banner");
	postContent('/xml/show_banner/'+Math.random( )*10000, '', 'banner');
//	CheckFlash('/local_new_xml_parser_fl10.swf',560,163);
	if(form.img_bef.value)
	{
		var span = $(".not_published", form);
		span.removeClass();
		span.addClass('published');
		span.text(publish_text);
	}
	else
	{
		var span = $(".published", form);
		span.removeClass();
		span.addClass('not_published');
		span.text(not_publish_text);
	}

}
