// <![CDATA[
	// opacity
	function opacity(element, value) {
		var value_noie = value / 100;
		$(element).css('filter', 'alpha(opacity=' + value + ')');
		$(element).css('-moz-opacity', value_noie);
		$(element).css('-khtml-opacity', value_noie);
		$(element).css('opacity',value_noie);
	}

	// center horizontally
	function centerHoriz(lo_que) {
		var x = parseFloat($(window).width()) / 2 - parseFloat($(lo_que).width()) / 2;
		var y = $(window).scrollTop() + $(window).height() / 2 - parseFloat($(lo_que).height()) / 2;
		x = x + 'px';
		y = y + 'px';
		$(lo_que).css({'left': x, 'top': y});
	}

	// center vertically
	function centerVert(lo_que) {
		var y = $(window).scrollTop() + $(window).height() / 2 - parseFloat($(lo_que).height()) / 2;
		$(lo_que).css({'top': y});
	}

	// image load
	function loadImg(sID, sURL) {
		$(sID).unbind("load");
		$(sID).bind("load", function() { $(this).fadeIn(); } )
		$(sID).stop(true, true).fadeOut("normal", function () { $(sID).attr('src', sURL); } );
	}

	$(document).ready(
		function() {


			// no dotted outline for IE in As
			if ($.browser.msie) {
				$('a').focus(
					function() {
						$(this).blur()
					}
				);
			}
			
		// END DEFAULT //
		
		$("body").removeClass('no-javascript');
		
		//menu superior
		$('#mainNav li').hover(
			function(e)
			{
				if ($.browser.msie && $.browser.version.substr(0,1)<9) {
				  // search for selectors you want to add hover behavior to
				  $(this).children().show();
				}
				else
				{
				  $(this).children().fadeIn("fast");
				}
				$(this).children("a:first").addClass('active');
				//$(this).addClass('adelante');
			},
			function(e)
			{
				$(this).children('ul').hide();
				$(this).children("a:first").removeClass('active');
				//$(this).removeClass('adelante');
			}
		);
		
		//restaruar texto input newssletter
		$( '.newssletter .bgTxt input' ).focus(function() {
		 
		  if($(this).val()=="Ingresá tu dirección de correo electrónico" ){
			$( this ).val( '' );
	      }
		});

		$( '.newssletter .bgTxt input' ).blur(function() {
		  if($(this).val()=="Ingresá tu dirección de correo electrónico" || $(this).val()=="" ){
			  setTimeout(function() { $('.newssletter .bgTxt input').val( 'Ingresá tu dirección de correo electrónico' ); }, 1);
	      }
		});

		
		
		}
	);
	
// ]]>
