
$(document).ready(function(){

$(".button").hover(
	function(){ $(this).addClass("button-hover"); },
	function(){ $(this).removeClass("button-hover"); }
);

if(vie61){
	function IE6Correct1(){
		var vDiff1=parseInt($(this.parentNode).css("border-width"));
		if(this.className.indexOf("bottom")!=-1){
			this.style.bottom="auto";
			this.style.top=this.parentNode.offsetHeight-this.offsetHeight-vDiff1+"px";
		}
		if(this.className.indexOf("right")!=-1){
			this.style.right="auto";
			this.style.left=this.parentNode.offsetWidth-this.offsetWidth-vDiff1+"px";
		}
	}
	$(".edge").each(function(){
		this.IE6Correct1=IE6Correct1;
		this.IE6Correct1();
	});
	$(".footer-container ul a:first").css({background:"none"});
}

if($("#ennav")[0]) setGallery1({startIndex:0,isAnimated:true,targetID:"timage",containerID:"ennav",descriptionID:"photo-desc",loaderID:"ajax-loader1",hasTimer1:true,rememberHistory1:true});

if($("#mainmenu")[0]) setMenu("mainmenu");

if($("#comments")[0]) $("#comments li:last").addClass("last");

if($("#ennav")[0]&&$("#ennav")[0].className.indexOf("gallery-links2")==-1&&navigator.appVersion.indexOf("MSIE 8")!=-1){
	$(".gallery-thumb a").each(function(){
		$(this).append("<img src='estilo/imagenes/selectedop.png' class='gtsie8f' />");
	});
}

});

