/*
 * TF FLEX
 * show details on objectShortInfo
 */
// hide Deatils and popUpClass
/*
 * 
 * 
 */
//$('.objectShortInfo .detail_noJS').hide().addClass('detail');
$(document).ready( function() {
/*	$('.detail .closeButton a').click( function(event) {
		// prevent deafult brwoser behav. jump anchor
		event.preventDefault();
		$(this).parent().parent().hide();
	});
	$('.detail').click( function(event) {
		$(this).hide();
	});*/
	
	$('.grdList_head .index ul a').each( function(i) {
		// remeber indices local
		var myAnchor = $(this).attr('href');
		var myAnchor = '#' + myAnchor.split('#')[1];
		$(this).attr('name', myAnchor).attr('class', 'stateOff');
	}).click( function(event) {
		event.preventDefault();
		$('.grdList_head .section:visible').hide();
		var myA = $(this).attr('name');
		var myB = $(this).attr('name') + ':visible';
		if ($(this).attr('class') == 'stateOff') {
			$('.objectShortInfo .index ul a').addClass('stateOff').removeClass('stateOn');
			$(this).addClass('stateOn').removeClass('stateOff');
			$(myA).show();
		} else {
			$(this).addClass('stateOff').removeClass('stateOn');
			$(myA).hide();
		}
	});
});