
function toAnchor(targetid) {
	$(function() {

		var targetOffset;

		if (targetid != undefined) {
			targetOffset = $('#' + targetid ).offset().top;
		} else {
			targetOffset = 0;
		}

		$('html,body').animate({ scrollTop: targetOffset }, 'fast');

		return false;
	});
}



$(document).ready(function() {
	$('a.mapOpen').click(function(){

		var place = $(this).attr('rel');

		openH = 530;

		if ($(this).hasClass('opened')) {
			hSize = 40;
		}else {
			hSize = openH;
		}

		$('#'+ place).animate({height:hSize}, 'fast');
		$(this).toggleClass('opened');
		return false;
	});


	$('#flow-blog').mouseenter(function(e) {
		$('#flow-box').css({"width":"209px"});
		$("#flow-blog-box").stop().animate({
			height:"417px"
		},200);
	});
	$('#container').mouseenter(function(e) {
		$("#flow-blog-box").stop().animate({
			height:"0px"
		},200,function() {
			$('#flow-box').css({"width":"33px"});
		});
	});

});


