/* modified by Guido Gabriel Block */

$(document).ready(function() {

	/* navstrips header and footer */
	
	var actuell_header; // check which menupoint is activated
	var unfocus_header; // store the menupoint to identify after
	
	var actuell_footer; // check which menupoint is activated
	var unfocus_footer; // store the menupoint to identify after
	
	// header
	$('#triggerCatID').click(function() {
		$(this).toggleClass('focus');
		if(actuell_header == 'triggerPageID') {
			$(unfocus_header).toggleClass('focus');
			$('#headerStrip2').hide();
		}
		$('#headerStrip').animate({ height: 'toggle', opacity: '100'}, 'fast');
		actuell_header = 'triggerCatID';
		unfocus_header = this;
		return false;
	});
	
	$('#triggerPageID').click(function() {
		$(this).toggleClass('focus');
		if(actuell_header == 'triggerCatID') {
			$(unfocus_header).toggleClass('focus');
			$('#headerStrip').hide();
		}
		$('#headerStrip2').animate({ height: 'toggle', opacity: '100'}, 'fast');
		actuell_header = 'triggerPageID';
		unfocus_header = this;
		return false;
	});

	// footer
	$('#triggerCatID2').click(function() {
		$(this).toggleClass('focus');
		if(actuell_footer == 'triggerPageID2') {
			$(unfocus_footer).toggleClass('focus');
			$('#footerStrip2').hide();
		}
		$('#footerStrip').animate({ height: 'toggle', opacity: '100'}, 'fast');
		actuell_footer = 'triggerCatID2';
		unfocus_footer = this;
		return false;
	});
	
	$('#triggerPageID2').click(function() {
		$(this).toggleClass('focus');
		if(actuell_footer == 'triggerCatID2') {
			$(unfocus_footer).toggleClass('focus');
			$('#footerStrip').hide();
		}
		$('#footerStrip2').animate({ height: 'toggle', opacity: '100'}, 'fast');
		actuell_footer = 'triggerPageID2';
		unfocus_footer = this;
		return false;
	});
});

