// FRIZERAJ.HR JavaScript Document

$(document).ready(function(){
  $('a[href*=#]').click(function() {
 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
 && location.hostname == this.hostname) {
   var $target = $(this.hash);
   $target = $target.length && $target
   || $('[name=' + this.hash.slice(1) +']');
   if ($target.length) {
  var targetOffset = $target.offset().top;
  $('html,body')
  .animate({scrollTop: targetOffset}, 1000);
    return false;
   }
 }
  });
});


jQuery(document).ready(function() {
	$('#slideshowHolder').jqFancyTransitions({
		effect: 'curtain',
		width: 590,
		height: 392,
		delay: 5000
	});
	$('.tooltip').tooltip({ 
		track: true, 
		delay: 0, 
		showURL: false, 
		showBody: " - ", 
		fade: 250 
	});

	$("a.myfancybox").fancybox({
		titleShow: false
	});

	$("#panorama_start").fancybox({
		'width'				: 800,
		'height'			: 620,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});

	$("#mapa").fancybox({
		'width'				: 590,
		'height'			: 400,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});

});

