
function office_over(office_id) {
	$('#brands_all').hide();
	$('#brands_' + office_id).show();
	$('#map_' + office_id + '_label').removeClass('map_label');
	$('#map_' + office_id + '_label').addClass('map_label_active');
	$('#map_' + office_id + '_mark').removeClass('map_mark');
	$('#map_' + office_id + '_mark').addClass('map_mark_active');
}

function office_out(office_id) {
	$('#brands_' + office_id).hide();
	$('#brands_all').show();
	$('#map_' + office_id + '_label').removeClass('map_label_active');
	$('#map_' + office_id + '_label').addClass('map_label');
	$('#map_' + office_id + '_mark').removeClass('map_mark_active');
	$('#map_' + office_id + '_mark').addClass('map_mark');
}


$(document).ready(function() {

    $('#templatemodule_search_name').focus(function() {
        if ($('#templatemodule_search_name').val() == 'Volltextsuche') {
            $('#templatemodule_search_name').val('');
            $('#templatemodule_search_name').css('color','#000000');
        }
    });

    $('#templatemodule_search_name').blur(function() {
        if ($('#templatemodule_search_name').val() == '') {
            $('#templatemodule_search_name').val('Volltextsuche');
            $('#templatemodule_search_name').css('color','#666666');
        }
    });

    $('.input_date').numeric({allow:"."});
    $('.input_integer').numeric({});

    $(".fancy_gallery").fancybox({
        'zoomSpeedIn': 300,
        'zoomSpeedOut': 300
    });

    $(".iframe_servicelister").fancybox({
        'zoomSpeedIn': 300,
        'zoomSpeedOut': 300,
        'frameWidth': 800,
        'frameHeight':500
    });

    $(".iframe_tuev").fancybox({
        'zoomSpeedIn': 300,
        'zoomSpeedOut': 300,
        'frameWidth': 580,
        'frameHeight':450
    });

    $(".bild_popup").fancybox({
        'zoomSpeedIn': 300,
        'zoomSpeedOut': 300
    });

    $('.animation').innerfade({
        speed: 2000,
        timeout: 6000,
        type: 'random',
        containerheight: '210px'
    });

    $('.tooltip_target').mouseenter(function() {
		id = this.id;
		//$('#'+id+'_handler').addClass('tooltip_target_handler_active');
		$('#'+id+'_content').fadeIn();
	});

	$('.tooltip_target').mouseleave(function() {
		id = this.id;
		//$('#'+id+'_handler').removeClass('tooltip_target_handler_active');
		$('#'+id+'_content').fadeOut();
	});

	$(".iframe_link").fancybox({
    	'zoomSpeedIn': 300,
        'zoomSpeedOut': 300,
        'frameWidth': 980,
        'frameHeight':550
    });



});
