$(function() {

	$(document).pngFix(); 

	$('a#kontakti').click(function(e) {
		$.modal('<iframe src="' + $(this).attr('href') + '" frameborder="0" style="width:100%;height:570px;border:1px solid #0261a0;background-color:#0261a0;"></iframe>');
		return false;
	});
	

	$("ul.sf-menu").superfish().find('ul').bgIframe({opacity:false}); 
	
	$(".centralni-sadrzaj .content .objekt").mouseenter(function() {
		 $(this).addClass("hover-objekt");
	});
	
	$(".centralni-sadrzaj .content .objekt").mouseleave(function() {
		 $(this).removeClass("hover-objekt");
	});
	
	$('a[rel=lightbox]').lightBox();
	
 	$('a.ispis').click(function() {
		openPrint();
		return false;
	}); 
	
	$('a.e-mail').click(function(e) {
		$.modal('<iframe src="kontakti/" frameborder="0" style="width:100%;height:570px;border:1px solid #0261a0;background-color:#0261a0;"></iframe>');
		return false;
	});
	
	
});


function openPrint() {
	var link = $('a.ispis').attr("href");
 popupWin = window.open(link, 'open_window', 'scrollbars, resizable, dependent, width=800, height=550, left=0, top=0')
 }


