$(document).ready(function(){    $("a[rel='external']").attr('target','_blank');    $("#content > #right > #thumbs > a").lightBox();	$("#content > #left > #detail_tabs_inhoud > #tab_photos > a").lightBox();    $("div").pngFix();	        $(".click-more-info").click(function() {        var href = $("a", $(this)).attr("href");        window.location.href=href;    });	 	     $("input[name=\"type_object\"]").click(function(){        val = $(this).val();        if($(this).is(':checked')){            $("."+val).show();        }else{            $("."+val).hide();        }    });                if ($.browser.msie && $.browser.version.substr(0,1)<7) {		    }else{        $('#pngoverlay').after('<div class="overlaywrap"></div>');    }    /** homeblocks **/    $(".homeblock").hide();    $(".homeblock:first").show();    setInterval(function() {        if($(".homeblock").length > 1) {            var current = $(".homeblock:visible");            var next = current.next();            if(!next.hasClass("homeblock"))                next = $(".homeblock:first");            current.fadeOut('slow', function() {                next.fadeIn('slow');            });        }    }, 10000);		/**If h1 is too long for one line **/	if ($("h1").text().length >= 44){		$("#left h1").css("line-height","25px");		$("#left h1").css("padding-bottom","10px");	}		function initDatePicker(elm){		elm.DatePicker({			date: elm.val(),			current: elm.val(),			format: 'd-m-Y',			onChange: function(formated, dates) {				elm.val(formated);				elm.DatePickerHide();			}		});	}	/* datepicker on rental page */	initDatePicker($('#date_from'));	initDatePicker($('#date_to'));});function loadSelection(){    $("input[name=\"type_object\"]").each(function(){        val = $(this).val();        if($(this).is(':checked')){            $("."+val).show();        }else{            $("."+val).hide();        }    });}
