$('div.TabContent img.group').live('click', function(){
			closeObjects();
			$(this).next().next('div.subLevel').slideDown('fast');
			$(this).next('a').removeClass('group').addClass('open');
			$(this).removeClass('group').addClass('open');
			return false;
		});


$('div.TabContent img.open').live('click', function(){
    $(this).next().next('div.subLevel').slideUp('fast');
    $(this).next('a').removeClass('open').addClass('group');
    $(this).removeClass('open').addClass('group');
    return false;
});


$('div.TabContent a.biglink').live('click', function(){
    if ($(this).hasClass('open')) {
            $(this).removeClass('open').addClass('group');
            $(this).next('div.subLevel').slideUp('fast');
            $(this).prev('img').removeClass('open').addClass('group');
    } else if ($(this).hasClass('group')){
            closeObjects();
            $(this).removeClass('group').addClass('open');
            $(this).next('div.subLevel').slideDown('fast');
            $(this).prev('img').removeClass('group').addClass('open');
    }
    return false;
});

var closeObjects = function(){
	$('#objLayer').find('div.subLevel').slideUp('fast');
	$('#objLayer').find('img.open').removeClass('open').addClass('group');
	$('#objLayer').find('a.open').removeClass('open').addClass('group');
    $('#objLayer').find('div.subLevel input:checkbox').attr('checked', false);
}


/*
$('ul.map_tabs_left li').live('click',function(){
			$(this).parent().find('li').removeClass('current');
			$(this).addClass('current');
			var selTab = $(this).find('a').attr('href').replace('#', '');
			$(this).parents('div.rel').find('div.TabContent').hide().filter('#'+selTab).show();

			if (selTab == 'dirLayer'){
				var findValue = $('#findfield').val();
				if (findValue != lang_const.default_place_text) $('#textfield0').val(findValue);
			}

			return false;
		});
*/
$('.subLevel input:checkbox').change(function(){
                        if ($(this).is(':checked')) {
                                $(this).attr('checked', true);
                        }
                        else {
                            	$(this).removeAttr('checked', false);
			}
			return false;
		});

$('div.DropDownElementMap a.dd_button').live('click', function(){
			$('div.ContentBlock').css({'z-index':'100'});
			$(this).parents('div.ContentBlock').css({'z-index':'110'});
			$(this).parent().find('div.DropDownListMap').show().addClass('activePopUp');
			return false;
		});

//$('div.DropDownElementMap div.DropDownListMap li a').live('click',function(){
$('div.DropDownElementMap div.DropDownTitleMap').live('click',function(){
        $(this).parents('div.DropDownElementMap').find('font').text($(this).text());
        $(this).parents('div.DropDownListMap').hide();
        if (!$(this).parent().parent().parent().hasClass('href_action')){
                return false;
        }
});




