// <![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 //

	
		/* styled selects */
		/* doesn't work in IE 6 */
		if (!($.browser.msie && $.browser.version == "6.0")) {
			$('.selectStyle').css('filter', 'alpha(opacity=0)');
			$('.selectStyle').css('opacity', '0');
			$('.selectStyle').change(function() {
				var the_option = $(this).children(":selected").text();
				$(this).parent().children('.spanStyle').text(the_option);
			});
			$('.spanStyle').each(
				function() {$(this).text($(this).parent().children('.selectStyle').children(':selected').text())}
			);
		}
		
		/* styled radio buttons */
		/* already checked radio buttons */
		var alt_radio = $('.spanRadio').css('height');
		$(".spanRadio input[type=radio]:checked").each(
			function() {
				$(this).parent().css({'background-position' : '0 -' + alt_radio});
			}
		);
		/* CSS valid opacity */
		$('.spanRadio input').css('filter', 'alpha(opacity=0)');
		$('.spanRadio input').css('opacity', '0');
		$(".spanRadio input[type=radio]").click(function() {
				var its_name = $(this).attr('name');
				$("input[name=" + its_name + "]").parent().css({'background-position' : '0 0'});
				$(this).parent().css({'background-position' : '0 -' + alt_radio});
			}
		);


		
		
		//para evitar scroll horizontal en resolucion de 1024 x 768
		if ((screen.width<=1024)) {  
			$("#container").addClass("res1024");  
		} 
		

		
		 

		 


		}
	);
	
// ]]>
