$(document).ready(function(){	   
	
	/* 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 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 iniciar jrMiniGaleria ---------------------------------------------------------*/
	$("#minigaleria_1 , #minigaleria_2 , #minigaleria_3").jrMiniGaleria({
		autoMovimiento : true,
        retardoEntreFotos : 8000
	});
});
