var activeMenu = "linkInicio";

Event.observe(window, 'load', function(event){
	loadPage('inicio_' + $('lang').value + '.html', 'content', null);
});

function actionMenu(liID, url, container, action){
	$(activeMenu).className = "";
	$(liID).className = "active";
	loadPage(url, container, action);
	activeMenu = liID;
}

function loadValoracion(){
	swapImg('imgserv', 'servicios-banner.jpg');
	loadPage('valoracion_' + $('lang').value + '.html', 'serviceContent', null);
}

function loadActivosFijos(){
	swapImg('imgserv', 'activofijo.jpg');
	loadPage('activosfijos_' + $('lang').value + '.html', 'serviceContent', null);
}

function loadTransacciones(){	
	swapImg('imgserv', 'transacciones.jpg');
	loadPage('transacciones_' + $('lang').value + '.html', 'serviceContent', null);
}

function loadInmobiliaria(){	
	swapImg('imgserv', 'inmobiliaria.jpg');
	loadPage('inmobiliaria_' + $('lang').value + '.html', 'serviceContent', null);
}

function loadAlmacenes(){	
	swapImg('imgserv', 'almacenes.jpg');
	loadPage('almacenes_' + $('lang').value + '.html', 'serviceContent', null);
}

function loadConsultoriaTI(){	
	swapImg('imgserv', 'ti.jpg');
	loadPage('consultoriaTI_' + $('lang').value + '.html', 'serviceContent', null);
}

function swapImg(id, imgName){
	$("imgserv").src = "images/" + imgName;
}

function ITPresentation(){
	window.open('presentacionpacaf/BILINGUE.swf').document.title = "American Consult";
}
