

$(document).ready(function(){
						   
						   
					/* para iniciar jrMiniGaleria ---------------------------------------------------------*/
					$("#galeria_imaxes").jrMiniGaleria({
						autoMovimiento : true,
						retardoEntreFotos : 8000
					});
									
					/* para iniciar jrMiniGaleria ---------------------------------------------------------*/
					$("#videoBar-bar").jrMiniGaleria({
						autoMovimiento : true,
						retardoEntreFotos : 8000
					});


					/* para iniciar colorBox ------------------------------------------------------------ */
					$("a[rel='colorbox_1'] , a[rel='colorbox_2'] , a[rel='colorbox_3']").colorbox({
						transition:"true",
						maxWidth:900,
						maxHeight:( $("body").height() - 20 ),
						opacity:0.50,
						current: "foto: {current} / {total}"
					});
						
	
			/* para que la barra de scroll siempre sume ancho ------------------------------------- */
			$("html").css({"overflow-y":"scroll","overflow-x":"auto" });
			
			/* aņade target="_black" a enlaces con class="targetBlanck" --------------------------- */
			$("a.js_targetBlank").each(function(){
				var js_targetBlank = $(this);
				var HREF = js_targetBlank.attr("href");
				js_targetBlank.bind("click", function(e){
					window.open(HREF);
					return false;
				});
				js_targetBlank.bind("keypress", function(e){
					if( e.which == 13 ){
						window.open(HREF);
					}
					return false;
				});
			});
			
			/* quita el borde que crea firefox en el onFocus --------------- */
			$("a").css({ "outline":"none"});
			
			
			/* para colorear las filas de las tablas ---------------------------------------------
			$("table.js_tblComun").each(function(){
				$(this).find("tbody tr:even").each(function(){
					$(this).addClass("js_colorAlterno");
				});
				$(this).find("tbody tr").hover(function(){
					$(this).addClass("js_colorHover");				   
				},
				function(){
					$(this).removeClass("js_colorHover");	
				});
			 });
			 */

			
			

});



