﻿// Clear All
function clearNav() {
 $('.link1').css('backgroundPosition', '0px 0px');
 $('.link2').css('backgroundPosition', '-182px 0px');
 $('.link3').css('backgroundPosition', '-267px 0px');
 $('.link4').css('backgroundPosition', '-384px 0px');
 $('.link5').css('backgroundPosition', '-555px 0px');

 $('.mainNav').css('backgroundImage', 'none');
 $('.menu').hide();
 $('.qq').hide();

 $('.hidden1').stop().animate({ height: '0px' }, { duration: 200 });
 $('.hidden2').stop().animate({ height: '0px' }, { duration: 200 });
 $('.hidden3').stop().animate({ height: '0px' }, { duration: 200 });
}

function clearNav2() {
 $('.link1').css('backgroundPosition', '0px 0px');
 $('.link2').css('backgroundPosition', '-182px 0px');
 $('.link3').css('backgroundPosition', '-267px 0px');
 $('.link4').css('backgroundPosition', '-384px 0px');
 $('.link5').css('backgroundPosition', '-555px 0px');

 $('.mainNav').css('backgroundImage', 'none');

 $('.hidden1').stop().animate({ height: '0px' }, { duration: 200 });
 $('.hidden2').stop().animate({ height: '0px' }, { duration: 200 });
 $('.hidden3').stop().animate({ height: '0px' }, { duration: 200 });
}

function clearSNav() {
 $('#spanel1a > a').css('backgroundPosition', '0px 10px');
 $('#spanel1 > a').css('backgroundPosition', '0px 10px');
 $('#spanel2 > a').css('backgroundPosition', '0px 10px');
 $('#spanel3 > a').css('backgroundPosition', '0px 10px');

 $('#spanel1a').css('backgroundImage', 'url(images/spanel1a.jpg)');
 $('#spanel1').css('backgroundImage', 'url(images/spanel1.jpg)');
 $('#spanel2').css('backgroundImage', 'url(images/spanel2.jpg)');
 $('#spanel3').css('backgroundImage', 'url(images/spanel3.jpg)');

 $('.panel1a').css('backgroundImage', 'url(images/spanel1a.png)');
 $('.panel1').css('backgroundImage', 'url(images/spanel1.png)');
 $('.panel2').css('backgroundImage', 'url(images/spanel2.png)');
 $('.panel3').css('backgroundImage', 'url(images/spanel3.png)');

 $('.panel1a').css('color', '#4D4D4D');
 $('.panel1').css('color', '#4D4D4D');
 $('.panel2').css('color', '#4D4D4D');
 $('.panel3').css('color', '#4D4D4D');
    
 $('.menu').hide();
 $('.qq').hide();
}


//// Search Result
function result() {
 $('.result').fadeIn(150);
}

function resultoff() {
 $('.result').fadeOut(150);
}

//Result
$(document).ready(function() {
    $('.pnlShow').hide();
});
// Quick Quote
$(document).ready(function() {
 $('.qq').hide();
});

function qq() {
 if ($('.qq').css('display') == 'none') {
  $('html, body').animate({ scrollTop: 300 }, { easing: 'easeOutCubic' }, 1000);
  $('.qq').fadeIn(150);
  $('.quickquote').css('backgroundPosition', 'bottom');
  clearNav2();
 } else {
  $('.qq').fadeOut(150);
  $('.quickquote').css('backgroundPosition', 'top');
 }
}

function qq2() {
 if ($('.qq').css('display') == 'none') {
  $('html, body').animate({ scrollTop: 600 }, { easing: 'easeOutCubic' }, 1000);
  $('.qq').fadeIn(150);
  $('.quickquote').css('backgroundPosition', 'bottom');
 } else {
  $('.qq').fadeOut(150);
  $('.quickquote').css('backgroundPosition', 'top');
 }
}


// Select Sport Dropdown
function sportDrop() {
 $('.sportDrop').stop().animate({ backgroundPosition: '0px 4px' }, { duration: 60 }).animate({ backgroundPosition: '0px 0px' }, { duration: 60 });
}

function selectSport() {
if ($('.menu').css('display') != 'block') {
 $('.menu').css('display', 'block')
 } else {
  $('.menu').css('display', 'none')
 }
}


// Side Nav rollover animation
function sideon(el) {
 if ($(el).css('backgroundPosition') == '4px 0px') {
  return false;
 } else {
 $(el).stop().animate({ backgroundPosition: '4px 0px' }, { duration: 50 }).animate({ backgroundPosition: '0px 0px' }, { duration: 60 });
 }
}


// Sports Overview
function Sall() {
 if ($('#spanel1a > a').css('backgroundPosition') == '0px 5px') {
  return false;
 } else {
  $('#spanel1a > a').stop().animate({ backgroundPosition: '0px 5px' }, { duration: 150 });
 }
}

function Salloff() {
 if ($('#spanel1a > a').css('backgroundPosition') == '0px 10px') {
  return false;
 } else {
  $('#spanel1a > a').stop().animate({ backgroundPosition: '0px 10px' }, { duration: 550 });
 }
}

function Sallon() {
 clearSNav();
 $('#spanel1a').css('backgroundImage', 'url(images/spanel1aON.jpg)');
 $('.panel1a').css('backgroundImage', 'none');
 $('.panel1a').css('color', '#fff');
 $('.sideNav').slideDown({ easing: 'easeInOutCubic' });

 clearPanels();
 $('.cmsOverview').fadeIn();
 $('.C').css('display', 'none');
 $('.T').css('display', 'none');
 $('.I').css('display', 'none');
 $('#ctl00_quickquote_ddlInsuranceType').val('0');
}


// Main Nav - Coaches/Instructors
function l1() {
 if ($('.link1').css('backgroundPosition') == '0px -33px') {
  return false;
 } else {
  $('.link1').stop().animate({ backgroundPosition: '0px -7px' }, { duration: 150 });
 }
}

function l1off() {
 if ($('.link1').css('backgroundPosition') == '0px -33px') {
  return false;
 } else {
  $('.link1').stop().animate({ backgroundPosition: '0px 0px' }, { duration: 550 });
 }
}

function l1on() {
 clearNav();
 $('.mainNav').css('backgroundImage', 'url(images/coachesOn.jpg)');
 $('.link1').stop().css('backgroundPosition', '0px -33px');

 $('.hidden1').stop().animate({ height: '254px' }, { duration: 250 });

 if ($('.hidden1').css('height') != '0px') {
  clearNav();
 }
}

function l1onC() {
 clearNav();
 $('.mainNav').css('backgroundImage', 'url(images/coachesOn.jpg)');
 $('.link1').stop().css('backgroundPosition', '0px -33px');

 $('.hidden1').stop().animate({ height: '305px' }, { duration: 250 });

 if ($('.hidden1').css('height') != '0px') {
  clearNav();
 }
}

//makes mainNavCoaches show on postback
function mainNavCoaches() {
 $('.link1').stop().css('backgroundPosition', '0px -33px');
}

//makes mainNavTeams show on postback
function mainNavTeams() {
 $('.link2').stop().css('backgroundPosition', '-182px -33px');
}

//makes mainNavIndividual show on postback
function mainNavIndividual() {
 $('.link3').stop().css('backgroundPosition', '-267px -33px');
}

function l1onClub() {
 clearNav();
 $('.mainNav').css('backgroundImage', 'url(images/coachesOn.jpg)');
 $('.link1').stop().css('backgroundPosition', '0px -33px');

 $('.hidden1').stop().animate({ height: '310px' }, { duration: 250 });

 if ($('.hidden1').css('height') != '0px') {
  clearNav2();
 }
}

function l1onS() {
 clearSNav();
 $('#spanel1').css('backgroundImage', 'url(images/spanel1ON.jpg)');
 $('.panel1').css('backgroundImage', 'none');
 $('.panel1').css('color', '#fff');
 $('.sideNav').slideDown({ easing: 'easeInOutCubic' });
 $("#quickquote_ddlInsuranceType").val('coaches');
 $("#insuranceType").text('Coaches');
    
 clearPanels();
 $('.cmsCoaches').fadeIn();
 $('.C').css('display', 'inline-block');
 $('.T').css('display', 'none');
 $('.I').css('display', 'none');
 $('#ctl00_quickquote_ddlInsuranceType').val('coaches');
}

function l1onSTest() {
 clearSNav();
 $('#spanel1').css('backgroundImage', 'url(images/spanel1ON.jpg)');
 $('#ctl00_panel1').css('backgroundImage', 'none');
 $('#ctl00_panel1').css('color', '#fff');
 $('.sideNav').slideDown({ easing: 'easeInOutCubic' });
 $("#quickquote_ddlInsuranceType").val('coaches');

 clearPanels();
 $('.cmsCoaches').fadeIn();
}

function sl1() {
 if ($('#spanel1 > a').css('backgroundPosition') == '0px 5px') {
  return false;
 } else {
  $('#spanel1 > a').stop().animate({ backgroundPosition: '0px 5px' }, { duration: 150 });
 }
}

function sl1off() {
 if ($('#spanel1 > a').css('backgroundPosition') == '0px 10px') {
  return false;
 } else {
  $('#spanel1 > a').stop().animate({ backgroundPosition: '0px 10px' }, { duration: 550 });
 }
}


// Main Nav - Teams
function l2() {
 if ($('.link2').css('backgroundPosition') == '-182px -33px') {
  return false;
 } else {
  $('.link2').stop().animate({ backgroundPosition: '-182px -7px' }, { duration: 150 });
 }
}

function l2off() {
 if ($('.link2').css('backgroundPosition') == '-182px -33px') {
  return false;
 } else {
  $('.link2').stop().animate({ backgroundPosition: '-182px 0px' }, { duration: 550 });
 }
}

function l2on() {
 clearNav();
 $('.mainNav').css('backgroundImage', 'url(images/teamsOn.jpg)');
 $('.link2').stop().css('backgroundPosition', '-182px -33px');

 $('.hidden2').stop().animate({ height: '254px' }, { duration: 250 });

 if ($('.hidden2').css('height') != '0px') {
  clearNav();
 }
}

function l2onClub() {
 clearNav();
 $('.mainNav').css('backgroundImage', 'url(images/teamsOn.jpg)');
 $('.link2').stop().css('backgroundPosition', '-182px -33px');

 $('.hidden2').stop().animate({ height: '310px' }, { duration: 250 });

 if ($('.hidden2').css('height') != '0px') {
  clearNav2();
 }
}

function l2onS() {
 clearSNav();
 $('#spanel2').css('backgroundImage', 'url(images/spanel2ON.jpg)');
 $('.panel2').css('backgroundImage', 'none');
 $('.panel2').css('color', '#fff');
 $('.sideNav').slideDown();
 $("#quickquote_ddlInsuranceType").val('teams');
 clearPanels();

 $('.cmsTeam').fadeIn();
 $('.C').css('display', 'none');
 $('.T').css('display', 'inline-block');
 $('.I').css('display', 'none');
 $('#ctl00_quickquote_ddlInsuranceType').val('teams');
}

function sl2() {
 if ($('#spanel2 > a').css('backgroundPosition') == '0px 5px') {
  return false;
 } else {
  $('#spanel2 > a').stop().animate({ backgroundPosition: '0px 5px' }, { duration: 150 });
 }
}

function sl2off() {
 if ($('#spanel2 > a').css('backgroundPosition') == '0px 10px') {
  return false;
 } else {
  $('#spanel2 > a').stop().animate({ backgroundPosition: '0px 10px' }, { duration: 550 });
 }
}


// Main Nav - Individuals
function l3() { 
 if ($('.link3').css('backgroundPosition') == '-267px -33px') {
  return false;
 } else {
  $('.link3').stop().animate({ backgroundPosition: '-267px -7px' }, { duration: 150 });
 }
}

function l3off() {
 if ($('.link3').css('backgroundPosition') == '-267px -33px') {
  return false;
 } else {
  $('.link3').stop().animate({ backgroundPosition: '-267px 0px' }, { duration: 550 });
 }
}

function l3on() {
 clearNav();
 $('.mainNav').css('backgroundImage', 'url(images/individualsOn.jpg)');
 $('.link3').stop().css('backgroundPosition', '-267px -33px');

 $('.hidden3').stop().animate({ height: '254px' }, { duration: 250 });

 if ($('.hidden3').css('height') != '0px') {
  clearNav();
 }
}

function l3onClub() {
 clearNav();
 $('.mainNav').css('backgroundImage', 'url(images/individualsOn.jpg)');
 $('.link3').stop().css('backgroundPosition', '-267px -33px');

 $('.hidden3').stop().animate({ height: '310px' }, { duration: 250 });
 if ($('.hidden3').css('height') != '0px') {
  clearNav2();
 }
}

function l3onS() {
 clearSNav();
 $('#spanel3').css('backgroundImage', 'url(images/spanel3ON.jpg)');
 $('.panel3').css('backgroundImage', 'none');
 $('.panel3').css('color', '#fff');
 $('.sideNav').slideDown();
 $("#quickquote_ddlInsuranceType").val('individuals');
 clearPanels();

 $('.cmsIndividuals').fadeIn();
 $('.C').css('display', 'none');
 $('.T').css('display', 'none');
 $('.I').css('display', 'inline-block');
 $('#ctl00_quickquote_ddlInsuranceType').val('individuals');
}

function sl3() {
 if ($('#spanel3 > a').css('backgroundPosition') == '0px 5px') {
  return false;
 } else {
  $('#spanel3 > a').stop().animate({ backgroundPosition: '0px 5px' }, { duration: 150 });
 }
}

function sl3off() {
 if ($('#spanel3 > a').css('backgroundPosition') == '0px 10px') {
  return false;
 } else {
  $('#spanel3 > a').stop().animate({ backgroundPosition: '0px 10px' }, { duration: 550 });
 }
}


// Main Nav - Personal Trainers
function l4() {
 $('.link4').stop().animate({ backgroundPosition: '-384px -7px' }, { duration: 150 });
}

function l4off() {
 $('.link4').stop().animate({ backgroundPosition: '-384px 0px' }, { duration: 550 });
}


// Main Nav - Clubhouses
function l5() {
 $('.link5').stop().animate({ backgroundPosition: '-555px -7px' }, { duration: 150 });
}

function l5off() {
 $('.link5').stop().animate({ backgroundPosition: '-555px 0px' }, { duration: 550 });
}


// Slider button animation
$(document).ready(function() {
 $('.slideItem').click(function() {
 $(this).stop().animate({ opacity: '0' }, { duration: 50 }).animate({ opacity: '1' }, { duration: 120 });
 });
});

// Scroll button animation
$(document).ready(function () {
 $('.scroll').click(function () {
  $(this).stop().animate({ opacity: '0' }, { duration: 50 }).animate({ opacity: '1' }, { duration: 120 });
 });
});


// Slide Panels
start();
function start() {
 timer = setTimeout('slide2T()', 5000);
}

function slide1T() {
 $('.headPanel').scrollTo('#img1', '1000', { easing: 'easeInOutExpo' });
 $('#i1').css('backgroundPosition', 'bottom');

 $('#i2').css('backgroundPosition', 'top');
 $('#i3').css('backgroundPosition', 'top');
 $('#i4').css('backgroundPosition', 'top');
 timer = setTimeout('slide2T()', 5000);
}

function slide2T() {
 $('.headPanel').scrollTo('#img2', '1000', { easing: 'easeInOutExpo' });
 $('#i2').css('backgroundPosition', 'bottom');

 $('#i1').css('backgroundPosition', 'top');
 $('#i3').css('backgroundPosition', 'top');
 $('#i4').css('backgroundPosition', 'top');
 timer = setTimeout('slide3T()', 5000);
}

function slide3T() {
 $('.headPanel').scrollTo('#img3', '900', { easing: 'easeInOutExpo' });
 $('#i3').css('backgroundPosition', 'bottom');

 $('#i1').css('backgroundPosition', 'top');
 $('#i2').css('backgroundPosition', 'top');
 $('#i4').css('backgroundPosition', 'top');
 timer = setTimeout('slide1T()', 5000);
}


function slide1() {
 $('.headPanel').scrollTo('#img1', '1000', { easing: 'easeInOutExpo' });
 $('#i1').css('backgroundPosition', 'bottom');

 $('#i2').css('backgroundPosition', 'top');
 $('#i3').css('backgroundPosition', 'top');
 $('#i4').css('backgroundPosition', 'top');
 clearTimeout(timer);
}

function slide2() {
 $('.headPanel').scrollTo('#img2', '1000', { easing: 'easeInOutExpo' });
 $('#i2').css('backgroundPosition', 'bottom');
    
 $('#i1').css('backgroundPosition', 'top');
 $('#i3').css('backgroundPosition', 'top');
 $('#i4').css('backgroundPosition', 'top');
 clearTimeout(timer);
}

function slide3() {
 $('.headPanel').scrollTo('#img3', '900', { easing: 'easeInOutExpo' });
 $('#i3').css('backgroundPosition', 'bottom');
    
 $('#i1').css('backgroundPosition', 'top');
 $('#i2').css('backgroundPosition', 'top');
 $('#i4').css('backgroundPosition', 'top');
 clearTimeout(timer);
}


// 4 Panel animation
function paneli1on() {
 $('.i1').stop().animate({ backgroundPosition: '0px -133px' }, { duration: 0 });
 $('#i1txt').css('display', 'block');
 $('.i1 > h3').stop().animate({ opacity: '0' }, { duration: 0 });
}

function paneli1off() {
 $('#i1txt').css('display', 'none');
 $('.i1').stop().animate({ backgroundPosition: '0px 0px' }, { duration: 250 });
 $('.i1 > h3').stop().animate({ opacity: '1' }, { duration: 250 });
}

function paneli2on() {
 $('.i2').stop().animate({ backgroundPosition: '0px -133px' }, { duration: 0 });
 $('#i2txt').css('display', 'block');
 $('.i2 > h3').stop().animate({ opacity: '0' }, { duration: 0 });
}

function paneli2off() {
 $('#i2txt').css('display', 'none');
 $('.i2').stop().animate({ backgroundPosition: '0px 0px' }, { duration: 250 });
 $('.i2 > h3').stop().animate({ opacity: '1' }, { duration: 250 });
}

function paneli3on() {
 $('.i3').stop().animate({ backgroundPosition: '0px -133px' }, { duration: 0 });
 $('#i3txt').css('display', 'block');
 $('.i3 > h3').stop().animate({ opacity: '0' }, { duration: 0 });
}

function paneli3off() {
 $('#i3txt').css('display', 'none');
 $('.i3').stop().animate({ backgroundPosition: '0px 0px' }, { duration: 250 });
 $('.i3 > h3').stop().animate({ opacity: '1' }, { duration: 250 });
}

function paneli4on() {
 $('.i4').stop().animate({ backgroundPosition: '0px -133px' }, { duration: 0 });
 $('#i4txt').css('display', 'block');
 $('.i4 > h3').stop().animate({ opacity: '0' }, { duration: 0 });
}

function paneli4off() {
 $('#i4txt').css('display', 'none');
 $('.i4').stop().animate({ backgroundPosition: '0px 0px' }, { duration: 250 });
 $('.i4 > h3').stop().animate({ opacity: '1' }, { duration: 250 });
}


// Sports Page - Swap Panels
function clearPanels() {
 $('.cmsOverview').css('display', 'none');
 $('.cmsCoaches').css('display', 'none');
 $('.cmsTeam').css('display', 'none');
 $('.cmsIndividuals').css('display', 'none');

 $('#sportboxSummary').css('display', 'none');
 $('#sportboxLiability').css('display', 'none');
 $('#sportboxAccident').css('display', 'none');
 $('#sportboxEliability').css('display', 'none');
 $('#sportboxEquip').css('display', 'none');
}

function coaches() {
 clearPanels();
 l1onS();
 $('.cmsCoaches').fadeIn();
}

function team() {
 clearPanels();
 l2onS();
 $('.cmsTeam').fadeIn();
}

function individuals() {
 clearPanels();
 l3onS();
 $('.cmsIndividuals').fadeIn();
}

function summaryS() {
 clearPanels();
 clearSNav();
 $('#sportboxSummary').fadeIn();
}

function liabilityS() {
 clearPanels();
 clearSNav();
 $('#sportboxLiability').fadeIn();
}

function accidentS() {
 clearPanels();
 clearSNav();
 $('#sportboxAccident').fadeIn();
}

function eliabilityS() {
 clearPanels();
 clearSNav();
 $('#sportboxEliability').fadeIn();
}

function equipS() {
 clearPanels();
 clearSNav();
 $('#sportboxEquip').fadeIn();
}


// All Sports Page - Category Indicators
function clearcats() {
 $('.cat1').stop().animate({ opacity: '0' }, { duration: 500 });
 $('.cat2').stop().animate({ opacity: '0' }, { duration: 500 });
 $('.cat3').stop().animate({ opacity: '0' }, { duration: 500 });
 $('.cat4').stop().animate({ opacity: '0' }, { duration: 500 });
}

function cat1() {
 $('.cat1').stop().animate({ opacity: '1' }, { duration: 300 });
}

function cat2() {
 $('.cat2').stop().animate({ opacity: '1' }, { duration: 300 });
}

function cat3() {
 $('.cat3').stop().animate({ opacity: '1' }, { duration: 300 });
}

function cat4() {
 $('.cat4').stop().animate({ opacity: '1' }, { duration: 300 });
}


// FAQs Page - Answer expandables
$(document).ready(function () {
 $('.answer').hide();
});

function clearanswers() {
 $('.answer').hide();
}

function ga1() {
 if ($('#ga1').css('display') != 'none') {
  $('#ga1').fadeOut();
 } else {
  $('#ga1').fadeIn();
 }
}

function ga2() {
 if ($('#ga2').css('display') != 'none') {
  $('#ga2').fadeOut();
 } else {
  $('#ga2').fadeIn();
 }
}

function ga3() {
 if ($('#ga3').css('display') != 'none') {
  $('#ga3').fadeOut();
 } else {
  $('#ga3').fadeIn();
 }
}

function ga4() {
 if ($('#ga4').css('display') != 'none') {
  $('#ga4').fadeOut();
 } else {
  $('#ga4').fadeIn();
 }
}

function ga5() {
 if ($('#ga5').css('display') != 'none') {
  $('#ga5').fadeOut();
 } else {
  $('#ga5').fadeIn();
 }
}

function ga6() {
 if ($('#ga6').css('display') != 'none') {
  $('#ga6').fadeOut();
 } else {
  $('#ga6').fadeIn();
 }
}

function ga7() {
 if ($('#ga7').css('display') != 'none') {
  $('#ga7').fadeOut();
 } else {
  $('#ga7').fadeIn();
 }
}

function ga8() {
 if ($('#ga8').css('display') != 'none') {
  $('#ga8').fadeOut();
 } else {
  $('#ga8').fadeIn();
 }
}

function ga9() {
    if ($('#ga9').css('display') != 'none') {
        $('#ga9').fadeOut();
    } else {
        $('#ga9').fadeIn();
    }
}

function ga10() {
    if ($('#ga10').css('display') != 'none') {
        $('#ga10').fadeOut();
    } else {
        $('#ga10').fadeIn();
    }
}

function ga11() {
    if ($('#ga11').css('display') != 'none') {
        $('#ga11').fadeOut();
    } else {
        $('#ga11').fadeIn();
    }
}

function ca1() {
 if ($('#ca1').css('display') != 'none') {
  $('#ca1').fadeOut();
 } else {
  $('#ca1').fadeIn();
 }
}

function ca2() {
 if ($('#ca2').css('display') != 'none') {
  $('#ca2').fadeOut();
 } else {
  $('#ca2').fadeIn();
 }
}

function ca3() {
 if ($('#ca3').css('display') != 'none') {
  $('#ca3').fadeOut();
 } else {
  $('#ca3').fadeIn();
 }
}

function ca4() {
 if ($('#ca4').css('display') != 'none') {
  $('#ca4').fadeOut();
 } else {
  $('#ca4').fadeIn();
 }
}

function ca5() {
 if ($('#ca5').css('display') != 'none') {
  $('#ca5').fadeOut();
 } else {
  $('#ca5').fadeIn();
 }
}

function ca6() {
 if ($('#ca6').css('display') != 'none') {
  $('#ca6').fadeOut();
 } else {
  $('#ca6').fadeIn();
 }
}

function ca7() {
 if ($('#ca7').css('display') != 'none') {
  $('#ca7').fadeOut();
 } else {
  $('#ca7').fadeIn();
 }
}

function ca8() {
 if ($('#ca8').css('display') != 'none') {
  $('#ca8').fadeOut();
 } else {
  $('#ca8').fadeIn();
 }
}

function ca9() {
 if ($('#ca9').css('display') != 'none') {
  $('#ca9').fadeOut();
 } else {
  $('#ca9').fadeIn();
 }
}

function ca10() {
 if ($('#ca10').css('display') != 'none') {
  $('#ca10').fadeOut();
 } else {
  $('#ca10').fadeIn();
 }
}

function ca11() {
 if ($('#ca11').css('display') != 'none') {
  $('#ca11').fadeOut();
 } else {
  $('#ca11').fadeIn();
 }
}

function ca12() {
 if ($('#ca12').css('display') != 'none') {
  $('#ca12').fadeOut();
 } else {
  $('#ca12').fadeIn();
 }
}

function ca13() {
 if ($('#ca13').css('display') != 'none') {
  $('#ca13').fadeOut();
 } else {
  $('#ca13').fadeIn();
 }
}

function ca14() {
    if ($('#ca14').css('display') != 'none') {
        $('#ca14').fadeOut();
    } else {
        $('#ca14').fadeIn();
    }
}

function ca15() {
    if ($('#ca15').css('display') != 'none') {
        $('#ca15').fadeOut();
    } else {
        $('#ca15').fadeIn();
    }
}

function ca16() {
    if ($('#ca16').css('display') != 'none') {
        $('#ca16').fadeOut();
    } else {
        $('#ca16').fadeIn();
    }
}

function ca17() {
    if ($('#ca17').css('display') != 'none') {
        $('#ca17').fadeOut();
    } else {
        $('#ca17').fadeIn();
    }
}

function ca18() {
    if ($('#ca18').css('display') != 'none') {
        $('#ca18').fadeOut();
    } else {
        $('#ca18').fadeIn();
    }
}

function _ca1() {
 if ($('#_ca1').css('display') != 'none') {
  $('#_ca1').fadeOut();
 } else {
  $('#_ca1').fadeIn();
 }
}

function _ca2() {
 if ($('#_ca2').css('display') != 'none') {
  $('#_ca2').fadeOut();
 } else {
  $('#_ca2').fadeIn();
 }
}

function _ca3() {
 if ($('#_ca3').css('display') != 'none') {
  $('#_ca3').fadeOut();
 } else {
  $('#_ca3').fadeIn();
 }
}

function _ca4() {
 if ($('#_ca4').css('display') != 'none') {
  $('#_ca4').fadeOut();
 } else {
  $('#_ca4').fadeIn();
 }
}

function _ca5() {
 if ($('#_ca5').css('display') != 'none') {
  $('#_ca5').fadeOut();
 } else {
  $('#_ca5').fadeIn();
 }
}

function _ca6() {
 if ($('#_ca6').css('display') != 'none') {
  $('#_ca6').fadeOut();
 } else {
  $('#_ca6').fadeIn();
 }
}

function _ca7() {
 if ($('#_ca7').css('display') != 'none') {
  $('#_ca7').fadeOut();
 } else {
  $('#_ca7').fadeIn();
 }
}

function _ca8() {
 if ($('#_ca8').css('display') != 'none') {
  $('#_ca8').fadeOut();
 } else {
  $('#_ca8').fadeIn();
 }
}

function _ca9() {
 if ($('#_ca9').css('display') != 'none') {
  $('#_ca9').fadeOut();
 } else {
  $('#_ca9').fadeIn();
 }
}

function _ca10() {
 if ($('#_ca10').css('display') != 'none') {
  $('#_ca10').fadeOut();
 } else {
  $('#_ca10').fadeIn();
 }
}

function _ca11() {
 if ($('#_ca11').css('display') != 'none') {
  $('#_ca11').fadeOut();
 } else {
  $('#_ca11').fadeIn();
 }
}

function _ca12() {
 if ($('#_ca12').css('display') != 'none') {
  $('#_ca12').fadeOut();
 } else {
  $('#_ca12').fadeIn();
 }
}

function _ca13() {
 if ($('#_ca13').css('display') != 'none') {
  $('#_ca13').fadeOut();
 } else {
  $('#_ca13').fadeIn();
 }
}

function _ca14() {
    if ($('#_ca14').css('display') != 'none') {
        $('#_ca14').fadeOut();
    } else {
    $('#_ca14').fadeIn();
    }
}

function _ca15() {
    if ($('#_ca15').css('display') != 'none') {
        $('#_ca15').fadeOut();
    } else {
    $('#_ca15').fadeIn();
    }
}

function _ca16() {
    if ($('#_ca16').css('display') != 'none') {
        $('#_ca16').fadeOut();
    } else {
    $('#_ca16').fadeIn();
    }
}

function _ca17() {
    if ($('#_ca17').css('display') != 'none') {
        $('#_ca17').fadeOut();
    } else {
    $('#_ca17').fadeIn();
    }
}

function _ca18() {
    if ($('#_ca18').css('display') != 'none') {
        $('#_ca18').fadeOut();
    } else {
        $('#_ca18').fadeIn();
    }
}

function ta1() {
 if ($('#ta1').css('display') != 'none') {
  $('#ta1').fadeOut();
 } else {
  $('#ta1').fadeIn();
 }
}

function ta2() {
 if ($('#ta2').css('display') != 'none') {
  $('#ta2').fadeOut();
 } else {
  $('#ta2').fadeIn();
 }
}

function ta3() {
 if ($('#ta3').css('display') != 'none') {
  $('#ta3').fadeOut();
 } else {
  $('#ta3').fadeIn();
 }
}

function ta4() {
 if ($('#ta4').css('display') != 'none') {
  $('#ta4').fadeOut();
 } else {
  $('#ta4').fadeIn();
 }
}

function ta5() {
 if ($('#ta5').css('display') != 'none') {
 $('#ta5').fadeOut();
 } else {
  $('#ta5').fadeIn();
 }
}

function ta6() {
 if ($('#ta6').css('display') != 'none') {
  $('#ta6').fadeOut();
 } else {
  $('#ta6').fadeIn();
 }
}

function ta7() {
 if ($('#ta7').css('display') != 'none') {
  $('#ta7').fadeOut();
 } else {
  $('#ta7').fadeIn();
 }
}

function ta8() {
    if ($('#ta8').css('display') != 'none') {
        $('#ta8').fadeOut();
    } else {
        $('#ta8').fadeIn();
    }
}

function _ta1() {
 if ($('#_ta1').css('display') != 'none') {
  $('#_ta1').fadeOut();
 } else {
  $('#_ta1').fadeIn();
 }
}

function _ta2() {
 if ($('#_ta2').css('display') != 'none') {
  $('#_ta2').fadeOut();
 } else {
  $('#_ta2').fadeIn();
 }
}

function _ta3() {
 if ($('#_ta3').css('display') != 'none') {
  $('#_ta3').fadeOut();
 } else {
  $('#_ta3').fadeIn();
 }
}

function _ta4() {
 if ($('#_ta4').css('display') != 'none') {
  $('#_ta4').fadeOut();
 } else {
  $('#_ta4').fadeIn();
 }
}

function _ta5() {
    if ($('#_ta5').css('display') != 'none') {
        $('#_ta5').fadeOut();
    } else {
        $('#_ta5').fadeIn();
    }
}

function _ta6() {
    if ($('#_ta6').css('display') != 'none') {
        $('#_ta6').fadeOut();
    } else {
        $('#_ta6').fadeIn();
    }
}

function _ta7() {
    if ($('#_ta7').css('display') != 'none') {
        $('#_ta7').fadeOut();
    } else {
        $('#_ta7').fadeIn();
    }
}

function _ta8() {
    if ($('#_ta8').css('display') != 'none') {
        $('#_ta8').fadeOut();
    } else {
        $('#_ta8').fadeIn();
    }
}

function ia1() {
 if ($('#ia1').css('display') != 'none') {
  $('#ia1').fadeOut();
 } else {
  $('#ia1').fadeIn();
 }
}

function ia2() {
 if ($('#ia2').css('display') != 'none') {
  $('#ia2').fadeOut();
 } else {
  $('#ia2').fadeIn();
 }
}

function ia3() {
 if ($('#ia3').css('display') != 'none') {
  $('#ia3').fadeOut();
 } else {
  $('#ia3').fadeIn();
 }
}

function ia4() {
 if ($('#ia4').css('display') != 'none') {
  $('#ia4').fadeOut();
 } else {
  $('#ia4').fadeIn();
 }
}

function ia5() {
 if ($('#ia5').css('display') != 'none') {
  $('#ia5').fadeOut();
 } else {
  $('#ia5').fadeIn();
 }
}

function ia6() {
 if ($('#ia6').css('display') != 'none') {
  $('#ia6').fadeOut();
 } else {
  $('#ia6').fadeIn();
 }
}

function ia7() {
 if ($('#ia7').css('display') != 'none') {
  $('#ia7').fadeOut();
 } else {
  $('#ia7').fadeIn();
 }
}

function ia8() {
 if ($('#ia8').css('display') != 'none') {
  $('#ia8').fadeOut();
 } else {
  $('#ia8').fadeIn();
 }
}

function ia9() {
 if ($('#ia9').css('display') != 'none') {
  $('#ia9').fadeOut();
 } else {
  $('#ia9').fadeIn();
 }
}

function ia10() {
 if ($('#ia10').css('display') != 'none') {
  $('#ia10').fadeOut();
 } else {
  $('#ia10').fadeIn();
 }
}

function _ia1() {
 if ($('#_ia1').css('display') != 'none') {
  $('#_ia1').fadeOut();
 } else {
  $('#_ia1').fadeIn();
 }
}


function _ia2() {
 if ($('#_ia2').css('display') != 'none') {
  $('#_ia2').fadeOut();
 } else {
  $('#_ia2').fadeIn();
 }
}

function _ia3() {
 if ($('#_ia3').css('display') != 'none') {
  $('#_ia3').fadeOut();
 } else {
  $('#_ia3').fadeIn();
 }
}

function _ia4() {
 if ($('#_ia4').css('display') != 'none') {
  $('#_ia4').fadeOut();
 } else {
  $('#_ia4').fadeIn();
 }
}

function _ia5() {
    if ($('#_ia5').css('display') != 'none') {
        $('#_ia5').fadeOut();
    } else {
        $('#_ia5').fadeIn();
    }
}

function _ia6() {
    if ($('#_ia6').css('display') != 'none') {
        $('#_ia6').fadeOut();
    } else {
        $('#_ia6').fadeIn();
    }
}

function _ia7() {
    if ($('#_ia7').css('display') != 'none') {
        $('#_ia7').fadeOut();
    } else {
        $('#_ia7').fadeIn();
    }
}

function _ia8() {
    if ($('#_ia8').css('display') != 'none') {
        $('#_ia8').fadeOut();
    } else {
        $('#_ia8').fadeIn();
    }
}

function _ia9() {
    if ($('#_ia9').css('display') != 'none') {
        $('#_ia9').fadeOut();
    } else {
        $('#_ia9').fadeIn();
    }
}

function _ia10() {
    if ($('#_ia10').css('display') != 'none') {
        $('#_ia10').fadeOut();
    } else {
        $('#_ia10').fadeIn();
    }
}


// Google +1
(function() {
 var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
 po.src = 'https://apis.google.com/js/plusone.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
