// JavaScript, todo.
// Lounge.cl

// Accordions.

jQuery(document).ready(function(){
	$('.accordion_body').hide();
	$('.accordion_body:first').show();
	$('.accordion_head').click(function() {
		$('.accordion_head').removeClass('active');
		$('.accordion_body').hide('slow');
		$(this).addClass('active');
		$(this).next().show('slow');
	});
});

// Fancybox. (Depende del plugin)

jQuery(document).ready(function() {

	$("a.fancy").fancybox();

	$("a.fancyframe").click(function() {
		$.fancybox({
				'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'width'			: 340,
				'height'		: 370,
				'href'			: this.href,
				'type'			: 'iframe'
			});

		return false;
	});

});

// Cycle. (Depende del plugin)

jQuery(document).ready(function() {
	$('.cycle').cycle({
		fx: 'fade',
		timeout: '6000',
		speed: '2000'
	});
});

jQuery(document).ready(function() {
	$('.cyclealt').cycle({
		fx: 'fade',
		timeout: '8500',
		speed: '2000'
	});
});

// Deshabilitar click derecho.

//jQuery(function() {
//	$(this).bind("contextmenu", function(e) {
//		e.preventDefault();
//	});
//});

