var CurrentUrl="",SiteUrl="",queryLimit=4E3,vista="",Multimodulo=!1;$(document).ready(function(){null!=document.getElementById("NavegacionPQ")&&(-1==document.location.href.indexOf("NewForm.aspx")&&-1==document.location.href.indexOf("EditForm.aspx")&&-1==document.location.href.indexOf("DispForm.aspx")&&setNavigationNodes(),disableNavButtons())}); function setNavigationNodes(){SiteUrl=_spPageContextInfo.webAbsoluteUrl;if(-1");else if("Enlace"==a[b].Tipo||""==a[b].Tipo)$(a[b]).attr("URL")==decodeURI(CurrentUrl.split(SiteUrl)[1])?$("#NavegacionPQ").append(""):$("#NavegacionPQ").append("");else if("Calendario"==a[b].Tipo){var c=GetCalendarURL(a[b]);$("#NavegacionPQ").append("")}} function getNavigationNodes(a){var b="";Multimodulo=!1;var c="GetListItems",e="NavegacionNodos",d="",f=""+decodeURI(a)+"0";$().SPServices({operation:c,async:!1,listName:e,CAMLViewFields:d,CAMLQuery:f,completefunc:function(a,c){var e=$(a.responseXML).SPFilterNode("rs:data").attr("ItemCount"); 10"+decodeURI(vista)+"",$().SPServices({operation:c,async:!1,listName:e,CAMLViewFields:d, CAMLQuery:f,completefunc:function(a,e){var c=$(a.responseXML).SPFilterNode("rs:data").attr("ItemCount");1",f=""+b+""; $().SPServices({operation:c,async:!1,listName:e,CAMLViewFields:d,CAMLQuery:f,completefunc:function(a,b){h=[];$(a.responseXML).SPFilterNode("z:row").each(function(){var a={URL:$(this).attr("ows_Link"),Image:$(this).attr("ows_Imagen"),Titulo:$(this).attr("ows_Title"),Tipo:""==$(this).attr("ows_TipoNodo")||void 0==$(this).attr("ows_TipoNodo")?"":$(this).attr("ows_TipoNodo"),Vista:Multimodulo&&void 0!=$(this).attr("ows_Vista")?"/"+$(this).attr("ows_Vista"):""};h.push(a)})}});return h} function disableNavButtons(){var a=$('a[class="navigationReplace"]'),b=_spPageContextInfo.webAbsoluteUrl;if(0"+b+"";$().SPServices({operation:"GetListItems",async:!1,listName:"GUIDS",CAMLRowLimit:queryLimit,CAMLViewFields:"",CAMLQuery:c,completefunc:function(c,d){$(c.responseXML).SPFilterNode("z:row").each(function(){var b={ID:parseInt($(this).attr("ows_ID")), Title:void 0!=$(this).attr("ows_Title")?$(this).attr("ows_Title"):"",Clave:void 0!=$(this).attr("ows_Clave")?$(this).attr("ows_Clave"):"",RelativeURL:void 0!=$(this).attr("ows_RelativeURL")?$(this).attr("ows_RelativeURL"):""};a.push(b)});$(c.responseXML).SPFilterNode("z:row").length>=queryLimit&&(b+=queryLimit)}});return a} function getAllSitePages(){var a=[],b=0,c=""+b+"";$().SPServices({operation:"GetListItems",async:!1,listName:"SitePagesLog",CAMLRowLimit:queryLimit,CAMLViewFields:"",CAMLQuery:c,completefunc:function(c,d){$(c.responseXML).SPFilterNode("z:row").each(function(){var b= {ID:parseInt($(this).attr("ows_ID")),Title:void 0!=$(this).attr("ows_Title")?$(this).attr("ows_Title"):"",Clave:void 0!=$(this).attr("ows_Clave")?$(this).attr("ows_Clave"):"",RelativeURL:void 0!=$(this).attr("ows_RelativeURL")?$(this).attr("ows_RelativeURL"):""};a.push(b)});$(c.responseXML).SPFilterNode("z:row").length>=queryLimit&&(b+=queryLimit)}});return a} function GetCalendarURL(a){var b=_spPageContextInfo.webAbsoluteUrl;a=a.URL;var c="",e=_spPageContextInfo.webTitle,d="",d="GUIDS",f=""+a+"";$().SPServices({operation:"GetListItems",async:!1,listName:d,CAMLRowLimit:queryLimit,CAMLViewFields:"",CAMLQuery:f,completefunc:function(a,b){$(a.responseXML).SPFilterNode("z:row").each(function(){c= $(this).attr("ows_Clave");d=$(this).attr("ows_Title")})}});return"stssync://sts/?ver=1.1&type=calendar&cmd=add-folder&base-url="+encodeURIComponent(b)+"&list-url="+encodeURIComponent(a)+"&guid="+encodeURIComponent("{"+c+"}")+"&site-name="+encodeURIComponent(e)+"&list-name="+encodeURIComponent(d)};