﻿
    //    if (!$.browser.msie) $.preloadCssImages();
    if ($("#slideshow").length) {
        $("#slideshow").cycle({
            sync: 1
        });
    }
	$(".click_grant").fancybox({ height: "90%", width: 710, type: "iframe" });
    $(".click_iframe").fancybox({ width: "80%", height: "80%", type: "iframe" });
    $(".click_image").fancybox({ maxWidth: "80%", maxHeight: "80%" });
    $(".click_flash").fancybox({
        width: 768,
        height: 480,
        'transitionIn': 'none',
        'transitionOut': 'none',
        'padding': 0
    });

    $(".click_enlarge").fancybox();
    if ($("#gallery").length) {
        $("#gallery").cycle({
            sync: 1,
            pager: '#gallerythumbs',
            pagerAnchorBuilder: function(idx, slide) {
                return '#gallerythumbs li:eq(' + (idx) + ') a';
            },
            speed: 'fast',
            timeout: 0
        });
    }

    $("#thumb-gallery-group").cycle({
        fx: 'fade',
        sync: 1,
        speed: 'fast'
    });

    if ($("#FloorPlan .floorPlanDownload a").length) {
        $("#FloorPlan .floorPlanThumb").wrap($("#FloorPlan .floorPlanDownload a"));
    }

    $(".click_print").click(function() {
        window.print();
    });


