
//--------- PROPERTY DETAILS PAGE --------------

//FORM VALIDATION

$(document).ready(function() {
	$("#tenantApplication").validate();
});


//IMAGE THUMBNAILS

$(function() {
    $(".belt").jCarouselLite({
        btnNext: ".arrowRight",
        btnPrev: ".arrowLeft"
    });
});


//FORM PANELS

$(document).ready(function(){ 
        $('.apply').click(function(){ 
                // Make the id overview show 
                $('#app').slideToggle('normal'); 
                // override default a behavior 
                return false; 
        }); 
        $('#closeApp').click(function(){ 
                // Make the id overview show 
                $('#app').slideToggle('normal'); 
                // override default a behavior 
                return false; 
        });
});

$(document).ready(function(){ 
        $('.ask').click(function(){ 
                 // Make the id overview show
                $('#question').slideToggle('normal'); 
                 // override default a behavior 
                return false; 
        }); 
        $('#closeQuestion').click(function(){ 
                 // Make the id overview show
                $('#question').slideToggle('normal'); 
                 // override default a behavior  
                return false; 
        });
});

$(document).ready(function(){ 
        $('.propertyUpdates').click(function(){ 
                 // Make the id overview show 
                $('#updates').slideToggle('normal'); 
                 // override default a behavior  
                return false; 
        }); 
        $('#closeUpdates').click(function(){ 
                 // Make the id overview show
                $('#updates').slideToggle('normal'); 
                 // override default a behavior  
                return false; 
        });
});

//ENLARGE IMAGES

$(document).ready(function(){

	$("a.thumbnail,a.mainImage").fancybox({
		'zoomOpacity'			: true,
		'overlayShow'			: true,
	});

});
	

//FORM TRANSFORMATION (Results Page)

$(function() {
    //find all form with class jqtransform and apply the plugin
    $(".search").jqTransform();
});


//$(document).ready(function(){
//  $.preloadCssImages();
//}); 