/*Desavilita el boton derecho del ratón JQUERY*/
$(document).ready(function(){
    $(document).bind("contextmenu",function(e){
        return false;
    });
});
/*Pop up Fancybox*/
$(document).ready(function() {
	$("a.popup_txt").fancybox({
		'hideOnContentClick': false,
		'autoDimensions'	: false,
		'width'				: '55%',
		'height'			: '75%',
		'padding'			: 10,
		'transitionIn'		:	'elastic',
		'transitionOut'		:	'elastic',
		'speedIn'			:	600, 
		'speedOut'			:	200, 
		'overlayShow'		:	true
	});
	$("a.fotos").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
});

/*LOADING*/
function  efecto(){
  $('#loadText').hide();
  $('#contenedor').fadeIn(500);
}
/* METODO EACH2 */
(function($) {
  var $this = $([1]);
 
  $.fn.each2 = function( fn ) {
    var i = -1;
 
    while (
      ( $this.context = $this[0] = this[++i] )
      && fn.call( $this[0], i, $this ) !== false
    ) {}
    return this;
  };
})(jQuery);
<!-- Script en jquery que hace deslizar el menu con el scroll derecha e izquierda-->
$(function() {
    var offset = $("#galeria_izq").offset();
    var topPadding = 0;
    $(window).scroll(function() {
         if ($("#galeria_izq").height() < ($(window).height() - 250) && $(window).scrollTop() > offset.top) {
            $("#galeria_izq").stop().animate({marginTop: $(window).scrollTop() - offset.top + topPadding});
        } else { $("#galeria_izq").stop().animate({marginTop: 0});};
		
    });

});
$(function() {
    var offset = $("#galeria_der").offset();
    var topPadding = 0;
    $(window).scroll(function() {
         if ($("#galeria_der").height() < ($(window).height() - 250) && $(window).scrollTop() > offset.top) {
            $("#galeria_der").stop().animate({marginTop: $(window).scrollTop() - offset.top + topPadding});
        } else { $("#galeria_der").stop().animate({marginTop: 0});};
    });
});


//ANTERIOR//
/*function eliminar() {
	confirm('¿Deseas BORRAR los registros seleccionados?');
}*/
function mostrarOcultar(id,no){
    var obj = document.getElementById(id).getElementsByTagName("div"), n = "none", i;
    for( i=0; i < obj.length; i++){
  		if(obj[i].className != no){
        var dis = obj[i].style;
        dis.display = "none";
		dis.visibility = "hidden"
        }
    }
}
function Abrir(id) {
	document.getElementById(id).style.visibility = "visible";
	document.getElementById(id).style.display = "block";
}
function Cerrar(id) {
	document.getElementById(id).style.visibility = "hidden";
	document.getElementById(id).style.display = "none";
}
function Abrir_mouse(id) {
	document.getElementById(id).style.visibility = "visible";
	document.getElementById(id).style.display = "block";
	document.getElementById(id).style.left = ejeX;
	document.getElementById(id).style.top = ejeY;
}
function Abrir_mouse1(id) {
	document.getElementById(id).style.visibility = "visible";
	document.getElementById(id).style.display = "block";
	document.getElementById(id).style.left = ejeX-150;
	document.getElementById(id).style.top = ejeY;
}
function mouseMove(e) {
ejeX = (document.all)? event.x+document.body.scrollLeft : e.pageX
ejeY = (document.all)? event.y+document.body.scrollTop : e.pageY
}
function init() {
	if (!document.all) document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove = mouseMove;
}
function show5(){
	 if (!document.layers&&!document.all&&!document.getElementById)
	 return
	 var Digital=new Date()
	 var hours=Digital.getHours()
	 var minutes=Digital.getMinutes()
	 var seconds=Digital.getSeconds()
	 var dn="AM" 
	 if (hours>12){
	 dn="PM"
	 hours=hours
	 }
	 if (hours==0)
	 hours=24
	 if (minutes<=9)
	 minutes="0"+minutes
	 if (seconds<=9)
	 seconds="0"+seconds
	//change font size here to your desire
	myclock="<font size='2'>"+hours+":"+minutes+"</font>"
	if (document.layers){
	document.layers.liveclock.document.write(myclock)
	document.layers.liveclock.document.close()
	}
	else if (document.all)
	liveclock.innerHTML=myclock
	else if (document.getElementById)
	document.getElementById("liveclock").innerHTML=myclock
	setTimeout("show5()",1000)
}
//:"+seconds+" "+dn+"
//-->


