$(function(){
    $('#references').bxSlider({
        mode: 'slide',
        auto: 'true',
        speed: 1000,
        pause: 5500,
        width: 200,
        wrapper_class: 'referencesCont',
        stopOnHover: true,
        cloneContentCount: 1
    });
});
$(function(){
    $("a#zone_planner").click(function(){
    	window.open(this.href,'Zónový plánovač','height=590,width=765,resizable=no,scrollbars=yes');
    	return false;
    });
});

$(function() {
	var tabsAPI = $("#tabs").tabs();
	
	$('map area').click(function(){
		if ($(this).is('[href^=#]')) {
			myLink = $('#tabs a[href="' + $(this).attr('href') + '"]');
			if (myLink.length > 0) {
				index = $('#tabs a').index(myLink[0]);
				tabsAPI.tabs('select', index);
			}
			return false;
		}
	});
	
});
