var pf;

function viewMatos(id_inde)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indeMatos.php",
	   data: "action=viewfiche&id_inde="+id_inde,
	   success: function(retour){
		   		//alert(retour);
				$("#body_matos").html(retour);
		}
	 });
}

function viewConn(id_inde)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indeCon.php",
	   data: "action=viewfiche&id_inde="+id_inde,
	   success: function(retour){
		   		//alert(retour);
				$("#body_con").html(retour);
		}
	 });
}

function viewAccre(id_inde)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indeAccre.php",
	   data: "action=viewfiche&id_inde="+id_inde,
	   success: function(retour){
		   		//alert(retour);
				$("#body_accre").html(retour);
		}
	 });
}

function viewForma(id_inde)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indeForma.php",
	   data: "action=viewfiche&id_inde="+id_inde,
	   success: function(retour){
		   		//alert(retour);
				$("#body_forma").html(retour);
		}
	 });
}

function viewRef(id_inde)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indeRef.php",
	   data: "action=viewfiche&id_inde="+id_inde,
	   success: function(retour){
		   		//alert(retour);
				$("#body_ref").html(retour);
		}
	 });
}

function viewXp(id_inde)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indeXp.php",
	   data: "action=viewfiche&id_inde="+id_inde,
	   success: function(retour){
		   		//alert(retour);
				$("#body_xp").html(retour);
		}
	 });
}

function viewLanga(id_inde)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indeLanga.php",
	   data: "action=viewfiche&id_inde="+id_inde,
	   success: function(retour){
		   		//alert(retour);
				$("#body_comp").prepend(retour);
		}
	 });
}

function viewLogi(id_inde)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indeLogi.php",
	   data: "action=viewfiche&id_inde="+id_inde,
	   success: function(retour){
		   		//alert(retour);
				$("#body_comp").prepend(retour);
		}
	 });
}

function viewComp(id_inde)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indeSpe.php",
	   data: "action=viewfiche&id_inde="+id_inde,
	   success: function(retour){
		   		//alert(retour);
				$("#body_comp").prepend(retour);
		}
	 });
}

function openItem(id,file,x,y)
{
	x+=200;
	y+=25;
	if(pf)
	{
		pf.close();
	}
	pf=window.open("../../portfolio/pf.php?id="+id+"&file="+file,"portfolio","width="+x+",height="+y+",resizable=yes,scrollbars=no,location=no,menubar=no,toolbar=no,status=no")
}

function getItems(id_inde,type)
{
	$("#div_loading").show();
	$("#div_pf").hide();
	$.ajax({
	   type: "POST",
	   url: "../../ajax/indePf.php",
	   data: "action=view&id_inde="+id_inde+"&type="+type,
	   success: function(retour){
		   		//alert(retour);
				$("#div_loading").hide();
				$("#div_pf").fadeIn("slow");
				$("#div_pf").html(retour);
		}
	 });
}

function viewLang(id)
{
	$.ajax({
	   type: "POST",
	   url: "../../ajax/lang.php",
	   data: "action=fiche&id="+id,
	   success: function(retour){
		   		//alert(retour);
				$("#body_combi3").html(retour);
		}
	 });
}

