var arr_cat = Array();
var arr_item = Array();

window.addEvent('domready', function(){
	for(i = 0; i < arr_cat.length; i++)
	{
		var cat_id = arr_cat[i];
		var item = arr_item[i];
		var req = new Request.HTML({
			method: 'get',
			url: '/components/home/special_subject.php?cat_id='+cat_id,
			update: $(item)
		}).send();
	}
});

function setTabContain(category_id, id_without) {
	var href = "/components/home/news_tab.php?category_id=" + category_id + "&id_without="+id_without;
	var req = new Request.HTML({
		method: 'get',
		url: href,
		update: $('tab_contain'),
		onRequest: function(){
			$('tab_contain').innerHTML = '';
	$('tab_contain').setStyle('background','#edf4fa url(/templates/images/loading.gif) center center no-repeat');
			},
		onComplete: function(){
			$('tab_contain').setStyle('background','#edf4fa');
			}
	}).send();
}
