// JavaScript Document
jQuery(document).ready(function () {

	jQuery("div.break-hide").hide();
	
    var linkId;
    var contentHeights = new Array();
    var contentCounter = 1;
    var str;
	
    jQuery('.friday-content').each(function (index) {
        contentHeights[contentCounter] = jQuery(this).height();
        contentCounter++;
    });
	
    jQuery('.friday-content').css({
        height: '0px',
        overflow: 'hidden',
        margin: '0px 10px'
    });

    jQuery('a.slide-cont').click(function () {
        linkId = jQuery(this).attr('rel');
        jQuery('.friday-content').animate({
            height: '0px'
        },
        500);
		jQuery('.show').removeClass('show');
        if (jQuery('#' + linkId).hasClass('.show')) {
            jQuery('.show').removeClass('show');
        }

        else {
            jQuery('#' + linkId).addClass('show');
            str = linkId.replace('content-', '');
            jQuery('#' + linkId).animate({
                height: contentHeights[str] + 'px'
            },
            500);

        }
        return false

    });
});