PageSourceSearch

https://www.cahockey.org.ar/js/public/main.js?v1.2

js cahockey.org.ar collected 2026-10-02 12:14:41 UTC 27,216 bytes, 1,035 lines download raw bytes

1jQuery(function(){
2     		
3			jQuery('ul.sf-menu').superfish();
4			
5		
6			$('#sliders-a').cycle({ 
7			    fx:      'scrollHorz', 
8			    next:   '.navagenda a#next', 
9				prev:   '.navagenda a#prev',
10				 speed:    200,  
11			    timeout:  0 
12			});
13		
14			
15		
16		
17			 
18			    $(".toggle-e").click(function() {
19		     
20		 
21		 
22		        //  Here we get the href value of the selected tab
23		        var selected_tab = $(this).find("a").attr("href");
24		 
25		        //  Show the selected tab content
26		        
27		 if($(selected_tab).is(':hidden') == true) {
28			 $(selected_tab).fadeIn();
29			 }else{
30		        //  Hide all tab content
31		        $(".contentEncuesta").hide();}
32		        //  At the end, we add return false so that the click on the link is not executed
33		        return false;
34		    });
35		
36		
37		//ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING)
38			$('.accordionButton').click(function() {
39		
40				//REMOVE THE ON CLASS FROM ALL BUTTONS
41				$('.accordionButton').removeClass('on');
42				  
43				//NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
44			 	$('.accordionContent').slideUp('normal');
45		   
46				//IF THE NEXT SLIDE WASN'T OPEN THEN OPEN IT
47				if($(this).next().is(':hidden') == true) {
48					
49					//ADD THE ON CLASS TO THE BUTTON
50					$(this).addClass('on');
51					  
52					//OPEN THE SLIDE
53					$(this).next().slideDown('normal');
54				 } 
55				  
56			 });
57			  
58			
59			/*** REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
60			
61			//ADDS THE .OVER CLASS FROM THE STYLESHEET ON MOUSEOVER 
62			$('.accordionButton').mouseover(function() {
63				$(this).addClass('over');
64				
65			//ON MOUSEOUT REMOVE THE OVER CLASS
66			}).mouseout(function() {
67				$(this).removeClass('over');										
68			});
69			
70			/*** END REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
71			
72			
73			/********************************************************************************************************************
74			CLOSES ALL S ON PAGE LOAD
75			********************************************************************************************************************/	
76			
77			   
78		
79		
80		
81		$('.slider').after('<div id="min"><ul id="CycNav">').cycle({ 
82		
83		    fx:     'fade', 
84		    speed:  '800', 
85		    /*timeout: '86400000', */
86		     timeout: '10000', 
87			/*prev: '#prev',
88		     next:'#next', */ 
89		    pager:  '#CycNav',
90			pause:   1,
91		    pauseOnPagerHover: true, 
92			startingSlide: 0, // zero-based 
93			pagerAnchorBuilder: function(id, slide) { 
94		
95				var s=$(slide);
96		
97				
98				var imgsource=s.find('img.CycIMG').attr('src');
99		        // Split off the filename with no extension (period + 3 letter extension)
100		
101		        //var new_src = imgsource.substring(0,imgsource.length-4);
102				var new_src = s.find('img.CycIMG').attr('data-thumb-href');
103		  		 //var new_src = imgsource. replace("/g_", "/c_");
104			  
105		        
106				//new_src += imgsource;
107				
108		        // Add the "-t"
109		
110		      //  new_src += "_min";
111		
112		        // Add the period and the 3 letter extension back on
113		
114		       // new_src += imgsource.substring(imgsource.length-4,imgsource.length);
115		        
116		        // Set this as the source for our image
117		
118		       return '<li><a href="#"><img src="' + new_src + '" height="47"  /></a></li>'
119		
120		}
121		});
122		
123		
124			
125			/////////////////////////////////////////////
126			   $("#tabVideos li.tabbVideo").click(function() {
127		        //  First remove class "active" from currently active tab
128		        $("#tabVideos li.tabbVideo").removeClass('active');
129		 
130		        //  Now add class "active" to the selected/clicked tab
131		        $(this).addClass("active");
132		        
133		        ///cambio a reproduciendo
134		        $("#tabVideos li.tabbVideo span.s-link").html('VER VIDEO &gt;');
135		        $(this).find("span.s-link").html('REPRODUCIENDO VIDEO &gt;');
136		        
137		 
138		        //  Hide all tab content
139		        //$(".tab_content_video").hide();
140		 
141		        //  Here we get the href value of the selected tab
142		        var selected_tab = $(this).find("a").attr("href");
143		 
144		        //  Show the selected tab content
145		        var link = $(selected_tab).attr("data-link");
146		        $(".tab_content_video").html('<iframe width="100%"  src="'+link+'?rel=0&showinfo=1&autoplay=1" frameborder="0" allowfullscreen></iframe>');
147		       // $(selected_tab).fadeIn('fast');
148		 
149		        //  At the end, we add return false so that the click on the link is not executed
150		        return false;
151		    }); 
152			
153			
154		   /////////////////////////////////////////////
155			   $("#Videos li.tabbVideo").click(function() {
156		        //  First remove class "active" from currently active tab
157		        $("#Videos li.tabbVideo").removeClass('active');
158		 
159		        //  Now add class "active" to the selected/clicked tab
160		        $(this).addClass("active");
161		 
162		        //  Hide all tab content
163		        $(".tab_content_video").hide();
164		 
165		        //  Here we get the href value of the selected tab
166		        var selected_tab = $(this).find("a").attr("href");
167		 
168		        //  Show the selected tab content
169		        $(selected_tab).fadeIn();
170		 
171		        //  At the end, we add return false so that the click on the link is not executed
172		        return false;
173		    }); 
174		    
175		    /////////////////////////////////////////////   
176		    	/* calling thumbnailScroller function with options as parameters */
177				(function($){
178				window.onload=function(){ 
179					
180					$("#tS2").thumbnailScroller({ 
181						scrollerType:"clickButtons", 
182						scrollerOrientation:"horizontal", 
183						scrollSpeed:2, 
184						scrollEasing:"easeOutCirc", 
185						scrollEasingAmount:600, 
186						acceleration:4, 
187						scrollSpeed:800, 
188						noScrollCenterSpace:10, 
189						autoScrolling:0, 
190						autoScrollingSpeed:2000, 
191						autoScrollingEasing:"easeInOutQuad", 
192						autoScrollingDelay:500 
193					});
194				
195				}
196				})(jQuery);
197		    
198		    
199			
200				$('.mainsliderNews').cycle({ 
201		    fx:      'scrollHorz', 
202		    next:   '.navnews a#next', 
203			prev:   '.navnews a#prev',
204			 speed:    400,  
205		    timeout:  0 
206		});
207			
208		$('.mainsliderNews2').cycle({ 
209		    fx:      'scrollHorz', 
210		    next:   '.navnews2 a#next', 
211			prev:   '.navnews2 a#prev',
212			 speed:    200,  
213		    timeout:  0 
214		});
215			/*$('.slideJugadores').cycle({ 
216			pauseOnPagerHover: true,
217			fx:      'fade', 
218		    next:   '.navJugadores a#next2', 
219			prev:   '.navJugadores a#prev2',
220			speed:    500,  
221		    timeout:  9000 
222			});*/
223			
224			
225			/*$('.navGaleria').cycle({ 
226		    fx:      'fade', 
227		    next:   '.navGalNota a#next', 
228			prev:   '.navGalNota a#prev'
229		});*/
230			
231			
232			$('.galeriaNotaSlider').cycle({ 
233		    fx:      'fade', 
234		    next:   '.navGalNota a#next', 
235			prev:   '.navGalNota a#prev'
236		});
237		
238		/*	$('.cycom').cycle({ 
239		    fx:      'scrollVert',
240		    speed:    200,  
241		    timeout:  3000  
242		  
243			});*/
244		
245		
246		
247		
248		$('#CycNav').cycle({ 
249		    fx:      'scrollHorz', 
250		    pauseOnPagerHover: true,
251		    timeout: '10000', 
252		   /*timeout: '86400000',*/
253		    activePagerClass: 'txt_tablero',
254		    next:   '.navGaleria a#next', 
255			prev:   '.navGaleria a#prev'
256		});
257		
258		
259		
260		/////////////////////////////////////////////
261			//move the image in pixel
262					var move = 0;
263					
264					//zoom percentage, 1.2 =120%
265					var zoom = 1.00;
266				
267					//On mouse over those thumbnail
268					$('.zficha').hover(function() {
269						
270						//Set the width and height according to the zoom percentage
271						width = $('.zficha').width() * zoom;
272						height = $('.zficha').height() * zoom;
273						
274						//Move and zoom the image
275						$(this).find('.ficha').stop(false,true).animate({ 'margin-top':'-30px'}, {duration:200});
276						$(this).find('img').stop(false,true).animate({/*'width':width, 'height':height,*/ 'top':move, 'left':move}, {duration:200});
277						
278						//Display the caption
279						$(this).find('p.caption').stop(false,true).fadeIn(200);
280					},
281					function() {
282						$(this).find('.ficha').stop(false,true).animate({ 'margin-top':'0'}, {duration:200});
283						//Reset the image
284						$(this).find('img').stop(false,true).animate({/*'width':$('.zficha').width(), 'height':$('.zficha').height(),*/ 'top':'0', 'left':'0'}, {duration:100});	
285				
286						//Hide the caption
287						$(this).find('p.caption').stop(false,true).fadeOut(200);
288					});
289		
290		
291		/////////////////////////////////////////////
292			// jQuery nyroModal
293			$('.modal').nyroModal();	
294			
295		
296		/////////////////////////////////////////////
297			// Top scroll
298			$().UItoTop();
299		
300		
301		/////////////////////////////////////////////
302			   $("#solapa li.tabb").click(function() {
303		        //  First remove class "active" from currently active tab
304		        $("#solapa li.tabb").removeClass('active');
305		 
306		        //  Now add class "active" to the selected/clicked tab
307		        $(this).addClass("active");
308		 
309		        //  Hide all tab content
310		        $(".tab_content").hide();
311		 
312		        //  Here we get the href value of the selected tab
313		        var selected_tab = $(this).find("a").attr("href");
314		 
315		         
316		       
317		        
318		        //  Show the selected tab content
319		        $(selected_tab).fadeIn();
320		 		
321		        if(selected_tab=="#tab2"){
322		        	$('#tab2').fullCalendar('today');
323		         }
324		        
325		        
326		        //  At the end, we add return false so that the click on the link is not executed
327		        return false;
328		   		 }); 
329		
330		
331		//ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING)
332			$('.btn-acordeon-fecha').click(function() {
333		
334				//REMOVE THE ON CLASS FROM ALL BUTTONS
335				$('.btn-acordeon-fecha').removeClass('on');
336				  
337				//NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
338			 	$('.content-acordeon-fecha').slideUp('normal');
339		   
340				//IF THE NEXT SLIDE WASN'T OPEN THEN OPEN IT
341				if($(this).next().is(':hidden') == true) {
342					
343					//ADD THE ON CLASS TO THE BUTTON
344					$(this).addClass('on');
345					  
346					//OPEN THE SLIDE
347					$(this).next().slideDown('normal');
348				 } 
349				  
350			 });
351			  
352			
353			/*** REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
354			
355			//ADDS THE .OVER CLASS FROM THE STYLESHEET ON MOUSEOVER 
356			$('.btn-acordeon-fecha').mouseover(function() {
357				$(this).addClass('over');
358				
359			//ON MOUSEOUT REMOVE THE OVER CLASS
360			}).mouseout(function() {
361				$(this).removeClass('over');										
362			});
363			
364			
365			/*** END REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
366			
367			
368			
369			
370			
371			
372			
373			
374			
375			
376			
377			
378			//ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING)
379			$('.btn-acordeon-news').click(function() {
380		
381				//REMOVE THE ON CLASS FROM ALL BUTTONS
382				$('.btn-acordeon-news').removeClass('on');
383				  
384				//NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
385			 	$('.content-acordeon-news').slideUp('normal');
386		   
387				//IF THE NEXT SLIDE WASN'T OPEN THEN OPEN IT
388				if($(this).next().is(':hidden') == true) {
389					
390					//ADD THE ON CLASS TO THE BUTTON
391					$(this).addClass('on');
392					  
393					//OPEN THE SLIDE
394					$(this).next().slideDown('normal');
395				 } 
396				  
397			 });
398			  
399			
400			/*** REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
401			
402			//ADDS THE .OVER CLASS FROM THE STYLESHEET ON MOUSEOVER 
403			$('.btn-acordeon-news').mouseover(function() {
404				$(this).addClass('over');
405				
406			//ON MOUSEOUT REMOVE THE OVER CLASS
407			}).mouseout(function() {
408				$(this).removeClass('over');										
409			});
410			
411			
412			/*** END REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
413			$('.content-acordeon-news').hide();
414			$('.content-acordeon-news.active').show();
415			
416			
417			
418			
419			
420			
421			
422			
423			
424			
425			
426			
427			
428			
429			
430			
431			
432			
433			
434			
435			
436			
437			
438			
439			
440			/********************************************************************************************************************
441			CLOSES ALL S ON PAGE LOAD
442			********************************************************************************************************************/	
443			$('.content-acordeon-fecha').hide();
444			$('.content-acordeon-fecha:first').show();
445			
446			
447			
448			
449			
450			//ACCORDION BUTTON ACTION (ON CLICK DO THE FOLLOWING)
451			$('.btn-acordeon-mes').click(function() {
452		
453				//REMOVE THE ON CLASS FROM ALL BUTTONS
454				$('.btn-acordeon-mes').removeClass('on-m');
455				  
456				//NO MATTER WHAT WE CLOSE ALL OPEN SLIDES
457			 	$('.content-acordeon-mes').slideUp('normal');
458		   
459				//IF THE NEXT SLIDE WASN'T OPEN THEN OPEN IT
460				if($(this).next().is(':hidden') == true) {
461					
462					//ADD THE ON CLASS TO THE BUTTON
463					$(this).addClass('on-m');
464					  
465					//OPEN THE SLIDE
466					$(this).next().slideDown('normal');
467				 } 
468				  
469			 });
470			  
471			
472			/*** REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
473			
474			//ADDS THE .OVER CLASS FROM THE STYLESHEET ON MOUSEOVER 
475			$('.btn-acordeon-mes').mouseover(function() {
476				$(this).addClass('over-m');
477				
478			//ON MOUSEOUT REMOVE THE OVER CLASS
479			}).mouseout(function() {
480				$(this).removeClass('over-m');										
481			});
482			
483			
484			/*** END REMOVE IF MOUSEOVER IS NOT REQUIRED ***/
485			
486			
487			/********************************************************************************************************************
488			CLOSES ALL S ON PAGE LOAD
489			********************************************************************************************************************/	
490			$('.content-acordeon-mes').hide();
491			$('.content-acordeon-mes:first').show();
492			
493			
494			
495			
496			$('#iframe').show();
497			
498			 
499	
500		});
501		
502	
503function adjustStyle(width) {
504    width = parseInt(width);
505    if (width < 701) {
506        $('.fxhover').hover(
507		function(){
508			
509			$(this).find('.txt_noti').animate({top:"-80px"}, 300);			
510		}, 
511		function(){
512							
513			$(this).find('.txt_noti').animate({top:"0"}, 100);
514		}
515	 );
516    } else if ((width >= 701) && (width < 900)) {
517       $('.fxhover').hover(
518		function(){
519			
520			$(this).find('.txt_noti').animate({top:"-57px"}, 300);			/*57*/
521		}, 
522		function(){
523							
524			$(this).find('.txt_noti').animate({top:"0"}, 100);
525		}
526	 );
527    } else {
528      $('.fxhover').hover(
529		function(){
530			
531			$(this).find('.txt_noti').animate({top:"-96px"}, 300);			
532		}, 
533		function(){
534							
535			$(this).find('.txt_noti').animate({top:"0"}, 100);
536		}
537	 );
538    }
539}
540
541
542
543function adjustStyle2() {
544    
545	var width =   screen.width;
546	width = parseInt(width);
547	
548	
549	
550    if (width < 701) {
551        $('.fxhover_vid').hover(
552		function(){
553			
554			$(this).find('.txt_noti_vid').animate({top:"30px"}, 300);			
555		}, 
556		function(){
557							
558			$(this).find('.txt_noti_vid').animate({top:"0"}, 100);
559		}
560	 );
561    } else if ((width >= 701) && (width < 900)) {
562       $('.fxhover_vid').hover(
563		function(){
564			
565			$(this).find('.txt_noti_vid').animate({top:"20px"}, 300);			/*57*/
566		}, 
567		function(){
568							
569			$(this).find('.txt_noti_vid').animate({top:"0"}, 100);
570		}
571	 );
572    } else {
573      $('.fxhover_vid').hover(
574		function(){
575			
576			$(this).find('.txt_noti_vid').animate({top:"40px"}, 500);			
577		}, 
578		function(){
579							
580			$(this).find('.txt_noti_vid').animate({top:"0px"}, 90);
581		}
582	 );
583    }
584}
585
586$(function() {
587    adjustStyle($(this).width());
588    $(window).resize(function() {
589        adjustStyle($(this).width());
590    });
591	
592	
593	 $('#scrollbar1').tinyscrollbar({ sizethumb: 50 });	
594});
595
596$(function(){
597	
598	$('.circularBtn').click(function(){
599	// cahnge circular
600
601		   var id = $(this).attr('id');	 
602		   var dataString = 'id='+id;  
603			  
604			 $.ajax({  
605			   type: "POST",  
606			   url: base_url+'updateCircular',  
607			   data: dataString,  
608			   error: function(){ $('.content').html('Error al recuperar circular.'); $('.content').css({ opacity: 1 }); },
609			   beforeSend: function() { $('.content').css({ opacity: 0.5 });  },
610			   success: function(resp) {  
611			   	if(resp!=""){
612			   		 $('.content').html(resp);
613			   		 $('.content').css({ opacity: 1 });
614			   	}
615			   }  
616			 });  
617			 return false;  
618			 
619		});	
620		
621		
622		$('.votar').click(function(){
623	//votar encuesta
624
625		   var data = $('#formEnc').serialize();	 
626		   var dataString = data;  
627			  
628			 $.ajax({  
629			   type: "POST",  
630			   url: base_url+'votarEncuesta',  
631			   data: dataString,  
632			   error: function(){ $('#result_enc').html('Por el momento no podemos registrar su voto, intentelo en unos minutos.'); $('#encuesta').css({ opacity: 1 }); },
633			   beforeSend: function() { $('#encuesta').css({ opacity: 0.5 });  },
634			   success: function(resp) {  
635			   	if(resp!=""){
636			   		 $('#result_enc').html(resp);
637			   		 $('#encuesta').css({ opacity: 1 });
638			   	}
639			   }  
640			 });  
641			 return false;  
642		});	
643		
644		
645	
646		
647		
648		
649		
650	/*$('.ampliar_evento').click(function(){
651	// cahnge circular
652	
653	 	   var id = $(this).attr('id');	 
654		   var dataString = 'id='+id;  
655			  
656			 $.ajax({  
657			   type: "POST",  
658			   url: base_url+'updateEventoAgenda',  
659			   data: dataString,  
660			   error: function(){ $('.contenido').html('Error al recuperar evento agenda.'); $('.contenido').css({ opacity: 1 }); },
661			   beforeSend: function() { $('.contenido').css({ opacity: 0.5 });  },
662			   success: function(resp) {  
663			   	if(resp!=""){
664			   		 $('.contenido').html(resp);
665			   		 $('.contenido').css({ opacity: 1 });
666			   		 
667			   		
668							   		 
669			   	}
670			   }  
671			 });  
672			 return false;  
673		});	*/
674		
675		$('.ampliar_torneo').click(function(){
676	// cahnge torneo
677	
678	 	   var id = $(this).attr('id');	 
679		   var dataString = 'id='+id;  
680			  
681			 $.ajax({  
682			   type: "POST",  
683			   url: base_url+'updateTorneo',  
684			   data: dataString,  
685			   error: function(){ $('.contenido').html('Error al recuperar torneo.'); $('.contenido').css({ opacity: 1 }); },
686			   beforeSend: function() { $('.contenido').css({ opacity: 0.5 });  },
687			   success: function(resp) {  
688			   	if(resp!=""){
689			   		 $('.contenido').html(resp);
690			   		 $('.contenido').css({ opacity: 1 });
691			   	}
692			   }  
693			 });  
694			 return false;  
695		});		
696		
697		
698		
699	
700	$('.seemore').click(function(){
701	// cahnge circular
702	
703	 	   var from = $(this).parent().attr('id');	 
704	 	   var mes = $(this).parent().attr('mes');
705	 	   var ano = $(this).parent().attr('ano');
706		   var dataString = 'from='+from+'&mes='+mes+'&ano='+ano;  
707			  
708			 $.ajax({  
709			   type: "POST",  
710			   url: base_url+'getMoreCirculares',  
711			   data: dataString,  
712			   error: function(){ $('.content_seemore').html('No se pudo recuperar');},
713			   beforeSend: function() { $('.content_seemore').html('recuperando')  },
714			   success: function(resp) {  
715			   	if(resp!=""){
716			   		 $('.content_seemore').slideDown('slow').html(resp);
717			   		 $('.circularBtn2').click(function(){
718						// cahnge circular
719
720					   var id = $(this).attr('id');	 
721					   var dataString = 'id='+id;  
722						  
723						 $.ajax({  
724						   type: "POST",  
725						   url: base_url+'updateCircular',  
726						   data: dataString,  
727						   error: function(){ $('.content').html('Error al recuperar circular.'); $('.content').css({ opacity: 1 }); },
728						   beforeSend: function() { $('.content').css({ opacity: 0.5 });  },
729						   success: function(resp) {  
730						   	if(resp!=""){
731						   		 $('.content').html(resp);
732						   		 $('.content').css({ opacity: 1 });
733						   	}
734						   }  
735						 });  
736						 return false;  
737					});	
738			   	}
739			   }  
740			 });  
741			 return false;  
742		});		
743
744		$('.contenidoBtn').click(function(){
745		// cahnge circular
746
747		   var id = $(this).attr('id');	 
748		   var dataString = 'id='+id;  
749			  
750			 $.ajax({  
751			   type: "POST",  
752			   url: base_url+'updateContenidoInstitucional',  
753			   data: dataString,  
754			   error: function(){ $('.content').html('Error al recuperar contenido.'); $('#content').css({ opacity: 1 }); },
755			   beforeSend: function() { $('#content').css({ opacity: 0.5 });  },
756			   success: function(resp) {  
757			   	if(resp!=""){
758			   		 $('#content').html(resp);
759			   		 $('.botonBV').removeClass('active');
760			   		 $('#li'+id).toggleClass('active');
761			   		 $('#content').css({ opacity: 1 });
762			   		 $('.galeriaNotaSlider').cycle({ 
763					    fx:      'fade', 
764					    next:   '.navGalNota a#next', 
765						prev:   '.navGalNota a#prev'
766					});
767			   	}
768			   }  
769			 });  
770			 return false;  
771		});	
772		
773		
774		$('.contenidoReglamento').click(function(){
775		// cahnge circular
776
777		   var id = $(this).attr('id');	 
778		   var dataString = 'id='+id;  
779			  
780			 $.ajax({  
781			   type: "POST",  
782			   url: base_url+'updateContenidoReglamento',  
783			   data: dataString,  
784			   error: function(){ $('.content').html('Error al recuperar contenido.'); $('#content').css({ opacity: 1 }); },
785			   beforeSend: function() { $('#content').css({ opacity: 0.5 });  },
786			   success: function(resp) {  
787			   	if(resp!=""){
788			   		 $('#content').html(resp);
789			   		 $('.botonBV').removeClass('active');
790			   		 $('#li'+id).toggleClass('active');
791			   		 $('#content').css({ opacity: 1 });
792			   		
793			   	}
794			   }  
795			 });  
796			 return false;  
797		});	
798		
799		
800		$('.torneoBtn').click(function(){
801		// cahnge circular
802
803		   var id = $(this).attr('id');	 
804		   var dataString = 'id='+id;  
805			  
806			 $.ajax({  
807			   type: "POST",  
808			   url: base_url+'updateTorneoContent',  
809			   data: dataString,  
810			   error: function(){ $('.contenido').html('Error al recuperar torneo.'); $('.contenido').css({ opacity: 1 }); },
811			   beforeSend: function() { $('.contenido').css({ opacity: 0.5 });  },
812			   success: function(resp) {  
813			   	if(resp!=""){
814			   		 $('.contenido').html(resp);
815			   		 $('.contenido').css({ opacity: 1 });
816			   		 $('.torneoBtn').parent().removeClass('active');
817			   		 $('#li_'+id).addClass('active');
818			   		 
819			   		  $("#solapa li.tabb").click(function() {
820				        //  First remove class "active" from currently active tab
821				        $("#solapa li.tabb").removeClass('active');
822				 
823				        //  Now add class "active" to the selected/clicked tab
824				        $(this).addClass("active");
825				 
826				        //  Hide all tab content
827				        $(".tab_content").hide();
828				 
829				        //  Here we get the href value of the selected tab
830				        var selected_tab = $(this).find("a").attr("href");
831				        
832				         //  Show the selected tab content
833				        $(selected_tab).fadeIn();
834				 		
835				        if(selected_tab=="#tab2"){
836				        	$('#tab2').fullCalendar('today');
837				         }
838				        
839				        
840				        //  At the end, we add return false so that the click on the link is not executed
841				        return false;
842				        
843				        
844			   		  });
845			   	}
846			   }  
847			 });  
848			 return false;  
849		});	
850		
851		
852		
853		
854		
855		 
856		 $( ".icon-picture" ).click(function() {
857		 	 Lightbox.start($('#first'));
858		 	 return false;
859		});
860		 
861		
862		
863		
864});
865function next(a){
866	// cahnge jugador
867
868		   var id = a.attr('next_id');	 
869		   var dataString = 'id='+id;  
870			  
871			 $.ajax({  
872			   type: "POST",  
873			   url: base_url+'updateFichaJugador',  
874			   data: dataString,  
875			   error: function(){ $('#main').html('Error al recuperar jugador.'); $('#main').css({ opacity: 1 }); },
876			   beforeSend: function() { $('#main').css({ opacity: 0.5 });  },
877			   success: function(resp) {  
878			   	if(resp!=""){
879			   		 $('#main').html(resp);
880			   		 $('#main').css({ opacity: 1 });
881			   		 $('.mainsliderNews').cycle({ 
882						    fx:      'scrollHorz', 
883						    next:   '.navnews a#next', 
884							prev:   '.navnews a#prev',
885							 speed:    200,  
886						    timeout:  0 
887						});
888						window.Lightbox = new jQuery().visualLightbox(
889						{autoPlay:true,
890						borderSize:39,
891						classNames:'vlightbox1',
892						descSliding:true,
893						enableRightClick:false,
894						enableSlideshow:true,
895						prefix:'vlb1',
896						resizeSpeed:7,
897						slideTime:4,
898						startZoom:true});
899					$('.modal').nyroModal();
900					
901					 $('#scrollbar1').tinyscrollbar({ sizethumb: 50 });	
902					 
903					   /////////////////////////////////////////////
904					   $("#Videos li.tabbVideo").click(function() {
905				        //  First remove class "active" from currently active tab
906				        $("#Videos li.tabbVideo").removeClass('active');
907				 
908				        //  Now add class "active" to the selected/clicked tab
909				        $(this).addClass("active");
910				 
911				        //  Hide all tab content
912				        $(".tab_content_video").hide();
913				 
914				        //  Here we get the href value of the selected tab
915				        var selected_tab = $(this).find("a").attr("href");
916				 
917				        //  Show the selected tab content
918				        $(selected_tab).fadeIn();
919				 
920				        //  At the end, we add return false so that the click on the link is not executed
921				        return false;
922				    }); 
923					 
924			   	}
925			   }  
926			 });  
927			 return false;  
928		}	
929
930		
931		
932	function prev(a){
933	// cahnge jugador
934
935		   var id = a.attr('prev_id');	 
936		   var dataString = 'id='+id;  
937			  
938			 $.ajax({  
939			   type: "POST",  
940			   url: base_url+'updateFichaJugador',  
941			   data: dataString,  
942			   error: function(){ $('#main').html('Error al recuperar jugador.'); $('#main').css({ opacity: 1 }); },
943			   beforeSend: function() { $('#main').css({ opacity: 0.5 });  },
944			   success: function(resp) {  
945			   	if(resp!=""){
946			   		 $('#main').html(resp);
947			   		 $('#main').css({ opacity: 1 });
948			   		 $('.mainsliderNews').cycle({ 
949						    fx:      'scrollHorz', 
950						    next:   '.navnews a#next', 
951							prev:   '.navnews a#prev',
952							 speed:    200,  
953						    timeout:  0 
954						});
955					window.Lightbox = new jQuery().visualLightbox(
956						{autoPlay:true,
957						borderSize:39,
958						classNames:'vlightbox1',
959						descSliding:true,
960						enableRightClick:false,
961						enableSlideshow:true,
962						prefix:'vlb1',
963						resizeSpeed:7,
964						slideTime:4,
965						startZoom:true}); 
966					$('.modal').nyroModal();
967					window.onload=function(){ 
968					 $('#scrollbar1').tinyscrollbar({ sizethumb: 50 });	
969					 
970				}
971	
972				  /////////////////////////////////////////////
973					   $("#Videos li.tabbVideo").click(function() {
974				        //  First remove class "active" from currently active tab
975				        $("#Videos li.tabbVideo").removeClass('active');
976				 
977				        //  Now add class "active" to the selected/clicked tab
978				        $(this).addClass("active");
979				 
980				        //  Hide all tab content
981				        $(".tab_content_video").hide();
982				 
983				        //  Here we get the href value of the selected tab
984				        var selected_tab = $(this).find("a").attr("href");
985				 
986				        //  Show the selected tab content
987				        $(selected_tab).fadeIn();
988				 
989				        //  At the end, we add return false so that the click on the link is not executed
990				        return false;
991				    });
992				
993				
994			   	}
995			   }  
996			 });  
997			 return false;  
998		}		
999		
1000		function updateTant() {
1001				  
1002					var tanteador_1 = $('#geq_1').html();
1003					var tanteador_2 = $('#geq_2').html();
1004					
1005					$.ajax({
1006						  url: 'updateTanteador',
1007						  type: 'post',
1008						  dataType: 'json',
1009						  success: function(data) { 
1010						  		if(data!=null){
1011						  			 if(data.eq_1!=""){
1012							
1013							  			 $("#geq_1").html(data.eq_1);
1014						  			 }
1015									 if(data.eq_2!=""){
1016							
1017							  			 $("#geq_2").html(data.eq_2);
1018						  			 }
1019						  			 
1020						  		str = decodeURIComponent(data.comments);		 
1021						  		$(".cycom").html(str.replace(/\+/g,' '));	 
1022						  		
1023						  		$('.cycom').cycle({ 
1024								    fx:      'scrollVert',
1025								    speed:    200,  
1026								    timeout:  10000  
1027								   });
1028						  		
1029						  		}
1030						  	}
1031						  
1032						});
1033			}
1034		
1035	

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.