/**
 * 
 */
window.addEvent('domready', function() {
	//open_latestsNews();
});

function open_latestsNews(){
	if(!$('latests_news')){
		return false;
	}
	var container = $('open_news').getParent('div');
	$('open_news').addEvent('click',function(e){
		e.stop();
		container.setStyle('height','100px');
		container.setStyle('background-color','pink');
	});
}

function ajx_loading(el) {
	if ($('ajx_loading')) {
		return;
	}
	var target = el.getParent();
	var loading = new Element('div', {
		'id' : 'ajx_loading'
	});
	loading.inject(target, 'top');
}

function remove_ajx_loading() {
	if (!$('ajx_loading')) {
		return;
	}
	$('ajx_loading').destroy();
}
