//<![CDATA[
hs.graphicsDir = 'http://www.koryna.hr/wp-content/themes/koryna/highslide/graphics/';
hs.transitions = ['fade', 'crossfade'];
hs.restoreCursor = null;
hs.lang.restoreTitle = '';

	hs.registerOverlay({
		thumbnailId: 'thumb2',
		html: '<div class="closebutton"	onclick="return hs.close(this)" title="Zatvori"></div>',
		position: 'top right',
		fade: 2 // fading the semi-transparent overlay looks bad in IE
	});

/* Begin jQuery */
$(document).ready(function(){
	
	$("div#headertopright").click(function() { 
			$("div#radnovrijeme").slideToggle('slow');
			$(this).toggleClass('toggleup');

		});
  	

	$("div#sliderboxleft").hover(function () {
	$('div.mytitle').css('filter', 'alpha(opacity=90)');
	$("div.mytitle").fadeIn('slow');
	}, function () {
	$("div.mytitle").fadeOut('slow');
	});

	$("div#carouselboxleft").hover(function () {
	$('div.mytitle2').css('filter', 'alpha(opacity=90)');
	$("div.mytitle2").fadeIn('slow');
	}, function () {
	 $("div.mytitle2").fadeOut('slow');
	});
	
	$("div#carouselboxleft-k").hover(function () {
	$('div.mytitle2').css('filter', 'alpha(opacity=90)');
	$("div.mytitle2").fadeIn('slow');
	}, function () {
	 $("div.mytitle2").fadeOut('slow');
	});
	
	$("#carouselbox > ul").tabs({fx:{ opacity: "toggle", duration: 250 }});
	$("#carouselbox-k > ul").tabs({fx:{ opacity: "toggle", duration: 250 }});
	
	$("#sliderbox > ul").tabs({fx:{ opacity: "toggle", duration: 250 }}).tabs("rotate", 8000, true);	
	
	
	/* Dropdown */
	$("ul.topnav li span").hover(function() { 

		$(this).parent().find("ul.subnav").slideDown('fast').show(); 

		$(this).parent().hover(function() {
		}, function(){	
			$(this).parent().find("ul.subnav").slideUp('slow');
		});


		}).hover(function() { 
			$(this).addClass("subhover"); 
		}, function(){	
			$(this).removeClass("subhover"); 
		});
	
	/* Dropdown */
	$("ul.topnav li span").hover(function() { 

		$(this).parent().find("ul.subnav2").slideDown('fast').show(); 

		$(this).parent().hover(function() {
		}, function(){	
			$(this).parent().find("ul.subnav2").slideUp('slow');
		});


		}).hover(function() { 
			$(this).addClass("subhover"); 
		}, function(){	
			$(this).removeClass("subhover"); 
		});
	
		
	//Stupid IE z-index 
	$(function() {
	var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
	});
	
	$(function() {
	var zIndexNumber = 1000;
	$('#nfrag-1 div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
	});
	
	$(function() {
	var zIndexNumber = 1000;
	$('#nfrag-2 div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
	});
	
	$(function() {
	var zIndexNumber = 1000;
	$('#nfrag-3 div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
	});
	
	$(function() {
	var zIndexNumber = 1000;
	$('#highslide-container div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
	});
	
	//hide anchor title tags from displaying
	jQuery("img").each(function(){
                jQuery(this).removeAttr('alt');
                })
	jQuery(".kitchencatwrap a").each(function(){
                jQuery(this).removeAttr('title');
                }) 
	//columnize
	$('.mylist').columns({columns: 4});
	$('.model-columns').columns({columns: 4});
	$('.model').columns({
	columns: 2,
	columnClass: 'floatcols2'
	});
	$('.ddsg-wrapper').columns({
	columns: 3,
	columnClass: 'ddsgcols'
	});


	
});//jQuery end 
