// JavaScript Document para LaserMedik
$(document).ready(function() {
	$("div.act, div#oferta").css('cursor','pointer').click(function(){
		window.location=$(this).find("a").attr("href");
		return false;
	});
	
	// Efectos para la Intro
	//$('div.act').css('cursor','pointer');
	$('div.dl').height($('div.rc').height());
	$('div.tf').height($('div.rc').height());
	
	//test
	$('#menuDepilacion ul li:last-child').css('background','none');
	$('#menuRemodelacion ul li:last-child').css('background','none');
	$('#menuTratamientos ul li:last-child').css('background','none');
	
	//Altura de cajas
	var alt2 = $('#tCasa').height();
	var alt1 = $('#metodo').height();
	
	if (alt1 > alt2) {//si metodo est plus grand
		$('#tCasa').height(alt1);
		$('#precio').height(alt1);
		
	}
	else {
		$('#metodo').height(alt2);
		$('#precio').height(alt2);
	};
	
	//$('.regalo').height(295);
	
	//gestion del rel external
	$('a[rel=external]').attr('target', 'blank');
	
	//Saltos suaves dentro de 1 misma pagina
	var salto = function(e) {
		e.preventDefault();
		var target = $(this).attr("href");
		$('html,body').animate({
			scrollTop: $(target).offset().top
		},600,function() {
			//attach the hash (#jumptarget) to the pageurl
		location.hash = target;
		});
	}
	$('a[href*=#]').bind("click", salto);
	return false;
});
