jQuery(document).ready(function($) {
	$("input[type=\"text\"]").focus(function () {
		if ($(this).val() === $(this).attr("title")) {
			$(this).val("");
		};
	}).blur(function () {
		if ($(this).val() === "") {
			$(this).val($(this).attr("title"));
		};
	});
	if($('#map_canvas').length){
			initMap();
		};
	if($('.teasers').length){
		initClickBlock();
	};
});
function initMap() {
	var latlng = new google.maps.LatLng(53.246048, 6.52852);
	var myOptions = {
		zoom: 12,
		center: latlng,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	};
	var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
	var marker = new google.maps.Marker({
		position: latlng, 
		map: map
	});
}
function initClickBlock(){
	el = $('.teasers li')
	el.css("cursor", "pointer");
	el.each(function(){
		$('.teasers h2 a').click(function(event) {
			event.preventDefault();
		});
		$(this).hover(
			function () {
				$(this).addClass('hover');
			},
			function () {
				$(this).removeClass('hover');
			}
		)
	});
};
