﻿jQuery.noConflict();

var lasttabclicked = null;
jQuery(document).ready(function() {

    //link click mechanism - open content
    jQuery(".tablinkopencontent").click(function() {

        //hide the link
        jQuery(this).hide();

        //show the content associated
        var teaserDiv = jQuery(this).parent().find(".teaserContent");
        teaserDiv.hide();
        var descriptionDiv = jQuery(this).parent().find(".reasonContent");
        descriptionDiv.show();
        var showLink = jQuery(this).parent().find(".tablinkclosecontent");
        showLink.show();

    });

    //link click mechanism - open content
    jQuery(".tablinkclosecontent").click(function() {

        //hide the link
        jQuery(this).hide();

        //show the content associated
        var teaserDiv = jQuery(this).parent().find(".reasonContent");
        teaserDiv.hide();
        var descriptionDiv = jQuery(this).parent().find(".teaserContent");
        descriptionDiv.show();
        var hideLink = jQuery(this).parent().find(".tablinkopencontent");
        hideLink.show();
    });
}); //End document ready
