$(document).ready(function(){
	/////////////////////////////////////////////////
	//efecto redondear esquina
	/////////////////////////////////////////////////
	$(".telefonos").corner('10px');
	$(".listadoareas").corner('10px');
	$(".cnae").corner('5px');
	$(".central").corner('10px');
	$(".horario").corner('10px');
	$("#lateral").corner('10px');
	$("#claimsectorial").corner('5px');
	$("#claimcomplementarias").corner('5px');
	$("#ventajas").corner('10px');
	$(".aplicacion").corner('10px');
	$(".areas a").corner('10px');
	$(".vertabla a").corner('10px');
	$(".endefinitiva").corner('15px');
	$(".normativabase").corner('15px');
	$(".tipoformaciones").corner('15px');
	$("#bonificada").corner('10px');
	$(".delegacion").corner('10px');
	$(".boton").corner('10px');
	$(".secc").corner('10px');
	$(".masinfotienda").corner('10px');
	if(!$.browser.msie) {
    	$(".comprartienda").corner('10px');
	}
	
	/////////////////////////////////////////////////
	//efecto pestañas
	/////////////////////////////////////////////////
	$("#tabs").tabs();
	
	/////////////////////////////////////////////////
	//efecto tooltip dias eventos
	/////////////////////////////////////////////////
	$(".info").tooltip({
		track: true, 
		delay: 0, 
		showURL: false, 
		showBody: " - ", 
		extraClass: "pretty", 
		fixPNG: true, 
		opacity: 0.95, 
		left: -120
	});

	/////////////////////////////////////////////////
	//efecto tooltip (*) inscripcion
	/////////////////////////////////////////////////
	$(".nota").tooltip({
		track: true, 
		delay: 0,  
		showURL: false
	})
	
	/////////////////////////////////////////////////
	//EFECTO FANCYBOX
	/////////////////////////////////////////////////
	$(".fancytest").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});
	
	$(".tellamamos").fancybox({
		'type'  : 'iframe',
		'width':500,
		'height':450,
		'titleShow' : false,
		'margin' : 0,
		'padding' : 0
	});
	
	$(".reformaiva_form").fancybox({
		'type'  : 'iframe',
		'width':500,
		'height':450,
		'titleShow' : false,
		'margin' : 0,
		'padding' : 0
	});
	
	
	$(".solicitardemo").fancybox({
		'type'  : 'iframe',
		'width':500,
		'height':550,
		'titleShow' : false,
		'margin' : 0,
		'padding' : 0
	});
	
	$(".modulosavantis").fancybox({
		'type'  : 'iframe',
		'width':500,
		'height':450,
		'titleShow' : false,
		'margin' : 0,
		'padding' : 0
	});
	
	$(".requisitos").click(function() {
		$.fancybox([
		{
			'href': '/productos/requisitos_inc.php'
		}
		], {
		'type'  : 'iframe',
		'width'	: 500,
		'height': 500,
		'padding':0, 
		'margin':0
	});
	});
	
	$(".gestioncontable").click(function() {
		$.fancybox([
		{
			'href': '/productos/gestioncontable.php',
			'title' : 'Gestión contable'
		}
		], {
		'type' 	: 'iframe',
		'width'	: 450,
		'height': 400,
		'padding':0, 
		'margin':0
	});
	});
	
	$(".tablacomparativa").click(function() {
		$.fancybox([
		{
			'href': '/productos/tablacomparativa.php',
			'title' : 'Tabla comparativa'
		}
		], {
		'type' 	: 'iframe',
		'width'	: 500,
		'height': 600,
		'padding':0, 
		'margin':0
	});
	});
	
	$(".descuentospresencial").click(function() {
		$.fancybox([
		{
			'href': '/formacion/descuentos.php?tipo=1',
			'title' : 'Descuentos y bonificaciones en formación presencial'
		}
		], {
		'type' 	: 'iframe',
		'width'	: 500,
		'height': 500,
		'padding':0, 
		'margin':0
	});
	});
	
	$(".descuentosvideoconferencia").click(function() {
		$.fancybox([
		{
			'href': '/formacion/descuentos.php?tipo=2',
			'title' : 'Descuentos y bonificaciones en formación por videoconferencia'
		}
		], {
		'type' 	: 'iframe',
		'width'	: 500,
		'height': 500,
		'padding':0, 
		'margin':0
	});
	});
	
	$(".descuentoscomun").click(function() {
		$.fancybox([
		{
			'href': '/formacion/descuentos.php?tipo=3',
			'title' : 'Descuentos y bonificaciones'
		}
		], {
		'type' 	: 'iframe',
		'width'	: 500,
		'height': 500,
		'padding':0, 
		'margin':0
	});
	});
	
});
