if ( $.browser.msie && parseFloat( navigator.appVersion.split("MSIE")[1] ) < 7 ){

	var ie6 = true;

}
/*if(ie6){
	$(document).ready(function(){
		alert("Estás usando Microsoft Internet Explorer, versión 6 o inferior. Si bien el sitio funcionará, la parte visual no se verá correctamente.");
	});
}*/


//////////////////////////////////////////////////////////////////////////////////////curvycorners

/*if ( $.browser.msie && parseFloat( navigator.appVersion.split("MSIE")[1] ) < 7 ){

	var ie6 = true;

}
if ( $.browser.safari){

	var safari = true;

}

if ( !ie6 && !safari ){

	$(document).ready(function(){
		$("ul#nav li").css({ padding: "6px" });
		$("ul#nav li a, ul#nav li span").addClass("curveThis");

		var settings = {
		tl: { radius: 4 },
		tr: { radius: 4 },
		bl: { radius: 4 },
		br: { radius: 4 },
		antiAlias: true,
		autoPad: true,
		validTags: ["div, li, a, span, h1, h2"]
		}
		$(".curveThis").curvy(settings);

	});

}*/

/*$(document).ready(function(){
	var settings = {
	tl: { radius: 10 },
	tr: { radius: 10 },
	bl: { radius: 1 },
	br: { radius: 1 },
	antiAlias: true,
	autoPad: true,
	validTags: ["div, li, a, span"]
	}
	$("#nav li span").curvy(settings);
});*/

///////////////////////////////////////////////innerFade

$(document).ready(
		function(){

			$("#headNOslide").hide();
			$("#headslide").show();


			/*$('#headslide').innerfade({
				animationtype: 'slide',
				speed: 750,
				timeout: 2000,
				type: 'random',
				containerheight: '1em'
			});*/

			$('#headslide').innerfade({
				animationtype: 'fade',
				speed: 'slow',
				timeout: 4000,
				type: 'sequence',
				containerheight: '300px'
			});

			/*$('.fade').innerfade({
				speed: 'slow',
				timeout: 1000,
				type: 'sequence',
				containerheight: '1.5em'
			});*/
		}
	);

////////////////////////////////////////////////////////nyroModal

$(function() {
	function preloadImg(image) {
		var img = new Image();
		img.src = image;
	}
	preloadImg('/fetch/js/nyromodal/ajaxLoader.gif');
	preloadImg('/fetch/js/nyromodal/close.gif');
	preloadImg('/fetch/js/nyromodal/next.gif');
	preloadImg('/fetch/js/nyromodal/prev.gif');
	}
);

$(document).ready(
	function(){

		var galleryItem_a = $(".gallery .galleryItem a");

		galleryItem_a.removeAttr("onclick");

		$(galleryItem_a).each(function(i){
  			this.href = this.rel;
  			this.rel = "gal";
		});

		galleryItem_a.nyroModal();

	}
);