$(function () {

	$("a.photozoom").fancybox({
		'overlayShow'   : true,
		'titlePosition' : 'inside',
		'transitionIn'  : 'elastic',
		'transitionOut' : 'elastic'
	});


	$('#box_navigation .news_header2 td.w a').each(
		function () {
			var self = this
			$(this)
				.parents('.news_header2')
				.addClass('hoverable').click(function () {
					window.location = $(self).attr('href')
				})
				.hover(
					function () {
						$(this).addClass('hover')
					},
					function () {
						$(this).removeClass('hover')
					}
				)
		}
	)
})

$(function () {
	var p = $("a:contains('F4/7')").parent().parent().parent().parent().parent()
	p.css({'position': 'relative'})
	var i = $('<span>Dom wykończony &quot;pod klucz&quot;</span>').addClass('key').css({'position': 'absolute', width: 170, left: 210, top: '-5px'}).appendTo(p).hide()
	p.hover(function () { i.show() }, function () { i.hide() })
})
