<!--//--><![CDATA[//><!--
				  
// ----- Image Slider INIT -------------------------------------------------------//

		jQuery(document).ready(function($) { 
				var theInt = null;
				var $crosslink, $navthumb;
				var curclicked = 0;
		
			theInterval = function(cur){
				clearInterval(theInt);
			
				if( typeof cur != 'undefined' )
					curclicked = cur;
					$crosslink.removeClass("active-thumb");
					$navthumb.eq(curclicked).parent().addClass("active-thumb");
					$(".stripNav ul li a").eq(curclicked).trigger('click');
					theInt = setInterval(function(){
						$crosslink.removeClass("active-thumb");
						$navthumb.eq(curclicked).parent().addClass("active-thumb");
						$(".stripNav ul li a").eq(curclicked).trigger('click');
						curclicked++;
							if( 3 == curclicked )
								curclicked = 0;
							}, 7000);
					};
		
				$(function(){
					$("#main-photo-slider").codaSlider();
					$navthumb = $(".nav-thumb");
					$crosslink = $(".cross-link");
					$navthumb
				.click(function() {
					var $this = $(this);
					theInterval($this.parent().attr('href').slice(1) - 1);
					return false;
					});
				theInterval();
				});
		});

// ----- IE radio and checkbox margin fix -------------------------------------------------------//
		  
		jQuery(document).ready(function($) { 
			if(jQuery.browser.msie) {
				if(jQuery.browser.version < 8.0 ) {
					$("div.advanced input[@type=radio]").css("margin-left", "-3px");
  	 				$("div.advanced input[@type=radio]").css("margin-top", "-4px");
					$("div.advanced input[@type=checkbox]").css("margin-left", "-3px");
  	 				$("div.advanced input[@type=checkbox]").css("margin-top", "-4px");
  	 				$("div.currencyBox select").css("margin-bottom", "2px");
				}
			}
  		});

// ----- SuperfishMenu Init -------------------------------------------------------//

		jQuery(document).ready(function($){
			$(".nav")
			.superfish({
				animation : { opacity:"false", height:"show", speed:"fast"},
				delay:100
			})
			.find(">li:has(ul)")
				.mouseover(function(){
					$("ul", this).bgIframe({opacity:false});
				})
				.find("a")
					.focus(function(){
						$("ul", $(".nav>li:has(ul)")).bgIframe({opacity:false});
					});
		});
		
// ----- PNG fix  -------------------------------------------------------//
		
		jQuery(document).ready(function() {
				jQuery("div.weatherBox ul").pngFix();
	  				 });  	
		
// ----- Toggle Visibility Of Search Filter -------------------------------------------------------//

		jQuery(document).ready(function() {
            jQuery("a.toggleVisibility").click(
			function() {
			    if (jQuery.cookie('AdvancedFilterExpanded') == 'true')
			    {
			        jQuery("div.advanced").hide();
			        jQuery.cookie('AdvancedFilterExpanded', 'false', { path: '/' });
			    }
				else
				{
				    jQuery("div.advanced").show();
				    jQuery.cookie('AdvancedFilterExpanded', 'true',{ path: '/' });
				}
				return false;
		    });
        });
			
// ----- Toggle Visibility Of Search Filter Advanced -------------------------------------------------------//

		jQuery(document).ready(function(){
			jQuery.each(jQuery("div.col h3.expand").next("ul.show_hide"), 
			function() {
			    jQuery(this).hide();
			    jQuery(this).prev("h3.expand").addClass("open");
			});
			jQuery("div.col h3.expand").click(
				function(){
				    if(jQuery(this).hasClass("open"))
				    {
					    jQuery(this).addClass("close");
					    jQuery(this).removeClass("open");
					    jQuery(this).next("ul.show_hide").show();
					}
					else
					{
					    jQuery(this).addClass("open");
					    jQuery(this).removeClass("close");
					    jQuery(this).next("ul.show_hide").hide();
					}
				});
			}); 
		
// ----- Toggle Visibility Of Object Tabs -------------------------------------------------------//		
		
		jQuery(document).ready(function(){
			$("div.tabbedContent").hide();
			$("div.col-2").each(function(){
					$(this).children("div.tabbedContent:first").show();
					});
			$("ul.tabs").each(function(){
				$(this).children("li:first").children("a").addClass("selected");
			});
			$("ul.tabs a").click(function(){
				var isTabbed = jQuery(this).attr("rel");
				if (isTabbed.length > 0) {
					$(this).parent().parent().children("li").children("a").removeClass("selected");
					$(this).addClass("selected");
					$(this).parent().parent().next().children("div.col-2").children("div.tabbedContent").hide();
					var content_show = $(this).attr("rel");
					$(this).parent().parent().next().children("div.col-2").children("div." + content_show).show();
					return false;
				}
				else {
					var url = $("ul.tabs a").attr("href");
					var tgt = $("ul.tabs a").attr("target");
       					if( url ) {
							if (tgt == "_blank") {
							window.open(url);
							}
						else {
							location.href = url;
            				return false;
							}
        				}
						return true;
					}
			});
		});
		
		 // ----- Open tab link as page ----- I know, I know, big usability issue :( --------// 
		//$("ul.tabs a.extLink").click(function(){     // ----- Open tab link as page ----- I know, I know, big usability issue :( --------// 
//				var url = $("ul.tabs a.extLink").attr("href");
//				var tgt = $("ul.tabs a.extLink").attr("target");
//       				if( url ) {
//						if (tgt == "_blank") {
//							window.open(url);
//							}
//						else {
//							location.href = url;
//            				return false;
//							}
//        						}
//       							 return true;
//							});
		
// ----- Toggle Visibility Of Object Tables -------------------------------------------------------//
			jQuery(document).ready(function(){
			jQuery.each(jQuery("div.object h3.tableCaption").next("div.expandable"), function() {
			//jQuery(this).show();
			jQuery(this).prev("h3.tableCaption").addClass("closeTable");
			})
			jQuery("div.object h3.tableCaption").click().toggle(
				function(){
					jQuery(this).addClass("openTable");
					jQuery(this).removeClass("closeTable");
					jQuery(this).next("div.expandable").hide();
					},
				function(){
					jQuery(this).addClass("closeTable");
					jQuery(this).removeClass("openTable");
					jQuery(this).next("div.expandable").show();
					}
					)
			}); 
			
// ----- Toggle Visibility Of Weather Report Cities -------------------------------------------------------//

		jQuery(document).ready(function(){
			jQuery.each(jQuery("div.weatherBox li.showHide"), function() {
			jQuery(this).hide();
			})
			jQuery("div.weatherBox a.toggleAll").click().toggle(
				function(){
					jQuery("div.weatherBox li.showHide").show();
					},
				function(){
					jQuery("div.weatherBox li.showHide").hide();
					}
					)
			}); 
		
// ----- Toggle Visibility Of Guestbook Posting Form -------------------------------------------------------//

		jQuery(document).ready(function(){
			jQuery.each(jQuery("div.guestBoxToolbox div.guestBookPostForm"), function() {
			jQuery(this).hide();
			})
			jQuery("div.guestBoxToolbox p.postButton").click().toggle(
				function(){
					jQuery("div.guestBookPostForm").show();
					},
				function(){
					jQuery("div.guestBookPostForm").hide();
					}
					)
			}); 
		
// ----- Guestbook post tile character limit -------------------------------------------------------//	

		jQuery(document).ready(function(){
			$('input.txtBoxPost').keyup(function() {
				var charLength = $(this).val().length;
					$('em.txtBoxPostCount').html(charLength);
						if($(this).val().length < 1)
						$('em.txtBoxPostCount').html('0');
					});
			});

// ----- Guestbook post content character limit -------------------------------------------------------//	

		jQuery(document).ready(function(){	
		function limitChars(textid, limit, infodiv) {
			var text = $('.'+textid).val();	
			var textlength = text.length;
				if(textlength > limit) {
					//$('#' + infodiv).html('You cannot write more then '+limit+' characters!');
					$('.'+textid).val(text.substr(0,limit));
					return false;
					}
					
				if(textlength < 1) {
				$('.' + infodiv).html('0');
					}			
					
			else {
				$('.' + infodiv).html(textlength);
				return true;
			}
		}

		$(function(){
 			$('.txtAreaPost').keyup(function(){
 				limitChars('txtAreaPost', 255, 'txtAreaPostCount');
 			})
		});
		

			});

// ----- DW -------------------------------------------------------//	
				
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

// ----- ADD THIS CONFIGURATION SETTINGS -------------------------------------------------------//	

	addthis_pub             = 'webstudio365'; 
	addthis_brand           = 'Croatiabooking.info';
	addthis_options         = 'favorites, email, digg, delicious, myspace, facebook, google, live, more';

//--><!]]>




