
function redirige_section_categoria(contador){
/*Recarga la seccion sin necesidad de carga la pagina*/

	jQuery("#bread").remove();
	jQuery("#breadProject").after("<a href='javascript:void(0);' onclick='volverPastProject()' id='bread'>&nbsp;&gt; "+ jQuery("#pastProjects").val() + "</a><span id='detail'> > Detail</span>")
 	

  jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+"&param1=2&idCategoria="+jQuery("#idCategoria"+contador).val(),{},
               function(xml){
                      var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      jQuery("#content_section_389").html(html);
               });
}

function redirige_section_cliente(){
/*Recarga la seccion sin necesidad de carga la pagina*/
	jQuery("#bread").remove();
	jQuery("#breadProject").after("<a href='javascript:void(0);' onclick='volverPastProject()' id='bread'>&nbsp;&gt; "+ jQuery("#pastProjects").val() + "</a><span id='detail'> > Detail</span>")

  jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+"&param1=2&idProject="+jQuery("#idCliente").val(),{},
               function(xml){
                      var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      jQuery("#content_section_389").html(html);
               });
}


function volverPastProject(contador){

jQuery("#detail").remove();
jQuery("#bread").remove();
jQuery("#breadProject").after("<span id='bread'>&nbsp;&gt; Past projects</span>")
 	
 jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+"&param1=2",{},
               function(xml){
                      var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      jQuery("#content_section_389").html(html);
               });
}
function mostrar_foto_carrusel(contador){
/*Recarga la seccion sin necesidad de carga la pagina*/
  jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+"&param1=2&idProject="+jQuery("#idProjectInput").val()+"&idCategoria="+jQuery("#idCategoriaInput").val()+"&idMedia="+jQuery("#idMedia"+contador).val()+"&imgPasadas="+jQuery("#imgPasadas").val()+"&idSeleccionado="+jQuery("#idSeleccionado").val()+"&proyPasados="+jQuery("#proyPasados").val(),{},
               function(xml){
                      var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      jQuery("#content_section_389").html(html);
               });
}


function next_foto_carrusel(){
  var imgPasadas= parseInt(jQuery("#imgPasadas").val()) + 1;
  jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+"&param1=2&idProject="+jQuery("#idProjectInput").val()+"&idCategoria="+jQuery("#idCategoriaInput").val()+"&idMedia="+jQuery("#idMedia").val()+"&imgPasadas="+imgPasadas+"&idSeleccionado="+jQuery("#idSeleccionado").val()+"&proyPasados="+jQuery("#proyPasados").val(),{},
               function(xml){
                      var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      jQuery("#content_section_389").html(html);
               });
}

function previous_foto_carrusel(){
  var imgPasadas= parseInt(jQuery("#imgPasadas").val()) - 1;
  jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+"&param1=2&idProject="+jQuery("#idProjectInput").val()+"&idCategoria="+jQuery("#idCategoriaInput").val()+"&idMedia="+jQuery("#idMedia").val()+"&imgPasadas="+imgPasadas+"&idSeleccionado="+jQuery("#idSeleccionado").val()+"&proyPasados="+jQuery("#proyPasados").val(),{},
               function(xml){
                      var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      jQuery("#content_section_389").html(html);
               });
}

function previous_project(proyPasados){
  var proyectosPasados= parseInt(proyPasados) - 1;
  jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+"&param1=2&flagCliente="+jQuery("#flagCliente").val()+"&flagCategoria="+jQuery("#flagCategoria").val()+"&idSeleccionado="+jQuery("#idSeleccionado").val()+"&proyPasados="+proyectosPasados+"&detalleProyecto=1",{},
               function(xml){
                      var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      jQuery("#content_section_389").html(html);
               });
}


function next_project(proyPasados){
   var proyectosPasados= parseInt(proyPasados) + 1;
  jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+"&param1=2&flagCliente="+jQuery("#flagCliente").val()+"&flagCategoria="+jQuery("#flagCategoria").val()+"&idSeleccionado="+jQuery("#idSeleccionado").val()+"&proyPasados="+proyectosPasados+"&detalleProyecto=1",{},
		 function(xml){                    
			var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      	jQuery("#content_section_389").html(html);
               });
}

function next_testimonial(_paginaActual){
var paginaActual= parseInt(_paginaActual) + 1;
  jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+ "&param1=3&paginaActual="+ paginaActual,{},
		 function(xml){                    
			var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      	jQuery("#content_section_389").html(html);
               });
}

function previous_testimonial(_paginaActual){
var paginaActual= parseInt(_paginaActual) - 1;
  jQuery.post("/_ajax/Section.show"+jQuery("#urlPP").val()+ "&param1=3&paginaActual="+ paginaActual,{},
		 function(xml){                    
			var html=xml.getElementsByTagName("body")[0].firstChild.nodeValue;
                      	jQuery("#content_section_389").html(html);
               });
}

