function load_ajax(el_class, page_url){
    jQuery(el_class).fadeOut('slow');
    var content_show = "page" + jQuery(this).attr('title');
    jQuery.ajax({
	    method: "GET",
		url: page_url,
		data: content_show,
		success: function(html){
		jQuery(el_class).fadeIn('slow');
		jQuery(el_class).html(html)
		    }
	});
}


jQuery().ready(function(){
	jQuery('#navigation').accordion({ 
		active: false, 
		header: '.head', 
		alwaysOpen: false,
		autoheight: false, 
		navigation: true, 
		fillSpace: false, 
		animated: 'easeslide' 
	});

//Second One
	jQuery('#specs').accordion({
		active: true,
		alwaysOpen: false,
		autoheight: false,
		fillSpace: false,
		animated: 'easeslide'
	    });

	//by default initally load text from these pages
	jQuery('.content').load('productlogo.php');	
	jQuery('.companystuff').load('companyinfo.php');

	jQuery('#navigation a').click(function() { //start function when any link is clicked
		load_ajax(".companystuff", "companyinfo.php");
		load_ajax(".content", "productlogo.php");
	    });
    });
	    
		


	
