// <![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() {
			$('.generictitle h1').fadeIn(3000);
			
			//newshome
			$('#newshome').slideUp(600).delay(1200).fadeIn(1200);
			$('#newshome .botonCerrar').slideUp(2200).delay(2200).fadeIn(2200);
			$('.congreso, .proveeduriaArea').slideUp(300).delay(1000).fadeIn(600);
			$('#newshome, #newshome .botonCerrar').click(function() {
				$('#newshome').fadeOut(600);
			});	
			
			//messages
			$('.message.error .errorx, .message.success .successx, .message.notice .noticex').click(function() {
				$(this).parent().addClass('hide');
			});
			
			// no dotted outline for IE in As
			if ($.browser.msie) {
				$('a').focus(
					function() {
						$(this).blur()
					}
				);
			}
			
		// END DEFAULT //
		}
	);
	
// ]]>
