PageSourceSearch

https://purace-cauca.gov.co/js/purace.js

js purace-cauca.gov.co collected 2026-10-08 07:12:59 UTC 74,621 bytes, 1,445 lines download raw bytes

1
2function Autenticarse()
3{
4	$("#LiAutenticarse").html("<a href='/_layouts/15/Authenticate.aspx?Source="+location.pathname+"'> <i class='fa fa-sitemap'></i> Administraci&oacute;n del Sitio</a>");
5}
6
7/** ==== GOOGLE TRADUCTOR SCRIPT ==== **/
8function googleTranslateElementInit() {
9  new google.translate.TranslateElement({pageLanguage: 'es', includedLanguages: 'ar,bg,de,el,en,es,fa,fr,hr,it,iw,ja,ko,la,nl,pl,pt,ru,tr,uk,zh-CN', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
10}
11
12
13//cabezotes
14
15function LoadCabezote()
16{
17
18	var strmodac = '';
19	if(document.location.href.toLowerCase().indexOf('/nuestraalcaldia/sala') > -1 ){strmodac = "Sala de Prensa";
20	}else{
21		if(document.location.href.toLowerCase().indexOf('/mimunicipio') > -1 ){strmodac = "Mi Municipio";
22		}else{
23			if(document.location.href.toLowerCase().indexOf('/nuestraalcaldia') > -1 ){strmodac = "Nuestra Alcaldía";
24			}else{
25				if(document.location.href.toLowerCase().indexOf('/ciudadanos') > -1 ){strmodac = "Atención y servicios a la ciudadanía";
26				}else{
27					if(document.location.href.toLowerCase().indexOf('/proyectos') > -1 ){strmodac = "Proyectos";
28					}else{
29						if(document.location.href.toLowerCase().indexOf('/transparencia') > -1 ){strmodac = "Transparencia y acceso a la información pública";
30						}else{
31							if(document.location.href.toLowerCase().indexOf('/conectividad') > -1 ){strmodac = "Participa";
32							}else{
33								if(document.location.href.toLowerCase().indexOf('/turismo') > -1 ){strmodac = "Turismo";
34								}else{
35
36								  
37
38
39								strmodac = "Home"
40							}
41						}
42					}
43				}
44			}
45		}
46	}
47	}
48	//console.log(strmodac);
49	$("#DivTituloInterna").html(strmodac);
50	if(strmodac != "Home")
51	{
52	
53		$.ajax({
54	        url: location.protocol + "//" + location.host + "/_api/web/lists/getbytitle('CabezotesModulos')/items?$select=ID,Title,Modulo,Description,FileLeafRef&$orderby=ID%20desc&$filter=Modulo eq '"+strmodac+"'",
55	        method: "GET",
56	        headers: { "Accept": "application/json; odata=verbose" },
57	        success: onSuccessLoadCabezotes,
58	        error: onError
59	    });
60	}
61	else
62	{
63		if(document.location.href.toLowerCase().indexOf('/paginas') > -1 )
64		{
65			$("#CabInterna").html("<div class='titulo_modulo'></div><img src='/CabezotesModulos/Soluciones%20TIC.jpg'>");
66		}
67		else
68		{
69		 
70			}
71		//$("#backstretch").html("<img style='height:100% !important' src='/CabezotesModulos/Conectividad.jpg'><h2 style='left:10% !important; opacity:1 !important;'>Conectividad</h2>");
72	
73	}
74	
75}
76
77function onSuccessLoadCabezotes(data) 
78{
79
80	var resultados = data.d.results;
81	var io = 1;
82	for(var i=0; i< resultados.length; i++)
83	{
84		if(io == 1)
85		{
86           var strDesc = "";
87           if(resultados[i].Description != null)
88           {
89           	 strDesc = resultados[i].Description;
90           }
91           $("#CabInterna").html("<div class='titulo_modulo'>"+resultados[i].Title+"<br/><p style='font-size:15px !important; margin-bottom:0px !important;'>"+strDesc+"</p></div><img src='/CabezotesModulos/"+resultados[i].FileLeafRef+"'>");
92             // $("#backstretch").html("<img src="/Style Library/images/7.jpg" style="position: absolute; margin: 0px; padding: 0px; border: none; width: 1263px; height: 643.018px; max-width: none; z-index: -999999; left: 0px; top: -112.009px;"> <img style='height:100% !important;' src='/CabezotesModulos/"+resultados[i].FileLeafRef+"'><h2 style='left:10% !important; opacity:1 !important;'>"+resultados[i].Modulo+"</h2><p style='left:10% !important; opacity:1 !important;'>"+strDesc+"<p>"+strDesc+"</p>");
93  		}
94		io++;
95	}
96}
97
98
99
100// Search
101function SearchSt(event)
102{
103	var code = (event.keyCode ? event.keyCode : event.which);
104	      if(code == 13)
105	      {
106	         event.preventDefault();
107	         var SearchString = $("#SBAc").val();
108	         if(SearchString != "")
109	         {
110	            var url = "/Busqueda/Paginas/Resultados.aspx?k="+SearchString+"&s=All%20Sites&u="+location.protocol+"//"+location.host;
111	            document.location.href = url;
112	         }
113	          else
114	          {
115	             alert("Especifique una o varias palabras de búsqueda");
116	          }
117	       }
118}
119
120
121// Alto contraste
122function AltoContraste()
123{
124	//if(document.getElementById(":0.targetLanguage")){document.getElementById(":0.targetLanguage").style.cssText = 'border:0px !important'; }
125	//else{ window.setTimeout (function(){ AltoContraste(); },500); } 	
126	$(".page-wrapper").attr("style","filter: grayscale(100%) !important");
127	$("  #redes .btn-primary, #custom-search-input, #iconos-principales .iconos-2, .slide-panel-btn").attr("style","background-color: black !important; color: white !important;");
128	$(".tw-content i, .info-header .glyphicon, #sala-prensa h1, .crop-text-2, .caption p, #recorra h1, #recorra p, #redes h1, #redes a.list-group-item, button.list-group-item, #internal h2, #internal a, #internal .migadepan-redes i, #internal i.fas.fa-home").attr("style", "color: black !important");
129	$("#suiteBarLeft, .footer-bottom").attr("style","background-color: black !important");
130	$("#sala-prensa .btn-primary").attr("style","background-color: black !important;     border-color: black !important;");
131	//$("#main-menu,#cambiando, #logo, .publicidad,.slide-pannel-wrapper, #logos-nuevos, .footer-contenido, .thumbnail > img, .thumbnail a > img, .imgContainer, .ms-rtestate-field TABLE, .ms-rtestate-write TABLE, #DivFuncionarios img, .col-md-8, .col-md-4, #contenedor-news,  .logo, .carousel-inner > .item > img, .carousel-inner > .item > a > img, .parallax, .owl-carousel .owl-item img, .nbs-flexisel-item img, .col-md-6, .fa-ul, .footer .social-circle li a, .ImgNoticia, .ms-rteStyle-Texto_Normal img, .article-content img, .titulo_enlace2, #UlCabInt, .row, .social-bar").attr("style","filter: grayscale(100%) !important");
132	$(" #menu-principal .sm-clean, #modal-left-iconos .btn, #modal-left-iconos-2 .btn, #modal-left-iconos-3 .btn").attr("style","background-color: black !important; color: white !important;");
133	$(".footer-top, .sky-tabs > input:checked + label span span").attr("style","background: black !important; ");
134	$("#slide-panel .container a").attr("style","color: white !important;");
135
136
137	
138	
139	$("#LiContraste").html("<a href='javascript:QuitarContraste();'><span>Quitar Contraste</span></a>");
140	if (window.localStorage) { localStorage.setItem("AltoContrasteC", "C"); }
141}
142
143function QuitarContraste()
144{   	
145	$(".page-wrapper").removeAttr('style');
146	$("#redes .btn-primary, #custom-search-input, #iconos-principales .iconos-2, .slide-panel-btn").removeAttr('style');
147	$("#modal-left-iconos .btn, .info-header .glyphicon, .tw-content i, #sala-prensa h1, .crop-text-2, .caption p, #recorra h1, #recorra p, #redes h1, #redes a.list-group-item, button.list-group-item, #internal h2, #internal a, #internal .migadepan-redes i, #internal i.fas.fa-home ").removeAttr('style');	
148	$("#suiteBarLeft, .footer-bottom").removeAttr('style');
149	$("#sala-prensa .btn-primary").removeAttr('style');	
150	//$("#main-menu, #cambiando, #logo,.publicidad, .slide-pannel-wrapper, #logos-nuevos, .footer-contenido, .thumbnail > img, .thumbnail a > img, .imgContainer, .ms-rtestate-field TABLE, .ms-rtestate-write TABLE, #DivFuncionarios img, .col-md-8, .col-md-4, #contenedor-news,  .logo, .carousel-inner > .item > img, .carousel-inner > .item > a > img, .parallax, .owl-carousel .owl-item img, .nbs-flexisel-item img, .col-md-6, .fa-ul, .footer .social-circle li a, .ImgNoticia, .ms-rteStyle-Texto_Normal img, .article-content img, .row, .social-bar, #modal-left-iconos .btn, #modal-left-iconos-2 .btn, #modal-left-iconos-3 .btn").removeAttr('style');
151	$(" #menu-principal .sm-clean").removeAttr('style');
152	$(".footer-top, .sky-tabs > input:checked + label span span").removeAttr('style');
153	$("#slide-panel .container a").removeAttr("style");
154
155
156			
157	$("#LiContraste").html("<a href='javascript:AltoContraste();'><span>Alto Contraste</span></a>");
158	if (window.localStorage) {
159	  localStorage.removeItem("AltoContrasteC");
160	}
161}
162
163
164
165
166function PreguntasFrecuentes()
167{
168	$.ajax({
169        url: location.protocol + "//" + location.host + "/_api/web/lists/getbytitle('PreguntasFrecuentes')/items?$select=ID,Pregunta,Respuesta&$orderby=Pregunta%20asc",
170        method: "GET",
171        headers: { "Accept": "application/json; odata=verbose" },
172        success: onSuccessPF,
173        error: onError
174    });
175}
176
177function onSuccessPF(data) {
178		var html = "";		
179		var resultados = data.d.results;
180		for(var i=0; i< resultados.length; i++)
181		{
182			//if(resultados[i].Pregunta != null && resultados[i].Respuesta != "")
183			//{
184				html+="<div class='accordion-container' style='width:100% !important;'><a href='#' class='accordion-toggle'>"+resultados[i].Pregunta+"<span class='toggle-icon'><i class='fa fa-plus-circle'></i></span></a><div class='accordion-content'><p>"+resultados[i].Respuesta+"</p></div></div>";
185			//}
186		}
187	    $("#AcordeonPreguntasFrecuentes").html(html);
188	    
189	    $('.accordion-toggle').on('click', function(event){
190    	event.preventDefault();
191    	// create accordion variables
192    	var accordion = $(this);
193    	var accordionContent = accordion.next('.accordion-content');
194    	var accordionToggleIcon = $(this).children('.toggle-icon');
195    	
196    	// toggle accordion link open class
197    	accordion.toggleClass("open");
198    	// toggle accordion content
199    	accordionContent.slideToggle(250);
200    	
201    	// change plus/minus icon
202    	if (accordion.hasClass("open")) {
203    		accordionToggleIcon.html("<i class='fa fa-minus-circle'></i>");
204    	} else {
205    		accordionToggleIcon.html("<i class='fa fa-plus-circle'></i>");
206    	}
207    });
208    $("#AcordeonPreguntasFrecuentes").jPaginate();
209}
210
211function onError(error) {
212	alert("Error");
213} 
214
215function ArribaS4()
216{
217	$("#s4-workspace").animate({ scrollTop: 650 }, 500);
218}
219
220//Glosario
221
222
223function Glosario(ltr)
224{
225		document.getElementById("ltrrr").innerHTML = ltr;
226		document.getElementById("GlosarioDiv").innerHTML = "";
227		
228	$.ajax({
229        url: location.protocol + "//" + location.host + "/_api/web/lists/getbytitle('Glosario')/items?$top=1000&$orderby=Termino_x0020_Desconocido%20asc",
230        method: "GET",
231        headers: { "Accept": "application/json; odata=verbose" },
232        success: onSuccessGl,
233        error: onError
234    });
235}
236
237function onSuccessGl(data) {
238		var html = "";		
239		var resultados = data.d.results;
240		for(var i=0; i< resultados.length; i++)
241		{
242	    	if(document.getElementById("ltrrr").innerHTML == resultados[i].Termino_x0020_Desconocido.substring(0,1))
243	        {
244		    	html+="<span class='font-semi-bold'><strong>
244"+resultados[i].Termino_x0020_Desconocido+": </strong></span>"+"<span >"+resultados[i].Definici_x00f3_n+"</span><br/><br/>"; 
245		    }  
246		}
247		//alert(html);
248	    document.getElementById("GlosarioDiv").innerHTML = html;
249	    
250	}
251	
252function LoadGaleriaDeImagenes()
253{
254	
255	$.ajax({
256        url: location.protocol + "//" + location.host + "/MiMunicipio/_api/web/lists/getbytitle('GaleriaDeImagenes')/items?$select=ID,Title,FileLeafRef,Description&$orderby=ID%20desc",
257        method: "GET",
258        headers: { "Accept": "application/json; odata=verbose" },
259        success: onSuccessLoadGaleriaDeImagenes,
260        error: onError
261    });
262}
263
264function onSuccessLoadGaleriaDeImagenes(data) 
265{
266 
267var html = "";		
268		var resultados = data.d.results;
269		for(var i=0; i< resultados.length; i++)
270		{
271			var strdescc = "";
272			if(resultados[i].Description != null)
273			{
274				strdescc = resultados[i].Description;
275			}
276			html+="<div class='col-sm-4 col-xs-6 col-md-3 col-lg-3'><a class='thumbnail fancybox' data-fancybox='images' href='/MiMunicipio/GaleriaDeImagenes/"+resultados[i].FileLeafRef+"' data-caption='"+resultados[i].Title+"' ><img class='img-responsive' alt='"+resultados[i].Title+"' src='/MiMunicipio/GaleriaDeImagenes/"+resultados[i].FileLeafRef+"' /><div class='text-right'><small class='text-muted'>"+resultados[i].Title+"</small></div></a></div>";
277		}          
278	    $("#video-gallery").html(html);
279	    
280	    $(".fancybox").fancybox({
281	        openEffect: "none",
282	        closeEffect: "none",
283			helpers: {
284	              title : {
285	                  type : 'float'
286	              }
287	          }
288	          
289	    });
290	    
291        $("#video-gallery").jPaginate({items: 6});
292    // $(".pagination a").click(function() {
293	 //	ArribaS4();
294	// });
295}
296
297function LoadGaleriaVideos()
298{
299	$.ajax({
300        url: location.protocol + "//" + location.host + "/MiMunicipio/_api/web/lists/getbytitle('GaleriaDeVideos')/items?$orderby=ID%20desc",
301        method: "GET",
302        headers: { "Accept": "application/json; odata=verbose" },
303        success: onSuccessLoadGaleriaVideos,
304        error: onError
305    });
306}
307
308function onSuccessLoadGaleriaVideos(data) {
309
310	var resultados = data.d.results;
311	var strhtml = "";	
312
313	for(var i=0; i< resultados.length; i++)
314	{
315		var strdes = "";
316		if(resultados[i].Descripcion != null)
317		{
318			strdes  = resultados[i].Descripcion;
319		}
320		
321		strhtml+= "<div class='col-sm-4 thumbnail'><a data-fancybox data-fancybox='videos' href='http://www.youtube.com/watch?v="+resultados[i].IdVideo+"&fs=0'><i class='fa fa-youtube-play' aria-hidden='true'></i><h2 class='titleVideo'>"+resultados[i].Title+"</h2><div class='shadow'></div><img src='https://img.youtube.com/vi/"+resultados[i].IdVideo+"/0.jpg' alt='"+resultados[i].Title+"'></a></div>";
322	               
323	}
324
325	$("#video-gallery").html(strhtml);
326	  $(".fancybox").fancybox({
327	        openEffect: "none",
328	        closeEffect: "none",
329			helpers: {
330	              title : {
331	                  type : 'float'
332	              }
333	          }
334	          
335	    });
336
337	
338	
339    $("#video-gallery").jPaginate({items: 3});
340}
341
342
343
344function LoadGaleriaAudios()
345{
346	
347	$.ajax({
348        url: location.protocol + "//" + location.host + "/MiMunicipio/_api/web/lists/getbytitle('GaleriaDeAudios')/items?$select=ID,Title,LinkFilename,Autor,Descripcion&$orderby=ID%20desc",
349        method: "GET",
350        headers: { "Accept": "application/json; odata=verbose" },
351        success: onSuccessLoadGaleriaAudios,
352        error: onError
353    });
354}
355
356function onSuccessLoadGaleriaAudios(data) 
357{
358	var resultados = data.d.results;
359	var strhtml = "<ul'>";	
360	var inu = 1;
361	var htmlul = "";
362	for(var i=0; i< resultados.length; i++)
363	{
364		var strautor = "";
365		if(resultados[i].Autor != null)
366		{
367			strautor = resultados[i].Autor;
368		}
369		strhtml+="<li><a style='font-family:\"Oswald\", sans-serif !important; text-decoration:none !important; font-size:10pt'; class='SolidBreadCrumbRoot' href='javascript:void(0);' onclick='GenAudio(\"" + resultados[i].LinkFilename + "\",\"" + resultados[i].Descripcion +"\",\"" + strautor + "\",\"" + resultados[i].Title+ "\");'>" + resultados[i].Title + "</a></li>";
370		if (inu == 1)
371        {
372        	    $("#DivAudio").html("<div class='ms-rteStyle-Subtitulo'>T&#237;tulo:</div><p class='ms-rteStyle-Texto_Normal'>" + resultados[i].Title + "</p><div class='ms-rteStyle-Subtitulo'>Descripci&#243;n</div><p class='ms-rteStyle-Texto_Normal'>" + resultados[i].Descripcion + "</p><div class='ms-rteStyle-Subtitulo'>Autor:</div><p class='ms-rteStyle-Texto_Normal'>" + strautor + "<br/></p>" + "<audio class='Audios' controls src='/MiMunicipio/GaleriaDeAudios/" + resultados[i].LinkFilename + "'></audio>");
373        }
374
375		inu++;
376	}
377	strhtml+= "</ul'>";
378	$("#DivGalAudio").html(strhtml);
379}
380
381function nl2br (str, is_xhtml) {   
382    var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '<br />' : '<br>';    
383    return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1'+ breakTag +'$2');
384}
385
386
387function Sumar1Fecha(obj,j) {
388 var d=new Date(obj);
389
390var sumw = new Date(d.getTime() + (j * 24 * 3600 * 1000));
391 var dia = sumw.getDate();
392 var mes = sumw.getMonth()+1;
393 mes = (mes < 10) ? (mes) : mes;
394 var anio = sumw.getFullYear();
395 var fechaFinal = dia+"/"+mes+"/"+anio;
396 return fechaFinal;
397}
398
399function LoadGaleriaDeMapas()
400{
401	
402	$.ajax({
403        url: location.protocol + "//" + location.host + "/MiMunicipio/_api/web/lists/getbytitle('GaleriaDeMapas')/items?$select=ID,Title,FileLeafRef,Description&$orderby=ID%20desc",
404        method: "GET",
405        headers: { "Accept": "application/json; odata=verbose" },
406        success: onSuccessLoadGaleriaDeMapas,
407        error: onError
408    });
409}
410
411function onSuccessLoadGaleriaDeMapas(data) 
412{
413 
414var html = "";		
415		var resultados = data.d.results;
416		for(var i=0; i< resultados.length; i++)
417		{
418			var strdescc = "";
419			if(resultados[i].Description != null)
420			{
421				strdescc = resultados[i].Description;
422			}
423			html+="<div class='col-sm-4 col-xs-6 col-md-3 col-lg-3'><a class='thumbnail fancybox' data-fancybox='images' href='/MiMunicipio/GaleriaDeMapas/"+resultados[i].FileLeafRef+"' data-caption='"+resultados[i].Title+"' data-description='"+resultados[i].Title+"'><img class='img-responsive' alt='"+resultados[i].Title+"' src='/MiMunicipio/GaleriaDeMapas/"+resultados[i].FileLeafRef+"' /><div class='text-right'><small class='text-muted'>"+resultados[i].Title+"</small></div></a></div>";
424		}          
425	    $("#video-gallery").html(html);
426	    
427	    $(".fancybox").fancybox({
428	        openEffect: "none",
429	        closeEffect: "none",
430			helpers: {
431	              title : {
432	                  type : 'float'
433	              }
434	          }
435	          
436	    });
437	    
438        $("#video-gallery").jPaginate({items: 8});
439        
440	    // $(".pagination a").click(function() {
441		 //	ArribaS4();
442		// });
443}
444
445
446
447function LoadFuncionarios()
448{
449	$.ajax({
450        url: location.protocol + "//" + location.host + "/NuestraAlcaldia/Dependencias/_api/web/lists/getbytitle('Funcionarios')/items?$select=ID,Title,Cargo,FileLeafRef,Correo,Fecha_x0020_de_x0020_Posesi_x00f3_n,Url,Celular,Nombre_x0020_del_x0020_Funcionario&$orderby=Cargo%20asc",
451        method: "GET",
452        headers: { "Accept": "application/json; odata=verbose" },
453        success: onSuccessLoadFuncionarios,
454        error: onError
455    });
456}
457
458function onSuccessLoadFuncionarios(data) {
459	var resultados = data.d.results;
460	var strhtml = "<div class='row'>";	
461	var sdd = 1;
462	for(var i=0; i< resultados.length; i++)
463	{
464		var strcel = '';
465		if(resultados[i].Celular != null && resultados[i].Celular != ""){strcel = resultados[i].Celular;}else{strcel = " ";}
466		
467		var strmail = '';
468		if(resultados[i].Correo != null && resultados[i].Correo != ""){strmail = resultados[i].Correo;}else{strmail = " ";}
469			
470		var strfechapos = '';
471		if(resultados[i].Fecha_x0020_de_x0020_Posesi_x00f3_n!= null && resultados[i].Fecha_x0020_de_x0020_Posesi_x00f3_n!= ""){strfechapos = resultados[i].Fecha_x0020_de_x0020_Posesi_x00f3_n;}else{strfechapos = " ";}
472
473		var strurl = '';
474		if(resultados[i].Url != null && resultados[i].Url != ""){strurl = resultados[i].Url ;}else{strurl = "javascript:void(0);";}
475
476		strhtml+= "<div class='col-md-2'><img style='' src='/NuestraAlcaldia/Dependencias/Funcionarios/"+resultados[i].FileLeafRef+"'></div> <div class='col-md-4'> <span class='subtitulo'><b>"+resultados[i].Cargo+"</b></span><table width='50%' border='0' cellspacing='0' cellpadding='0' class='perfil'><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Nombre:</td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+resultados[i].Nombre_x0020_del_x0020_Funcionario+"</td></tr> <tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Correo:</td><td style='padding:.3em .5em !important; font-size:11px !important;'><a href='mailto:"+strmail+"'>"+strmail+"</a></td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Tel&eacute;fono:</td><td>"+strcel+"</td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Fecha de Posesi&#243;n:</td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+strfechapos+"</td></tr> <tr> <td style='padding:.3em .5em !important; font-size:11px !important; width:100px;'> <a href='"+strurl+"'><i class='fa fa-eye'></i> Ver Hoja de Vida</a></td><td> </td> </tr> </table></div></br>";
477		//if (sdd % 3 == 0)
478        //{
479        	
480		//}
481		if (sdd % 2 == 0)
482        {
483        	strhtml+= "</div><div class='row'>";
484		}
485		sdd++;
486	}
487	//strhtml+= "</div>";
488	$("#DivFuncionarios").html(strhtml);
489	
490	$("#DivFuncionarios").jPaginate({items: 3});
491}
492
493
494function LoadFuncionarios2()
495{
496	$.ajax({
497        url: location.protocol + "//" + location.host + "/NuestraAlcaldia/Dependencias/_api/web/lists/getbytitle('Funcionarios')/items?$select=ID,Title,Cargo,FileLeafRef,Correo,Fecha_x0020_de_x0020_Posesi_x00f3_n,Url,Celular,Nombre_x0020_del_x0020_Funcionario&$orderby=Cargo%20asc",
498        method: "GET",
499        headers: { "Accept": "application/json; odata=verbose" },
500        success: onSuccessLoadFuncionarios2,
501        error: onError
502    });
503}
504
505function onSuccessLoadFuncionarios2(data) {
506	var resultados = data.d.results;
507	var strhtml = "<div class='row'>";	
508	var sdd = 1;
509	for(var i=0; i< resultados.length; i++)
510	{
511		var strcel = '';
512		if(resultados[i].Celular != null && resultados[i].Celular != ""){strcel = resultados[i].Celular;}else{strcel = " ";}
513		
514		var strmail = '';
515		if(resultados[i].Correo != null && resultados[i].Correo != ""){strmail = resultados[i].Correo;}else{strmail = " ";}
516			
517		var strfechapos = '';
518		if(resultados[i].Fecha_x0020_de_x0020_Posesi_x00f3_n!= null && resultados[i].Fecha_x0020_de_x0020_Posesi_x00f3_n!= ""){strfechapos = resultados[i].Fecha_x0020_de_x0020_Posesi_x00f3_n;}else{strfechapos = " ";}
519
520		var strurl = '';
521		if(resultados[i].Url != null && resultados[i].Url != ""){strurl = resultados[i].Url ;}else{strurl = "javascript:void(0);";}
522
523		strhtml+= "<div class='col-md-2'><img style='' src='/NuestraAlcaldia/Dependencias/Funcionarios/"+resultados[i].FileLeafRef+"'></div> <div class='col-md-4'> <span class='subtitulo'><b>"+resultados[i].Cargo+"</b></span><table width='50%' border='0' cellspacing='0' cellpadding='0' class='perfil'><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Nombre:</td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+resultados[i].Nombre_x0020_del_x0020_Funcionario+"</td></tr> <tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Correo:</td><td style='padding:.3em .5em !important; font-size:11px !important;'><a href='mailto:"+strmail+"'>"+strmail+"</a></td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Tel&eacute;fono:</td><td>"+strcel+"</td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Fecha de Posesi&#243;n:</td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+strfechapos+"</td></tr> <tr> <td style='padding:.3em .5em !important; font-size:11px !important; width:100px;'> <a href='"+strurl+"'><i class='fa fa-eye'></i> Ver Hoja de Vida</a></td><td> </td> </tr> </table></div></br>";
524		//if (sdd % 3 == 0)
525        //{
526        	
527		//}
528		if (sdd % 2 == 0)
529        {
530        	strhtml+= "</div><div class='row'>";
531		}
532		sdd++;
533	}
534	//strhtml+= "</div>";
535	$("#DivFuncionarios").html(strhtml);
536	
537	$("#DivFuncionarios").jPaginate({items: 3});
538}
539
540
541
542
543function LoadConsejales()
544{
545	$.ajax({
546        url: location.protocol + "//" + location.host + "/NuestraAlcaldia/_api/web/lists/getbytitle('Concejales1')/items?$select=ID,Title,FileLeafRef,Nombre_x0020_Concejal,Filiaci_x00f3_n_x0020_Pol_x00ed_tica,Tel_x00e9_fono,Correo,Per_x00ed_odo,Comisi_x00f3_n&$orderby=ID%20desc",
547        method: "GET",
548        headers: { "Accept": "application/json; odata=verbose" },
549        success: onSuccessLoadConsejales,
550        error: onError
551    });
552}
553
554function onSuccessLoadConsejales(data){
555debugger;
556	var resultados = data.d.results;
557	var strhtml = "<div class='row'>";	
558	var sdd = 1;
559	
560	for(var i=0; i< resultados.length; i++)
561	{	
562		var strmail = '';
563		if(resultados[i].Correo != null && resultados[i].Correo != ""){strmail = resultados[i].Correo;}else{strmail = " ";}
564		
565		//var nametmp = resultados[i].LinkFilenameNoMenu.split(".");
566		//var name = nametmp[0];
567		
568		strhtml+= "<div class='col-md-2 imgfuncionarios'><img style='' src='/NuestraAlcaldia/Concejales1/"+resultados[i].FileLeafRef+"'></div> <div class='col-md-4'> <span class='subtitulo'>"+resultados[i].Title+"</span><table width='50%' border='0' cellspacing='0' cellpadding='0' class='perfil'><tr><td style='padding:.3em .5em !important; font-size:11px !important;'></td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+
569		name+"</td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Filiación Política:</td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+(resultados[i].Filiaci_x00f3_n_x0020_Pol_x00ed_tica == null ? "" : resultados[i].Filiaci_x00f3_n_x0020_Pol_x00ed_tica)+"</td></tr> <tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Correo:</td><td style='padding:.3em .5em !important; font-size:11px !important;'><a href='mailto:"+strmail+"'>
569"+strmail+"</a></td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Tel&eacute;fono:</td><td>"+
570		(resultados[i].Tel_x00e9_fono == null ? "" : resultados[i].Tel_x00e9_fono) +"</td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Comisión:</td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+
571		(resultados[i].Comisi_x00f3_n == null ? "" : resultados[i].Comisi_x00f3_n) +"</td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Período:</td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+
572		(resultados[i].Per_x00ed_odo == null ? "" : resultados[i].Per_x00ed_odo) +"</td></tr>  </table></div>";
573		//if (sdd % 3 == 0)
574        //{
575        	
576		//}
577		if (sdd % 2 == 0)
578        {
579        	strhtml+= "</div><div class='row'>";
580		}
581		sdd++;
582	}
583	
584	$("#DivFuncionarios").html(strhtml);	
585	$("#DivFuncionarios").jPaginate({items: 3});
586}
587
588
589
590
591
592function LoadFuncionarios2()
593{
594	$.ajax({
595        url: location.protocol + "//" + location.host + "/NuestraAlcaldia/Dependencias/_api/web/lists/getbytitle('Funcionarios')/items?$select=ID,Title,Cargo,FileLeafRef,Correo,Fecha_x0020_de_x0020_Posesi_x00f3_n,Url,Celular,Nombre_x0020_del_x0020_Funcionario&$orderby=Cargo%20asc",
596        method: "GET",
597        headers: { "Accept": "application/json; odata=verbose" },
598        success: onSuccessLoadFuncionarios2,
599        error: onError
600    });
601}
602
603function onSuccessLoadFuncionarios2(data) {
604	var resultados = data.d.results;
605	var strhtml = "<div class='row'>";	
606	var sdd = 1;
607	for(var i=0; i< resultados.length; i++)
608	{
609		var strcel = '';
610		if(resultados[i].Celular != null && resultados[i].Celular != ""){strcel = resultados[i].Celular;}else{strcel = " ";}
611		
612		var strmail = '';
613		if(resultados[i].Correo != null && resultados[i].Correo != ""){strmail = resultados[i].Correo;}else{strmail = " ";}
614			
615		var strfechapos = '';
616		if(resultados[i].Fecha_x0020_de_x0020_Posesi_x00f3_n!= null && resultados[i].Fecha_x0020_de_x0020_Posesi_x00f3_n!= ""){strfechapos = resultados[i].Fecha_x0020_de_x0020_Posesi_x00f3_n;}else{strfechapos = " ";}
617
618		var strurl = '';
619		if(resultados[i].Url != null && resultados[i].Url != ""){strurl = resultados[i].Url ;}else{strurl = "javascript:void(0);";}
620
621		strhtml+= "<div class='col-md-2'><img style='' src='/NuestraAlcaldia/Dependencias/Funcionarios/"+resultados[i].FileLeafRef+"'></div> <div class='col-md-4'> <span class='subtitulo'><b>"+resultados[i].Cargo+"</b></span><table width='50%' border='0' cellspacing='0' cellpadding='0' class='perfil'><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Nombre:</td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+resultados[i].Nombre_x0020_del_x0020_Funcionario+"</td></tr> <tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Correo:</td><td style='padding:.3em .5em !important; font-size:11px !important;'><a href='mailto:"+strmail+"'>"+strmail+"</a></td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Tel&eacute;fono:</td><td>"+strcel+"</td></tr><tr><td style='padding:.3em .5em !important; font-size:11px !important;'>Fecha de Posesi&#243;n:</td><td style='padding:.3em .5em !important; font-size:11px !important;'>"+strfechapos+"</td></tr> <tr> <td style='padding:.3em .5em !important; font-size:11px !important; width:100px;'> <a href='"+strurl+"'><i class='fa fa-eye'></i> Ver Hoja de Vida</a></td><td> </td> </tr> </table></div></br>";
622		//if (sdd % 3 == 0)
623        //{
624        	
625		//}
626		if (sdd % 2 == 0)
627        {
628        	strhtml+= "</div><div class='row'>";
629		}
630		sdd++;
631	}
632	//strhtml+= "</div>";
633	$("#DivFuncionarios").html(strhtml);
634	
635	$("#DivFuncionarios").jPaginate({items: 3});
636}
637
638function LoadGaleriaProyectos()
639{
640	
641	$.ajax({
642        url: location.protocol + "//" + location.host + "/Proyectos/_api/web/lists/getbytitle('Galeria_Proyectos')/items?$select=ID,Title,FileLeafRef,Description&$orderby=ID%20desc",
643        method: "GET",
644        headers: { "Accept": "application/json; odata=verbose" },
645        success: onSuccessLoadGaleriaProyectos,
646        error: onError
647    });
648}
649
650function onSuccessLoadGaleriaProyectos(data) 
651{
652	var resultados = data.d.results;
653	var strhtml = "";	
654	var inu = 1;
655
656	for(var i=0; i< resultados.length; i++)
657	{
658        strhtml+= "<div class='col-sm-4 col-md-4'><div class='thumbnail'><img src='/Proyectos/Galeria_Proyectos/"+resultados[i].FileLeafRef+"' alt='"+resultados[i].Title+"'><div class='caption'><h3>"+resultados[i].Title+"</h3><p>"+resultados[i].Description+"</p><p><a href='/Proyectos/Paginas/Detalle-Proyecto.aspx?IdPry="+resultados[i].ID+"' class='btn btn-primary' role='button' target='_parent'>Ver m&#225;s...</a></p></div></div></div>";                        		
659                  
660		inu++;
661		
662	}
663	
664	//console.log(strhtml);
665	$("#grid").html(strhtml);
666	console.log(strhtml);
667	new GridScrollFx( document.getElementById( 'grid' ), {
668				viewportFactor : 0.9 
669			} );
670	$("#grid").jPaginate({items: 3});
671}
672
673
674function LoadDetalleProyectos()
675{
676	var query = window.location.search.substring(1);
677	var vars = query.split("=");
678	var ID= vars[1];
679
680	$.ajax({
681        url: location.protocol + "//" + location.host + "/Proyectos/_api/web/lists/getbytitle('Galeria_Proyectos')/items?$select=ID,Title,FileLeafRef,PoblacionBeneficiada,ContactoResponsable,AvanceFisico,AvanceFinanciero,LocalizacionMapa,FechaInicio,FechaFinalizacion,Description,Periodo,Programas,Aportes,Inversi_x00f3_n,Localizaci_x00f3_n&$filter=ID eq '"+ID+"'",
682        method: "GET",
683        headers: { "Accept": "application/json; odata=verbose" },
684        success: onSuccessDetalleProyectos,
685        error: onError
686    });
687}
688
689function onSuccessDetalleProyectos(data) 
690{
691	var resultados = data.d.results;
692	for(var i=0; i< resultados.length; i++)
693	{
694		$("#DivPeriodo").html(resultados[i].Periodo);
695		$("#DivDescrip").html(resultados[i].Description);
696		$("#DivLocalizacion").html(resultados[i].Localizaci_x00f3_n);
697		$("#DivInversion").html(resultados[i].Inversi_x00f3_n);
698		$("#DivProgramas").html(resultados[i].Programas);
699		$("#DivAportantes").html(resultados[i].Aportes);
700		$("#DivFInicio").html(resultados[i].FechaInicio);
701		$("#DivFFin").html(resultados[i].FechaFinalizacion);
702		$("#DivPobBen").html(resultados[i].PoblacionBeneficiada);
703		
704		var contacto = '';
705		if(resultados[i].ContactoResponsable != null)
706		{
707			var strespc = resultados[i].ContactoResponsable.split(" ");
708			for(jj = 0; jj < strespc.length; jj++){
709			    if(strespc[jj].indexOf("@")> -1)
710			    {
711			    	contacto+= " <a href='mailto:"+strespc[jj]+"'>"+strespc[jj]+"</a>";
712			    }else
713			    {
714			    	contacto+= " "+strespc[jj];
715			    }
716			}
717		}
718		$("#DivResponsable").html(contacto);
719		if(resultados[i].AvanceFisico != null)
720		{
721			$("#DivAFisico").html(resultados[i].AvanceFisico);
722		}
723		if(resultados[i].AvanceFinanciero!= null)
724		{
725			$("#DivAFinanciero").html(resultados[i].AvanceFinanciero);
726		}
727		$("#SpanTitulo").html(resultados[i].Title);
728		$("#DivLocalizacionn").html(resultados[i].LocalizacionMapa);
729	}
730	LoadDocumentosProyectos();
731	LoadGaleriaDetalleProyecto();
732}
733
734
735function LoadDocumentosProyectos()
736{
737	var query = window.location.search.substring(1);
738	var vars = query.split("=");
739	var ID= vars[1];
740
741	$.ajax({
742        url: location.protocol + "//" + location.host + "/Proyectos/_api/web/lists/getbytitle('Documentos_Detalles_Proyectos')/items?$select=ID,Title,FileLeafRef,Descripci_x00f3_n&$orderby=ID%20desc&$filter=ID_x0020_Proyectos eq '"+ID+"'",
743        method: "GET",
744        headers: { "Accept": "application/json; odata=verbose" },
745        success: onSuccessLoadDocumentosProyectos,
746        error: onError
747    });
748}
749
750function onSuccessLoadDocumentosProyectos(data) 
751{
752	var resultados = data.d.results;
753	var strhtml = "<br/><table border='0' width='100%'><tr><td class='Docx' style='width:40%; text-align:center; background-color:#ededed; font-size:17px; font-family:\"Oswald\" !important;'><strong>Documento</strong></td><td style='width:2%; background-color:#ededed'>&nbsp;&nbsp;</td><td class='Docx' style='width:58%;background-color:#ededed; text-align:center; font-family:\"Oswald\" !important; font-size:17px'><strong>Descripci&oacute;n</strong></td></tr>";	
754	var inu = 1;
755
756	for(var i=0; i< resultados.length; i++)
757	{
758		var desd  = "";
759		if(resultados[i].Descripci_x00f3_n!= null)
760		{
761			desd = resultados[i].Descripci_x00f3_n;
762		}
763        strhtml+= "<tr><td style='width:40%; text-align:justify; font-size:13px !important;'><a style='font-size:13px !important; font-family:\"Oswald\" !important;' class='Docx' target='_blank' href='/Proyectos/Documentos_Detalles_Proyectos/" + resultados[i].FileLeafRef+ "'>" + resultados[i].Title + "</a></td><td style='width:2%;'>&nbsp;&nbsp;&nbsp;&nbsp;</td><td class='Docx' style='width:58%; padding-bottom:10px; font-family:\"Oswald\" !important; text-align:justify; font-size:13px !important;'>" + desd  + "</td></tr>";                        		
764
765		inu++;
766	}
767	//console.log(strhtml);
768	$("#DivDocumentacionPry").html(strhtml);
769}
770
771function LoadGaleriaDetalleProyecto()
772{
773	var query = window.location.search.substring(1);
774	var vars = query.split("=");
775	var ID= vars[1];
776
777
778	$.ajax({
779         url: location.protocol + "//" + location.host + "/Proyectos/_api/web/lists/getbytitle('Galeria_Detalle_Proyecto')/items?$select=ID,Title,FileLeafRef,Description&$orderby=ID%20desc&$filter=IDProyecto eq '"+ID+"'",
780        method: "GET",
781        headers: { "Accept": "application/json; odata=verbose" },
782        success: onSuccessLoadGaleriaDetalleProyecto,
783        error: onError
784    });
785}
786
787function onSuccessLoadGaleriaDetalleProyecto(data) 
788{
789	var resultados = data.d.results;
790	var strhtml = "<div class='gallery-row'>";	
791	var inu = 1;
792	var htmlul = [];
793	for(var i=0; i< resultados.length; i++)
794	{
795		//if (inu % 5 == 0 || inu == 1)
796       // {
797        //    strhtml+= "gallery-row";
798       // }
799       var desd  = "";
800		if(resultados[i].Description != null)
801		{
802			desd = resultados[i].Description;
803		}
804
805
806        strhtml+= "<div class='gallery-item'><a href='/Proyectos/Galeria_Detalle_Proyecto/"+resultados[i].FileLeafRef+"'><img src='/Proyectos/Galeria_Detalle_Proyecto/"+resultados[i].FileLeafRef+"' title='"+resultados[i].Title+"' alt='"+resultados[i].Title+" : "+desd+"' /></a></div>";                        		
807		if (inu % 5 == 0)
808        {
809            strhtml+= "</div>";
810            if(inu < resultados.length-1)
811            {
812            	 strhtml+= "<div class='gallery-row'>";
813            }   
814        }
815
816		inu++;
817	}
818	//console.log(strhtml);
819	$("#Gallery").html(strhtml);
820	Code.photoSwipe('a', '#Gallery');
821
822}
823
824
825function CllZo()
826{
827	setTimeout(function(){
828		$(".rvfs-increase").click(function(event){		
829			reord();
830		});
831		$(".rvfs-decrease").click(function(event){		
832			reord();
833		});
834		$(".rvfs-reset").click(function(event){		
835			reord();
836		});
837	}, 1000);
838}
839
840function reord()
841{
842if ($("body").hasClass("rvfs-1")) {
843	    $("#menu a, #cssmenu > ul > li > a, #cssmenu ul li ul li a, .goog-te-gadget-simple .goog-te-menu-value, .ms-rteStyle-Texto_Normal").css("font-size","11px");
844	    $('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 18px !important');
845		$('.ms-rteStyle-Texto_Normal, .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 11px !important; line-height: 100%;');
846		
847		var strls = localStorage.getItem("AltoContrasteC");
848		if(strls == "C")
849		{
850			$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', ' background-color: #E91C23 !important');
851			$('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 18px !important; color: #FFF !important;');
852		    $('.ms-rteStyle-Texto_Normal, .ms-rteStyle-Texto_Normal a, .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .goog-te-gadget-simple .goog-te-menu-value span:first-child, #LiContraste a span, #cssmenu > ul > li > a').attr('style', 'font-size: 11px !important; line-height: 100%; color: #FFF !important;');
853
854			
855		};
856		$('#google_translate_element').attr('style', 'position: relative; top: 0px; margin-right: 17px;');
857		$('.modulos').attr('style', 'font-size:16px !important');
858		$("h3").css("font-size","16px");
859		$(".data-num").css("font-size","21px");
860		$(".data-text").css("font-size","6px");
861		$(".header-top .navbar-inverse .navbar-nav > li > a").attr('style', 'font-size:6px !important');
862		$(".info-header .Linea").css("font-size","6px");
863		$(".info-header .LineaNum").css("font-size","13px");
864		$("#iconos-principales .mas_enlace").css("font-size","10px");
865		$(".row2").css("font-size","11px");
866		$("#datos h1").css("font-size","30px !important;");
867		$("#iconos-principales .titulo_enlace").css("font-size","0.5em");
868		$("#tituloMunicipio h1").attr('style', 'font-size:23px !important');
869		$("#tituloMunicipio h3").attr('style', 'font-size:6px !important');
870		$(".info-header .list-group").attr('style', 'font-size:6px !important');
871		$(".sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active").attr('style', 'font-size:10px !important');
872		$(".carousel-caption h5").attr('style', 'font-size:6px !important');
873		$("#sala-prensa h1").attr('style', 'font-size:29px !important');
874		$(".caption h3").attr('style', 'font-size:17px !important');
875		$(".caption p").attr('style', 'font-size:7px !important');
876		$("#estamos-cambiando h1").attr('style', 'font-size:29px !important');
877		$("#eventos h1").attr('style', 'font-size:29px !important');
878		$("#eventos h4").attr('style', 'font-size:12px !important');
879		$("#eventos p").attr('style', 'font-size:9px !important');
880		$(".footer-widget h3").attr('style', 'font-size:17px !important');
881		$(".footer-widget .fa-ul li").attr('style', 'font-size:9px !important');
882		$(".footer-custom-menu li a").attr('style', 'font-size:9px !important');
883
884
885	
886		
887		$(".copyright").css("font-size","10px");
888		$("#LiAutenticarse").css("margin-left","-46px");
889		$('.titulo_enlace a').attr('style', 'font-size:0.9em !important');
890		$('div.sheet-slider div.tab .text h3').attr('style', 'font-size:36px !important');
891		$("#google_translate_element .goog-te-menu-value").removeAttr('class').attr('class', 'goog-te-menu-value SelectIdioma1');
892		$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 11px !important; margin-top:-3px !important;');
893		if (window.localStorage) { localStorage.setItem("AumentoF", "rvfs-1"); }
894		return;     		
895	}
896	if ($("body").hasClass("rvfs-2")) {
897	    $(".navbar-nav>li>a, #menu a, #cssmenu > ul > li > a, #cssmenu ul li ul li a, .goog-te-gadget-simple .goog-te-menu-value, .ms-rteStyle-Texto_Normal").css("font-size","12px");
898	    $('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 20px !important');
899		$('.ms-rteStyle-Texto_Normal, .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 12px !important; line-height: 100%;');
900		
901		var strls = localStorage.getItem("AltoContrasteC");
902		if(strls == "C")
903		{
904			$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', ' background-color: #E91C23 !important');
905			$('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 20px !important; color: #FFF !important;');
906		    $('.ms-rteStyle-Texto_Normal, .ms-rteStyle-Texto_Normal a, .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value span:first-child, #LiContraste a span, #cssmenu > ul > li > a').attr('style', 'font-size: 12px !important; line-height: 100%; color: #FFF !important;');
907
908			
909		};
910
911		$('#google_translate_element').attr('style', 'position: relative; top: -1px; margin-right: 6px;');
912		$('.modulos').attr('style', 'font-size:17px !important');
913		$("h3").css("font-size","18px");
914		$(".data-num").css("font-size","24px");
915		$(".data-text").css("font-size","8px");
916		$(".header-top .navbar-inverse .navbar-nav > li > a").attr('style', 'font-size:7px !important');
917		$(".info-header .Linea").css("font-size","8px");
918		$(".info-header .LineaNum").css("font-size","14px");
919		$(".row2").css("font-size","12px");
920		$("#datos h1").css("font-size","31px !important;");
921		$("#iconos-principales .mas_enlace").css("font-size","11px");
922		$("#iconos-principales .titulo_enlace").css("font-size","0.6em");
923		$("#tituloMunicipio h1").attr('style', 'font-size:26px !important');
924		$("#tituloMunicipio h3").attr('style', 'font-size:9px !important');
925		$(".info-header .list-group").attr('style', 'font-size:7px !important');
926		$(".sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active").attr('style', 'font-size:12px !important');
927		$(".carousel-caption h5").attr('style', 'font-size:9px !important');
928		$("#sala-prensa h1").attr('style', 'font-size:31px !important');
929		$(".caption h3").attr('style', 'font-size:18px !important');
930		$(".caption p").attr('style', 'font-size:8px !important');
931		$("#estamos-cambiando h1").attr('style', 'font-size:31px !important');
932		$("#eventos h1").attr('style', 'font-size:31px !important');
933		$("#eventos h4").attr('style', 'font-size:14px !important');
934		$("#eventos p").attr('style', 'font-size:10px !important');
935		$(".footer-widget h3").attr('style', 'font-size:18px !important');
936		$(".footer-widget .fa-ul li").attr('style', 'font-size:10px !important');
937		$(".footer-custom-menu li a").attr('style', 'font-size:10px !important');
938
939
940		
941		$(".copyright").css("font-size","12px");
942		$("#LiAutenticarse").css("margin-left","-26px");
943		$('.titulo_enlace a').attr('style', 'font-size:1em !important');
944		$('div.sheet-slider div.tab .text h3').attr('style', 'font-size:39px !important');
945		$("#google_translate_element .goog-te-menu-value").removeAttr('class').attr('class', 'goog-te-menu-value SelectIdioma2');
946		$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 12px !important; margin-top:-2px !important;');
947		if (window.localStorage) { localStorage.setItem("AumentoF", "rvfs-2"); }
948		return;     		
949	}
950	if ($("body").hasClass("rvfs-3")) {
951	    $(".navbar-nav>li>a, #menu a, #cssmenu > ul > li > a, #cssmenu ul li ul li a, .goog-te-gadget-simple .goog-te-menu-value, .ms-rteStyle-Texto_Normal").css("font-size","14px");
952	    $('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 22px !important');
953		$('.ms-rteStyle-Texto_Normal,  .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 14px !important; line-height: 100%;');
954		
955		var strls = localStorage.getItem("AltoContrasteC");
956		if(strls == "C")
957		{
958			$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', ' background-color: #E91C23 !important');			
959			$('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 22px !important; color: #FFF !important;');
960		    $('.ms-rteStyle-Texto_Normal, .ms-rteStyle-Texto_Normal a, .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value span:first-child, #LiContraste a span, #cssmenu > ul > li > a').attr('style', 'font-size: 14px !important; line-height: 100%; color: #FFF !important;');
961
962
963			
964		};
965
966		$('#google_translate_element').attr('style', 'position: relative; top: 0px;');
967		$('.modulos').attr('style', 'font-size:18px !important');
968		$("h3").css("font-size","20px");
969		$(".data-num").css("font-size","27px");
970		$(".data-text").css("font-size","10px");
971		$(".row2").css("font-size","13px");
972		$(".header-top .navbar-inverse .navbar-nav > li > a").attr('style', 'font-size:8px !important');
973		$(".info-header .Linea").css("font-size","10px");
974		$(".info-header .LineaNum").css("font-size","15px");
975		$("#datos h1").css("font-size","32px !important;");
976		$("#iconos-principales .mas_enlace").css("font-size","12px");
977		$("#iconos-principales .titulo_enlace").css("font-size","0.8em");
978		$("#tituloMunicipio h1").attr('style', 'font-size:30px !important');
979		$("#tituloMunicipio h3").attr('style', 'font-size:11px !important');
980		$(".info-header .list-group").attr('style', 'font-size:9px !important');
981		$(".sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active").attr('style', 'font-size:14px !important');
982		$(".carousel-caption h5").attr('style', 'font-size:11px !important');
983		$("#sala-prensa h1").attr('style', 'font-size:33px !important');
984		$(".caption h3").attr('style', 'font-size:20px !important');
985		$(".caption p").attr('style', 'font-size:10px !important');
986		$("#estamos-cambiando h1").attr('style', 'font-size:33px !important');
987		$("#eventos h1").attr('style', 'font-size:33px !important');
988		$("#eventos h4").attr('style', 'font-size:16px !important');
989		$("#eventos p").attr('style', 'font-size:12px !important');	
990		$(".footer-widget h3").attr('style', 'font-size:20px !important');
991		$(".footer-widget .fa-ul li").attr('style', 'font-size:12px !important');
992		$(".footer-custom-menu li a").attr('style', 'font-size:12px !important');
993
994
995		
996		$(".copyright").css("font-size","14px");
997		$("#LiAutenticarse").css("margin-left","-10px");
998		$('.titulo_enlace a').attr('style', 'font-size:1.1em !important');
999		$('div.sheet-slider div.tab .text h3').attr('style', 'font-size:42px !important');
1000		$("#google_translate_element .goog-te-menu-value").removeAttr('class').attr('class', 'goog-te-menu-value SelectIdioma3');
1001		$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 14px !important; margin-top:-1px !important;');
1002		if (window.localStorage) { localStorage.setItem("AumentoF", "rvfs-3"); }
1003		return;     		
1004	}
1005	if ($("body").hasClass("rvfs-4")) {
1006	   	$(".navbar-nav>li>a, #menu a, #cssmenu > ul > li > a, #cssmenu ul li ul li a, .goog-te-gadget-simple .goog-te-menu-value, .ms-rteStyle-Texto_Normal").css("font-size","15px");
1007	   	$('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 24px !important');
1008		$('.ms-rteStyle-Texto_Normal, .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 15px !important; line-height: 100%;');
1009		
1010		var strls = localStorage.getItem("AltoContrasteC");
1011		if(strls == "C")
1012		{
1013			$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', ' background-color: #E91C23 !important;');
1014			 
1015			$('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 24px !important; color: #FFF !important;');
1016		    $('.ms-rteStyle-Texto_Normal, .ms-rteStyle-Texto_Normal a, .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value span:first-child, #LiContraste a span, #cssmenu > ul > li > a').attr('style', 'font-size: 15px !important; line-height: 100%; color: #FFF !important;');
1017
1018			
1019		};
1020
1021		$('#google_translate_element').attr('style', 'position: relative; top: 0px;');
1022		$('.modulos').attr('style', 'font-size: 19px  !important');
1023		$("h3").css("font-size","22px");
1024		$(".data-num").css("font-size","30px");
1025		$(".data-text").css("font-size","12px");
1026		$(".header-top .navbar-inverse .navbar-nav > li > a").attr('style', 'font-size:10px !important');
1027		$(".info-header .Linea").css("font-size","12px");
1028		$(".info-header .LineaNum").css("font-size","17px");
1029		$(".row2").css("font-size","15px");
1030		$("#datos h1").css("font-size","36px !important;");
1031		$("#iconos-principales .mas_enlace").css("font-size","14px");
1032		$("#iconos-principales .titulo_enlace").css("font-size","1em");
1033		$("#tituloMunicipio h1").attr('style', 'font-size:33px !important');
1034		$("#tituloMunicipio h3").attr('style', 'font-size:14px !important');
1035		$(".info-header .list-group").attr('style', 'font-size:11px !important');
1036		$(".sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active").attr('style', 'font-size:16px !important');
1037		$(".carousel-caption h5").attr('style', 'font-size:14px !important');
1038		$("#sala-prensa h1").attr('style', 'font-size:36px !important');
1039		$(".caption h3").attr('style', 'font-size:22px !important');
1040		$(".caption p").attr('style', 'font-size:13px !important');
1041		$("#estamos-cambiando h1").attr('style', 'font-size:36px !important');
1042		$("#eventos h1").attr('style', 'font-size:36px !important');
1043		$("#eventos h4").attr('style', 'font-size:18px !important');
1044		$("#eventos p").attr('style', 'font-size:14px !important');
1045		$(".footer-widget h3").attr('style', 'font-size:22px !important');
1046		$(".footer-widget .fa-ul li").attr('style', 'font-size:14px !important');
1047		$(".footer-custom-menu li a").attr('style', 'font-size:14px !important');
1048
1049
1050		
1051		$(".copyright").css("font-size","16px");
1052		$('.titulo_enlace a').attr('style', 'font-size:1.2em !important');
1053		$("#LiAutenticarse").css("margin-left","0px");
1054        $('div.sheet-slider div.tab .text h3').attr('style', 'font-size:45px !important');
1055        $("#google_translate_element .goog-te-menu-value").removeAttr('class').attr('class', 'goog-te-menu-value SelectIdioma4');
1056		$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 14px !important; padding-top:0px !important;');
1057		if (window.localStorage) { localStorage.setItem("AumentoF", "rvfs-4"); }
1058		return;     		
1059	}
1060	if ($("body").hasClass("rvfs-5")) {   
1061
1062	    $(".navbar-nav>li>a, #menu a, #cssmenu > ul > li > a, #cssmenu ul li ul li a, .goog-te-gadget-simple .goog-te-menu-value, .ms-rteStyle-Texto_Normal").css("font-size","16px");
1063	    $('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 26px !important');
1064		$('.ms-rteStyle-Texto_Normal, .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 16px !important; line-height: 100%;');
1065		
1066	    var strls = localStorage.getItem("AltoContrasteC");
1067		if(strls == "C")
1068		{
1069			$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', ' background-color: #E91C23 !important;');
1070			
1071			$('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 26px !important; color: #FFF !important;');
1072		    $('.ms-rteStyle-Texto_Normal, .ms-rteStyle-Texto_Normal a, .news-desc p, .no-mbt, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value span:first-child, #LiContraste a span, #cssmenu > ul > li > a').attr('style', 'font-size: 16px !important; line-height: 100%; color: #FFF !important;');
1073			   
1074		};
1075		$('#google_translate_element').attr('style', 'position: relative; top: 0px;');
1076		$('.modulos').attr('style', 'font-size: 20px !important');
1077		$("h3").css("font-size","24px");
1078		$(".data-num").css("font-size","33px");
1079		$(".data-text").css("font-size","14px");
1080		$(".row2").css("font-size","16px");
1081		$("#datos h1").css("font-size","37px !important;");
1082		$(".header-top .navbar-inverse .navbar-nav > li > a").attr('style', 'font-size:12px !important');
1083		$(".info-header .Linea").css("font-size","13px");
1084		$(".info-header .LineaNum").css("font-size","18px");
1085		$("#iconos-principales .mas_enlace").css("font-size","15px");
1086		$("#iconos-principales .titulo_enlace").css("font-size","1.2em");
1087		$("#tituloMunicipio h1").attr('style', 'font-size:35px !important');
1088		$("#tituloMunicipio h3").attr('style', 'font-size:16px !important');
1089		$(".info-header .list-group").attr('style', 'font-size:13px !important');
1090		$(".sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active").attr('style', 'font-size:18px !important');
1091		$(".carousel-caption h5").attr('style', 'font-size:16px !important');
1092		$("#sala-prensa h1").attr('style', 'font-size:38px !important');
1093		$(".caption h3").attr('style', 'font-size:24px !important');
1094		$(".caption p").attr('style', 'font-size:15px !important');
1095		$("#estamos-cambiando h1").attr('style', 'font-size:38px !important');
1096		$("#eventos h1").attr('style', 'font-size:38px !important');
1097		$("#eventos h4").attr('style', 'font-size:20px !important');
1098		$("#eventos p").attr('style', 'font-size:16px !important');
1099		$(".footer-widget h3").attr('style', 'font-size:24px !important');
1100		$(".footer-widget .fa-ul li").attr('style', 'font-size:16px !important');
1101		$(".footer-custom-menu li a").attr('style', 'font-size:16px !important');
1102
1103
1104		
1105		$('.copyright').attr('style', 'font-size: 18px !important; line-height:20px');
1106		$('.titulo_enlace a').attr('style', 'font-size:1.3em !important');
1107		$("#LiAutenticarse").css("margin-left","12px");
1108		$('div.sheet-slider div.tab .text h3').attr('style', 'font-size:48px !important');
1109		$("#google_translate_element .goog-te-menu-value").removeAttr('class').attr('class', 'goog-te-menu-value SelectIdioma5');
1110		$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 16px !important; padding-top:1px !important;');
1111		if (window.localStorage) { localStorage.setItem("AumentoF", "rvfs-5"); }
1112		return;
1113	}
1114	if ($("body").hasClass("rvfs-6")) {    
1115		$(".navbar-nav>li>a, #menu a, #cssmenu > ul > li > a, #cssmenu ul li ul li a, .goog-te-gadget-simple .goog-te-menu-value, .ms-rteStyle-Texto_Normal").css("font-size","18px");
1116		$('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 28px !important');
1117		$('.ms-rteStyle-Texto_Normal, .news-desc p, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 18px !important; line-height: 100%;');
1118		
1119		var strls = localStorage.getItem("AltoContrasteC");
1120		if(strls == "C")
1121		{
1122			$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', ' background-color: #E91C23 !important');
1123			
1124			
1125			$('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 28px !important; color: #FFF !important;');
1126		    $('.ms-rteStyle-Texto_Normal, .ms-rteStyle-Texto_Normal a, .news-desc p, .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value span:first-child, #LiContraste a span, #cssmenu > ul > li > a').attr('style', 'font-size: 18px !important; line-height: 100%; color: #FFF !important;');
1127
1128			
1129		};
1130		$('#google_translate_element').attr('style', 'position: relative; top: 0px;');
1131		$('.modulos').attr('style', 'font-size: 21px !important');
1132		$("h3").css("font-size","26px");
1133		$(".data-num").css("font-size","36px");
1134		$(".data-text").css("font-size","16px");
1135		$("#datos h1").css("font-size","38px !important;");
1136		$(".header-top .navbar-inverse .navbar-nav > li > a").attr('style', 'font-size:13px !important');
1137		$(".info-header .Linea").css("font-size","14px");
1138		$(".info-header .LineaNum").css("font-size","19px");
1139		$(".row2").css("font-size","17px");
1140		$("#iconos-principales .mas_enlace").css("font-size","16px");
1141		$("#iconos-principales .titulo_enlace").css("font-size","1.3em");
1142		$("#tituloMunicipio h1").attr('style', 'font-size:36px !important');
1143		$("#tituloMunicipio h3").attr('style', 'font-size:17px !important');
1144		$(".info-header .list-group").attr('style', 'font-size:15px !important');
1145		$(".sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active").attr('style', 'font-size:20px !important');
1146		$(".carousel-caption h5").attr('style', 'font-size:17px !important');
1147		$("#sala-prensa h1").attr('style', 'font-size:39px !important');
1148		$(".caption h3").attr('style', 'font-size:26px !important');
1149		$(".caption p").attr('style', 'font-size:17px !important');
1150		$("#estamos-cambiando h1").attr('style', 'font-size:39px!important');
1151		$("#eventos h1").attr('style', 'font-size:39px !important');
1152		$("#eventos h4").attr('style', 'font-size:22px !important');
1153		$("#eventos p").attr('style', 'font-size:18px !important');
1154		$(".footer-widget h3").attr('style', 'font-size:25px !important');
1155		$(".footer-widget .fa-ul li").attr('style', 'font-size:17px !important');
1156		$(".footer-custom-menu li a").attr('style', 'font-size:17px !important');
1157
1158
1159		
1160		$('.copyright').attr('style', 'font-size: 18px !important; line-height: 23px;');
1161		$('.titulo_enlace a').attr('style', 'font-size:1.4em !important');
1162		$("#LiAutenticarse").css("margin-left","26px");
1163        $('div.sheet-slider div.tab .text h3').attr('style', 'font-size:51px !important');
1164        $("#google_translate_element .goog-te-menu-value").removeAttr('class').attr('class', 'goog-te-menu-value SelectIdioma6');
1165        $('.goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 18px !important; padding-top:1px !important;');
1166        if (window.localStorage) { localStorage.setItem("AumentoF", "rvfs-6"); }
1167		return;
1168	}
1169	if ($("body").hasClass("rvfs-7")) {
1170	   	$(".navbar-nav>li>a, #menu a, #cssmenu > ul > li > a, #cssmenu ul li ul li a, .goog-te-gadget-simple .goog-te-menu-value, .ms-rteStyle-Texto_Normal").css("font-size","19px");
1171	   	$('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 30px !important');
1172		$('.ms-rteStyle-Texto_Normal, .news-desc p,  .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 19px !important; line-height: 100%;');
1173		
1174		var strls = localStorage.getItem("AltoContrasteC");
1175		if(strls == "C")
1176		{
1177			$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', ' background-color: #E91C23 !important');
1178			 
1179		    $('.ms-rteStyle-Titulo_Principal').attr('style', 'font-size: 30px !important; color: #FFF !important;');
1180		    $('.ms-rteStyle-Texto_Normal, .ms-rteStyle-Texto_Normal a, .news-desc p,  .text-content p, .widget-box, #news .news-item .desc span, .info, .goog-te-gadget-simple .goog-te-menu-value span:first-child, #LiContraste a span, #cssmenu > ul > li > a').attr('style', 'font-size: 19px !important; line-height: 100%; color: #FFF !important;');
1181            //$('.goog-te-gadget-simple .goog-te-menu-value span:first-child').attr('style', 'top: 3px; position: relative; ');
1182
1183		};
1184
1185		$('#google_translate_element').attr('style', 'position: relative; top: 1px; !important');
1186		$('.modulos').attr('style', 'font-size: 22px !important');
1187		$("h3").css("font-size","28px");
1188		$(".data-num").css("font-size","39px");
1189		$(".data-text").css("font-size","18px");
1190		$(".row2").css("font-size","18px");
1191		$("#datos h1").css("font-size","39px !important;");
1192		$(".header-top .navbar-inverse .navbar-nav > li > a").attr('style', 'font-size:14px !important');
1193		$(".info-header .Linea").css("font-size","15px");
1194		$(".info-header .LineaNum").css("font-size","20px");
1195		$("#iconos-principales .mas_enlace").css("font-size","17px");
1196		$("#iconos-principales .titulo_enlace").css("font-size","1.4em");
1197		$("#tituloMunicipio h1").attr('style', 'font-size:37px !important');
1198		$("#tituloMunicipio h3").attr('style', 'font-size:18px !important');
1199		$(".info-header .list-group").attr('style', 'font-size:16px !important');
1200		$(".sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active").attr('style', 'font-size:21px !important');
1201		$(".carousel-caption h5").attr('style', 'font-size:18px !important');
1202		$("#sala-prensa h1").attr('style', 'font-size:40px !important');
1203		$(".caption h3").attr('style', 'font-size:27px !important');
1204		$(".caption p").attr('style', 'font-size:19px !important');
1205		$("#estamos-cambiando h1").attr('style', 'font-size:40px !important');
1206		$("#eventos h1").attr('style', 'font-size:40px !important');
1207		$("#eventos h4").attr('style', 'font-size:23px !important');
1208		$("#eventos p").attr('style', 'font-size:20px !important');
1209		$(".footer-widget h3").attr('style', 'font-size:26px !important');
1210		$(".footer-widget .fa-ul li").attr('style', 'font-size:18px !important');
1211		$(".footer-custom-menu li a").attr('style', 'font-size:18px !important');
1212
1213
1214		
1215		$('.copyright').attr('style', 'font-size: 18px !important;
1215 line-height: 26px;');
1216		$('.titulo_enlace a').attr('style', 'font-size:1.5em !important');
1217		$("#LiAutenticarse").css("margin-left","39px");
1218		$('div.sheet-slider div.tab .text h3').attr('style', 'font-size:54px !important');
1219		$("#google_translate_element .goog-te-menu-value").removeAttr('class').attr('class', 'goog-te-menu-value SelectIdioma7');
1220		$('.goog-te-gadget-simple .goog-te-menu-value').attr('style', 'font-size: 20px !important; padding-top:1px !important;');
1221		if (window.localStorage) { localStorage.setItem("AumentoF", "rvfs-7"); }
1222
1223	return;
1224	}
1225
1226}
1227
1228
1229
1230function LoadCabezoteMenu()
1231{
1232		$.ajax({
1233	        url: location.protocol + "//" + location.host + "/_api/web/lists/getbytitle('CabezotesModulos')/items?$select=ID,Modulo,Description,FileLeafRef&$orderby=ID%20desc",
1234	        method: "GET",
1235	        headers: { "Accept": "application/json; odata=verbose" },
1236	        success: onSuccessLoadCabezotesMenu,
1237	        error: onError
1238	    });	
1239}
1240
1241function onSuccessLoadCabezotesMenu(data) 
1242{
1243	var resultados = data.d.results;
1244	
1245	for(var i=0; i< resultados.length; i++)
1246	{
1247		var strDesc = "";
1248        if(resultados[i].Description != null)
1249        {
1250           strDesc = resultados[i].Description;
1251        }
1252		if(resultados[i].Modulo == "Mi Municipio")
1253		{		  
1254            $("#ImMenuM1").html("<img src='/CabezotesModulos/"+resultados[i].FileLeafRef+"' class='resp'><p class='text_box'>"+strDesc+"</p>");
1255       	}
1256       	if(resultados[i].Modulo == "Nuestra Alcaldía")
1257		{		  
1258            $("#ImMenuM2").html("<img src='/CabezotesModulos/"+resultados[i].FileLeafRef+"' class='resp'><p class='text_box'>"+strDesc+"</p>");
1259       	}
1260		if(resultados[i].Modulo == "Ciudadanos")
1261		{		  
1262            $("#ImMenuM3").html("<img src='/CabezotesModulos/"+resultados[i].FileLeafRef+"' class='resp'><p class='text_box'>"+strDesc+"</p>");
1263       	}
1264		if(resultados[i].Modulo == "Proyectos")
1265		{		  
1266            $("#ImMenuM4").html("<img src='/CabezotesModulos/"+resultados[i].FileLeafRef+"' class='resp'><p class='text_box'>"+strDesc+"</p>");
1267       	}
1268		if(resultados[i].Modulo == "Transparencia")
1269		{		  
1270            $("#ImMenuM5").html("<img src='/CabezotesModulos/"+resultados[i].FileLeafRef+"' class='resp'><p class='text_box'>"+strDesc+"</p>");
1271       	}
1272		if(resultados[i].Modulo == "Conectividad")
1273		{		  
1274            $("#ImMenuM6").html("<img src='/CabezotesModulos/"+resultados[i].FileLeafRef+"' class='resp'><p class='text_box'>"+strDesc+"</p>");
1275       	}
1276
1277	}
1278}
1279
1280
1281
1282/* ==== ACCORDEON SCRIPT ==== */
1283$(document).ready(function () {
1284    $('.accordion-toggle').on('click', function (event) {
1285        event.preventDefault();
1286        // create accordion variables
1287        var accordion = $(this);
1288        var accordionContent = accordion.next('.accordion-content');
1289        var accordionToggleIcon = $(this).children('.toggle-icon');
1290
1291        // toggle accordion link open class
1292        accordion.toggleClass("open");
1293        // toggle accordion content
1294        accordionContent.slideToggle(250);
1295
1296        // change plus/minus icon
1297        if (accordion.hasClass("open")) {
1298            accordionToggleIcon.html("<i class='fa fa-minus-circle'></i>");
1299        } else {
1300            accordionToggleIcon.html("<i class='fa fa-plus-circle'></i>");
1301        }
1302    });
1303});
1304
1305
1306
1307//TRAMITES
1308function ObtenerDependencia() 
1309{ 
1310  var dependencia = ''; 
1311if(document.location.href.indexOf('/Tramites-y-Servicios-Secretaria-de-Hacienda') > -1 ){dependencia = "de Hacienda"; 
1312}else{ 
1313if(document.location.href.indexOf('/Tramites-y-Servicios-Alcaldia') > -1 ){dependencia = "Alcald"; 
1314}else{ 
1315if(document.location.href.indexOf('/Tramites-y-Servicios-Secretaria-de-Planeacion') > -1 ){dependencia = "Planeaci"; 
1316}else{ 
1317if(document.location.href.indexOf('/Tramites-y-Servicios-Secretaria-de-Gestion-Social') > -1 ){dependencia = "Bienestar Comunitario"; 
1318}else{ 
1319dependencia = "Despacho del Alcalde"	     
1320} 
1321} 
1322} 
1323} 
1324   return dependencia; 
1325} 
1326 
1327function LoadTramitexDependencia() 
1328{  
1329 if(ObtenerDependencia() != "Despacho del Alcalde") 
1330 { 
1331  $.ajax({ 
1332         url: location.protocol + "//" + location.host + "/Ciudadanos/_api/web/lists/getbytitle('TramitesyServicios')/items?$select=ID,Title,Dependencia,Recaudo,Tr_x00e1_mite_x0020_Online,Categor_x00ed_a_x0020_SUIT,Recaudo,Descripcion&$orderby=Title%20asc", 
1333         method: "GET", 
1334         headers: { "Accept": "application/json; odata=verbose" }, 
1335         success: onSuccesTramitexDependencia, 
1336         error: onError 
1337     }); 
1338 } 
1339 else 
1340 { 
1341     $("#DivTramites").html("error"); 
1342 } 
1343} 
1344
1345function onSuccesTramitexDependencia(data)  
1346{ 
1347 var resultados = data.d.results; 
1348 var strhtml = "";  
1349 var onhtml = "";  
1350 var online = 0; 
1351 var numAcordeon = 0; 
1352 
1353 for(var i=0; i< resultados.length; i++) 
1354 { 
1355
1356  var strdes = " "; 
1357  if(resultados[i].Descripcion != null) 
1358  { 
1359   strdes = resultados[i].Descripcion; 
1360  } 
1361  var suit  = resultados[i].Categor_x00ed_a_x0020_SUIT; 
1362  var enlace  = resultados[i].Tr_x00e1_mite_x0020_Online; 
1363  var Dep  = resultados[i].Dependencia; 
1364         
1365  if(Dep.indexOf(ObtenerDependencia()) > -1 ){ 
1366
1367  if(suit != null && enlace != null){ 
1368       strhtml+= "<div class='col-md-6'><div class='panel panel-primary accordion'> <div class='panel-heading'> <h5 class='panel-title'>" + resultados[i].Title+ "</h5> </div><div class='panel-body'><div class='col-md-12'><a class='collapsed collapsed-icon' data-toggle='collapse' href='#collapse"+numAcordeon+"'>Ver Descripci&#243;n  </a><div class='collapse' id='collapse"+numAcordeon+"'><p>" + strdes + "</p></div></div><div class='col-md-4'><h5>Requiere pago</h5><p>" + resultados[i].Recaudo+ "</p></div><div class='col-md-4'><h5>Dependencia</h5><p>" + resultados[i].Dependencia+ "</p></div><div class='col-md-4'><h5>Categor&#237;a No M&#225;s Filas</h5><p><a  href='" + suit.Url + "' target='_blank' >Requisitos del tr&#225;mite </a></p></div><div class='col-md-12'><a class='btn btn-success' href='" + enlace.Url + "' >Inicie su tr&#225;mite <i class='fa fa-arrow-circle-right' ></i></a> </div></div></div></div>";                           
1369       online++; 
1370       numAcordeon++; 
1371       }            
1372   else if(enlace != null && strdes != null){ 
1373       strhtml+= "<div class='col-md-6'><div class='panel panel-primary accordion'> <div class='panel-heading'> <h5 class='panel-title'>" + resultados[i].Title+ "</h5> </div><div class='panel-body'><div class='col-md-12'><a class='collapsed collapsed-icon' data-toggle='collapse' href='#collapse"+numAcordeon+"'>Ver Descripci&#243;n  </a><div class='collapse' id='collapse"+numAcordeon+"'><p>" + strdes + "</p></div></div><div class='col-md-4'><h5>Requiere pago</h5><p>" + resultados[i].Recaudo+ "</p></div><div class='col-md-4'><h5>Dependencia</h5><p>" + resultados[i].Dependencia+ "</p></div><div class='col-md-4'></div><div class='col-md-12'><a class='btn btn-success' href='" + enlace.Url + "' >Inicie su tr&#225;mite <i class='fa fa-arrow-circle-right' ></i></a></div></div></div></div>";                           
1374             online++; 
1375             numAcordeon++; 
1376             } 
1377         else if(suit != null && enlace == null ){ 
1378       strhtml+= "<div class='col-md-6'><div class='panel panel-primary accordion'> <div class='panel-heading'> <h5 class='panel-title'>" + resultados[i].Title+ "</h5> </div><div class='panel-body'><div class='col-md-12'><a class='collapsed collapsed-icon' data-toggle='collapse' href='#collapse"+numAcordeon+"'>Ver Descripci&#243;n  </a><div class='collapse' id='collapse"+numAcordeon+"'><p>" + strdes + "</p></div></div><div class='col-md-4'><h5>Requiere pago</h5><p>" + resultados[i].Recaudo+ "</p></div><div class='col-md-4'><h5>Dependencia</h5><p>" + resultados[i].Dependencia+ "</p></div><div class='col-md-4'><h5>Categor&#237;a No M&#225;s Filas</h5><p><a  href='" + suit.Url + "' target='_blank' >Requisitos del tr&#225;mite </a></p></div><div class='col-md-12'></div></div></div></div>";                           
1379              
1380             numAcordeon++; 
1381             } 
1382
1383        }  
1384 //inu++; 
1385 } 
1386 onhtml+= "<h3>Cantidad de Tr&#225;mites online " + online +" </h3>" 
1387 //console.log(ObtenerDependencia()); 
1388 $("#DivTramites").html(onhtml + strhtml); 
1389 } 
1390
1391// DIRECTORIO TRAMITES PAGO 
1392function LoadTramitesPago() 
1393{ 
1394$.ajax({ 
1395        url: location.protocol + "//" + location.host + "/Ciudadanos/_api/web/lists/getbytitle('TramitesyServicios')/items?$select=ID,Title,Dependencia,Recaudo,Tr_x00e1_mite_x0020_Online,Categor_x00ed_a_x0020_SUIT,Recaudo,Descripcion&$orderby=Tr_x00e1_mite_x0020_Online%20desc", 
1396        method: "GET", 
1397        headers: { "Accept": "application/json; odata=verbose" }, 
1398        success: onSuccessLoadTramitesPago, 
1399        error: onError 
1400    }); 
1401} 
1402 
1403 
1404function onSuccessLoadTramitesPago(data)  
1405{ 
1406var resultados = data.d.results; 
1407var strhtml = "";	 
1408var onhtml = "";	 
1409var online = 0; 
1410var numAcordeon = 0; 
1411
1412for(var i=0; i< resultados.length; i++) 
1413{ 
1414var strdes = " "; 
1415if(resultados[i].Descripcion != null) 
1416{ 
1417strdes = resultados[i].Descripcion; 
1418} 
1419var suit  = resultados[i].Categor_x00ed_a_x0020_SUIT; 
1420var enlace  = resultados[i].Tr_x00e1_mite_x0020_Online; 
1421var pago  = resultados[i].Recaudo; 
1422 
1423if(pago == "Si"){ 
1424          if(suit != null && enlace != null){ 
1425strhtml+= "<div class='col-md-4 '><div class='panel panel-primary accordion'> <div class='panel-heading'> <h5 class='panel-title'><a class='tooltip-on' title='ir al trámite'  href='" + enlace.Url + "' >" + resultados[i].Title+ "<i class='fa fa-arrow-circle-right' ></i></a></h5> </div><div class='panel-body panel-collapse collapse'  id='collapse"+numAcordeon+"'><div class='col-md-12'><h5>Descripci&#243;n</h5> <div ><p>" + strdes + "</p></div></div><div class='col-md-12'><h5>Requiere pago</h5><p>" + resultados[i].Recaudo+ "</p></div><div class='col-md-12'><h5>Dependencia</h5><p>" + resultados[i].Dependencia+ "</p></div><div class='col-md-12'><h5>Categor&#237;a No M&#225;s Filas</h5><p><a  href='" + suit.Url + "' target='_blank'>Requisitos del tr&#225;mite </a></p></div><div class='col-md-12'><a class='btn btn-success pago' href='" + enlace.Url + "' >Inicie su tr&#225;mite <i class='fa fa-arrow-circle-right' ></i></a> </div></div><div class='footTram'><a class='collapsed collapsed-icon' data-toggle='collapse' href='#collapse"+numAcordeon+"'>Ver Informaci&#243;n</a></div></div></div>";                         
1426    online++; 
1427    numAcordeon++; 
1428    }            
1429else if(enlace != null && suit == null){ 
1430strhtml+= "<div class='col-md-4 '><div class='panel panel-primary accordion'> <div class='panel-heading'> <h5 class='panel-title'><a class='tooltip-on' title='ir al trámite'  href='" + enlace.Url + "' >" + resultados[i].Title+ "<i class='fa fa-arrow-circle-right' ></i></a></h5> </div><div class='panel-body panel-collapse collapse'  id='collapse"+numAcordeon+"'><div class='col-md-12'><div class='description'><div class='description-content'><h5>Descripci&#243;n</h5><p>" + strdes + "</p></div></div></div><div class='col-md-12'><h5>Requiere pago</h5><p>" + resultados[i].Recaudo+ "</p></div><div class='col-md-12'><h5>Dependencia</h5><p>" + resultados[i].Dependencia+ "</p></div><div class='col-md-12'></div><div class='col-md-12'><a class='btn btn-success pago' href='" + enlace.Url + "' >Inicie su tr&#225;mite <i class='fa fa-arrow-circle-right' ></i></a> </div></div><div class='footTram'><a class='collapsed collapsed-icon' data-toggle='collapse' href='#collapse"+numAcordeon+"'>Ver Informaci&#243;n</a></div></div></div>";                         
1431            online++; 
1432            numAcordeon++; 
1433            } 
1434        else if(suit != null && enlace == null){ 
1435strhtml+= "<div class='col-md-4 '><div class='panel panel-primary accordion'> <div class='panel-heading'> <h5 class='panel-title'>" + resultados[i].Title+ "</h5> </div><div class='panel-body panel-collapse collapse'  id='collapse"+numAcordeon+"'><div class='col-md-12'><h5>Descripci&#243;n </h5><div ><p>" + strdes + "</p></div></div><div class='col-md-12'><h5>Requiere pago</h5><p>" + resultados[i].Recaudo+ "</p></div><div class='col-md-12'><h5>Dependencia</h5><p>" + resultados[i].Dependencia+ "</p></div><div class='col-md-12'><h5>Categor&#237;a No M&#225;s Filas</h5><p><a  href='" + suit.Url + "' target='_blank'>Requisitos del tr&#225;mite </a></p></div><div class='col-md-12'></div></div><div class='footTram'><a class='collapsed collapsed-icon' data-toggle='collapse' href='#collapse"+numAcordeon+"'>Ver Informaci&#243;n</a></div></div></div>";                         
1436            numAcordeon++; 
1437            } 
1438 
1439     } 
1440} 
1441onhtml+= "<h3>Cantidad de Tr&#225;mites online " + online +" </h3>" 
1442//console.log(strhtml); 
1443$("#DivTramites").html(onhtml+strhtml); 
1444
1445} 

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.