/* Funciones de inicializacion */
window.addEvent('domready', function() {
	/* Manejador del historial 
      var h = new HistoryManager();
		// Funcion para la carga dinamica de contenidos en el body 
		cargarPaginaGet = function( urlpge ){
			h.addState(urlpge);
			var contents = $('contentdiv4ajax');
			contents.set('html',"");
			var myFx = new Fx.Scroll($(document.body)).toTop();
			var loader = $('contentdiv4ajaxloader').addClass('ajax-loading');
			new Request( { 
					url: urlpge ,
					encoding:'iso-8859-1',
					method: 'get',
					evalScripts: true,
					onSuccess: function(html, responseXML) {
						loader.removeClass('ajax-loading');
						contents.set('html',html);
						ajaxificarenlaces();
					}
			}).send();
		};
	
		h.addEvent('onHistoryChange', function(url){
			if(url != ""){
				cargarPaginaGet(url);
			}else{
				window.location = "./?gps=1";
			}
		});
		if(h.getCurrentLocation() != ""){
			h.fireEvent('onHistoryChange', [h.getCurrentLocation()]);
		}

	
	ajaxificarenlaces();
	
	 */
	
	
	/* Modulos Collapsables */
	//var accordion = new Accordion('.accordion_title', '.accordion_contents', {opacity: true}, $('subheader'));
	//new MultipleOpenAccordion($$(".accordion_title"), $$(".accordion_contents"), {openAll: false, allowMultipleOpen: true, firstElementsOpen: [0]});
	
	
});

jQuery(function($) {  
	$(document).ready(function(){
		$('.accordion_title').click(function() {
			$(this).next().toggle();
			return false;
		}).next().hide();
		$('#content').show();
	});
	
});

