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



// Add the slideshow providing the controlbar and the thumbstrip
hs.addSlideshow({
	slideshowGroup: 'group1',
	interval: 5000,
	repeat: true,
	useControls: false,
	thumbstrip: {
		position: 'below',
		mode: 'horizontal',
		relativeTo: 'expander'
	}
});
 
// Options for the in-page items
var inPageOptions = {
	slideshowGroup: 'group1',
	outlineType: null,
	allowSizeReduction: false,
	wrapperClassName: 'in-page controls-in-heading',
	thumbnailId: 'gallery-area',
	useBox: true,
	width: 600,
	height: 400,
	targetX: 'gallery-area 1px',
	targetY: 'gallery-area 1px',
	autoplay: false

}
 
//]]>

  	$(document).ready(function(){
							   
//Load $('div#step2').load('step2-ccinfo.html'); $('div#step1').load('step1-datepicker.html');

$('a#btnstep1').click(function() {
  	  $("div#step1").hide(5);
	  $("div#step2").show(5);
	  $("#bookingtabs1").hide(5);
	  $("#bookingtabs2").show(5);
});
$('a#btnstep2bck').click(function() {
  	  $("div#step2").hide(5);
	  $("div#step1").show(5);
	  $("#bookingtabs2").hide(5);
	  $("#bookingtabs1").show(5);
});
$('a#btnstep2').click(function() {
  	  $("div#step2").hide(5);
	  $("div#step3success").show(5);
	  $("#bookingtabs2").hide(5);
	  $("#bookingtabs3").show(5);
});


//Carousel
jQuery('#mycarousel').jcarousel();
	
//Tooltip		
	  $(function() {
		$('.nsauto').tipsy({
		gravity: $.fn.tipsy.autoNS,
		fade: true}); 
	  });

	  
//Slider start 	
		$("#featured > ul").tabs({fx:{opacity:'toggle', duration:250}}).tabs("rotate", 8000, true);
		
//Apartment Slider start 	
		$("#apslider > ul").tabs({fx:{opacity:'toggle', duration:250}}).tabs("rotate", 8000, true);

		
//Language select	
    $("#languages").hover(function () {
      $(this).addClass("bck");
	  $("li.en").show(50);
	  $("li.de").show(50);
    }, function () {
      $(this).removeClass("bck"); 
	  $("li.en").hide(100);
	  $("li.de").hide(50); 
    });	

//Stupid IE z-index 
	$(function() {
	var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
	});
	
	$(function() {
	var zIndexNumber = 1600;
	$('#featured div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
	});
	
	$(function() {
	var zIndexNumber = 1000;
	$('#contentleft div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
	});

	$(function() {
	var zIndexNumber = 1000;
	$('#footerwrap div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
	});
		
/* Dropdown */
	$("ul.topnav li span").hover(function() { 

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

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


		}).hover(function() { 
			$(this).addClass("subhover"); 
		}, function(){	
			$(this).removeClass("subhover"); 
		});
	
	//hide img alt tags from displaying
	jQuery("img").each(function(){
                jQuery(this).removeAttr('alt');
                }) 		
	//hide img alt tags from displaying
	jQuery("#contentleftplain h6 a").each(function(){
                jQuery(this).removeAttr('title');
                }) 
	//hide img alt tags from displaying
	jQuery("#nav a").each(function(){
                jQuery(this).removeAttr('title');
                }) 
});//jQuery end 
	
	
