﻿// Content expander jQuery
$(document).ready(function() {

$("div.hideCExpander").css("display","none");  

    $("div.expander").click(function() {
        if ($(this).hasClass("expanderHalfClosed")) {
            $(this).removeClass("expanderHalfClosed");
            $(this).addClass("expanderHalfOpen");
        }
        else {
            $(this).removeClass("expanderHalfOpen");
            $(this).addClass("expanderHalfClosed");
        }
    });

    $("div.expanderFull").click(function() {
        if ($(this).hasClass("expanderFullClosed")) {
            $(this).removeClass("expanderFullClosed");
            $(this).addClass("expanderFullOpen");
        }
        else {
            $(this).removeClass("expanderFullOpen");
            $(this).addClass("expanderFullClosed");
        }
    });

 $("div.expanderFull2").click(function() {
        if ($(this).hasClass("expanderFullClosed2")) {
            $(this).removeClass("expanderFullClosed2");
            $(this).addClass("expanderFullOpen2");
        }
        else {
            $(this).removeClass("expanderFullOpen2");
            $(this).addClass("expanderFullClosed2");
        }
    });
 
  $("div.expanderFull4").click(function() {
        if ($(this).hasClass("expanderFullClosed4")) {
            $(this).removeClass("expanderFullClosed4");
            $(this).addClass("expanderFullOpen4");
        }
        else {
            $(this).removeClass("expanderFullOpen4");
            $(this).addClass("expanderFullClosed4");
        }
    });
  
    $("div.expanderFull6").click(function() {
        if ($(this).hasClass("expanderFullClosed6")) {
            $(this).removeClass("expanderFullClosed6");
            $(this).addClass("expanderFullOpen6");
        }
        else {
            $(this).removeClass("expanderFullOpen6");
            $(this).addClass("expanderFullClosed6");
        }
    });

});

