// Teatro Circo Price
// Jose del corral
// jose@josedelcorral.es
$(function(){
  
$('#featured_carousel').anythingSlider({
    easing: "easeInOutExpo",
    autoPlay: true,
    delay: 6000,
    startStopped: false,
    animationTime: 600,
    hashTags: true,
    buildNavigation: true,
    pauseOnHover: false
});
$('.featured_home').anythingSlider({
    easing: "easeInOutExpo",
    autoPlay: true,
    delay: 8000,
    startStopped: false,
    animationTime: 800,
    hashTags: true,
    buildNavigation: true,
    pauseOnHover: false             
});
$('.coffe_box').anythingSlider({
    easing: "easeInOutExpo",
    autoPlay: true,
    delay: 3000,
    startStopped: false,
    animationTime: 600,
    hashTags: true,
    buildNavigation: true,
    pauseOnHover: false             
});


$('#name').example('Tu nombre');
$('#mail').example('Tu e-mail');
$('#search_box').example('buscar');

$('#your_email').example('e-mail');
$('#first_name').example('Tu nombre');

$('#comment_form #email').example('e-mail');
$("#featured_carousel ul li a").colorbox();
$("#featured_image a").colorbox();
$(".main_sidebar ul.menu li.press a").colorbox({width:550, height:350});
$(".main_content .show_box .main_info_box .more_info_box ul li.press a").colorbox({width:550, height:350});
$(".buy_tickets a").colorbox({width:570, height:350});
$(".buy_now a").colorbox({width:570, height:350});
$("#legal a").colorbox({inline:true, href:"#footer .press_block", width:570, height:350});
$("#condiciones a").colorbox({inline:true, href:"#footer .conditions_block", width:570, height:350});
$("#contacto a").colorbox({inline:true, href:"#footer .contact_block", width:570, height:350});

$("#comment_form").validate({
  messages: {
    first_name: {
      required: true
    },
    your_email: {
      required: true,
      email: true
    },
    comment: {
      required: true
    }
  }
});

$(".events_box .event_carousel").jCarouselLite({
    btnNext: ".events_box .next",
    btnPrev: ".events_box .prev",
    vertical: true
});

Cufon.replace('.main_sidebar ul.menu li a', { hover: true });
Cufon.replace('#header .sections ul li a', { hover: true });
Cufon.replace('.four_steps li a', { hover: true });
Cufon.replace('.box h3') ('.press_box .show_box h3 ') ('.secondary_sidebar .sidebar_address h3') ('.press_box .show_box h4') ('.expanded_info ul li.image span.preview') ('.main_sidebar .theaters h3') ('.tour_steps li a') ('.tour_box p.tour_desc') ('.map_box ul li h3') ('.list_box li .info_box small') ('.secondary_sidebar .box button.show_all') ('.main_info_box .main_dates li') ('.main_info_box .prices') ('.more_info_box ul.info_tabs li a') ('.buy_now a') ('.comments_box h3') ('.new_comment_box form button') ('.comments_box h4.subtitle') ('.profile_box h3') ('.subsection_dark_grey') ('.subsection_clear_grey') ('.preview_image') ('.featured_home .info_box small') ('.download_file_black') ('.events_box h3') ('#datepicker h3') ('.discount_box h3') ('.press_block h2') ('.sponsor_box h2') ('.press_box .show_box ul.time li a') ('.announce h3') ('.technical_content p.technical_desc') ('.sponsor_box p.sponsor_desc') ('.sections h2');

Cufon.replace('.show_lists .title', { fontFamily: 'VAG Rounded Std Light' }) ('.press_box h2', { fontFamily: 'VAG Rounded Std Light' });
Cufon.replace('.press_box h2 .prensa_bold');
Cufon.replace('.accesibilidad h3', { fontFamily: 'VAG Rounded Std Light' });
Cufon.replace('.main_info_box h2');
Cufon.replace('.featured_home h2', { fontFamily: 'Neutraface 2 Display Titling' }) ('.featured_home h3', { fontFamily: 'Neutraface 2 Display Titling' }) ('.list_box li .info_box h3', { fontFamily: 'Neutraface 2 Display Titling' }) ('.main_info_box .tagline', { fontFamily: 'VAG Rounded Std Light' }) ('.secondary_sidebar .list_box li .info_box h3', { fontFamily: 'Neutraface 2 Display Titling' }) ('.secondary_sidebar .list_box li .info_box p ', { fontFamily: 'Neutraface 2 Display Titling' });

Cufon.replace('.featured_home  ul li', { hover: true });
Cufon.replace('.info_box h3', { hover: true });
Cufon.replace('.featured_home .info_box h3.desc', { fontFamily: 'VAG Rounded Std Light', hover: true });


Cufon.replace('.list_box li .info_box p', { fontFamily: 'VAG Rounded Std Light' });


});