

// JavaScript Document

$(document).ready(function () {

//sustitucion de fuentes
$.pir.options.php="js/pir.php"; 
$("#logo h1").pir({font: "kvk-bld-ita.otf"});

//imagen de fondo redimensionable
$("#bgmaximage").maxImage({
	isBackground: true,
	overflow: 'auto',
	zIndex: -10
});

/*
//switch capa texto
$("#switch_txtlayer").toggle(
	function() { 
		$("#header_int").fadeOut(200);
		$("#content").fadeOut(200);
		$("#overlay").fadeOut(200);
		$(this).html("Show content"); 
	},
	function() { 
		$("#header_int").fadeIn(300);
		$("#content").fadeIn(300);
		$("#overlay").fadeIn(300);
		$(this).html("Hide content"); 
	}
);

//switch capa imagen
$("#switch_bg").toggle(
	function() { 
		$("#bgcontent").fadeOut(200);
		$(this).html("Show background"); 
	},
	function() { 
		$("#bgcontent").fadeIn(300); 
		$(this).html("Hide background"); 
	}
);
*/

/*
$("#center").mouseleave(function(){ 
	$(this).addClass('semi_trans', 300);

});
$("#center").mouseenter(function(){ 
	$(this).removeClass('semi_trans', 300);

});
*/

//tabs
/*
	$(".node_tab_content").hide();
	$("ul.node_tabs li:first").addClass("active").show(); 
	$(".node_tab_content:first").show(); 

	$("ul.node_tabs li").click(function() {
		$("ul.node_tabs li").removeClass("active"); 
		$(this).addClass("active"); 
		$(".node_tab_content").hide(); 

		var activeTab = $(this).find("a").attr("href"); 
		$(activeTab).fadeIn(); 
		return false;
	});
*/

//accordions
/*
	$('.accButt').click(function() {
	$('.accButt').removeClass('acc_on');
	$('.accCont').slideUp('300');
  	if($(this).next().is(':hidden') == true) {
		$(this).addClass('acc_on');
		$(this).next().slideDown('500');
		}   
	});
	  
	$('.accButt').mouseover(function() {
		$(this).addClass('acc_over');
	}).mouseout(function() {
		$(this).removeClass('acc_over');					
	});
	
	$('.accCont').hide();
*/

}); //docready
