$(document).ready(function(){
	$(".call_pop_up_01").colorbox({width:"700", height:"700", inline:true,href:".pop_up_01", onComplete:function(){$('#cboxClose').hide();}});
    $(".call_pop_up_06").colorbox({width:"700", height:"700", inline:true,href:".pop_up_06", onComplete:function(){$('#cboxClose').hide();}});
	
	$(".call_s1").colorbox({width:"550", height:"400", inline:true,href:"#s1", onComplete:function(){$('#cboxClose').hide();}});
	$(".call_s2").colorbox({width:"550", height:"300", inline:true,href:"#s2", onComplete:function(){$('#cboxClose').hide();}});
	$(".call_s3").colorbox({width:"550", height:"400", inline:true,href:"#s3", onComplete:function(){$('#cboxClose').hide();}});
	$(".call_s4").colorbox({width:"550", height:"300", inline:true,href:"#s4", onComplete:function(){$('#cboxClose').hide();}});
	$(".call_s5").colorbox({width:"550", height:"300", inline:true,href:"#s5", onComplete:function(){$('#cboxClose').hide();}});
	
			
	/* Expand Collapse*/
	$('a.expander').html('Más<em></em>');
	$('a.expander').addClass('down');
	$('a.expander').click( function(){
		if($(this).prev('span.more_content').hasClass('active')){
		$(this).prev('span.more_content').removeClass('active').addClass('inactive');
		$(this).removeClass('up').addClass('down');
		$(this).html('Más<em></em>');	}
		else{
		$(this).prev('span.more_content').removeClass('inactive').addClass('active');
		$(this).removeClass('down').addClass('up');
		$(this).html('Menos<em></em>');	}
		})
		
		
    $('.features_faq_tab .tab_content1 .row .heading').click( function(){
		if(!$(this).hasClass('active')){
		$(this).addClass('active');
		$(this).next('ul').show();}
		else{
		$(this).removeClass('active');
		$(this).next('ul').hide();}
		})
	
	$('.tooltip').tooltip({
		folderurl : ''
		});
	$('.tooltip1').tooltip({
		folderurl : '',
		offsetX: 250, 
		offsetY: -220		
		});
	$('.tooltip2').tooltip({
		folderurl : '',
		offsetX: 165, 
		offsetY: 10		
		});
	$('.tooltip3').tooltip({
		folderurl : '',
		offsetX: -110, 
		offsetY: 20		
		});
	$('.tooltip4').tooltip({
		folderurl : '',
		offsetX: 110, 
		offsetY: 20		
		});
	$('.tooltip5').tooltip({
		folderurl : '',
		offsetX: -250, 
		offsetY: 10		
		});
    $('.tooltip6').tooltip({
		folderurl : '',
		offsetX: 250, 
		offsetY: 10		
		});
    
	
 });


