
$(document).ready(function(){

	if ($('.prefilled').length>0) {
		$('.prefilled').example(function() {
			return $(this).attr('title');
		});
	}
	
	if ($('.comment-textarea').length>0) {
		$('.comment-textarea').css('resize', 'none');
	}

	if ($('#pitanja').length > 0) {
		$('#pitanja').validate();
	}
	
	$(".external").click(function(){
		window.open(this.href);
		return false;
	});
	
	if($('.ngg-galleryoverview').length > 0) {
		$('.ngg-galleryoverview').children().hover(function(){
			$(this).siblings().stop().fadeTo(300,0.6);
			$('.slideshowlink').stop();
			$('.ngg-navigation').stop();
		}, function() {
			$(this).siblings().stop().fadeTo(300,1);
			$('.slideshowlink').stop();
			$('.ngg-navigation').stop();
		});
	}
	
});
