﻿$(function() {
    $(".slideviewer_x").jCarouselLite({
    btnNext: ".next",
    btnPrev: ".prev",
    vertical: true,
    visible: 3,
    scroll: 1
    });
    
    
    
});

function showlightboxproperty(imageURL)
{
    
    $("#imagecontentdiv").show();
    $(".propertycontent").hide();
    $("#imagecontent").attr("src", imageURL);
    
    var topVal = $('#imagecontentdiv').offset().top + "px";
    var leftVal = ($('#imagecontentdiv').offset().left + 550) + "px";
    
    $('a#close').css({left:leftVal,top:topVal});
}

function hidelightboxproperty()
{
    $("#imagecontentdiv").hide();
    $(".propertycontent").show();
}

function showlightbox(imageURL, title, description)
{
    $("#imagecontentdiv").show();
    $("#content").hide();
    $("#imagecontent").attr("src", imageURL);
    
    var topVal = $('#imagecontentdiv').offset().top + "px";
    var leftVal = ($('#imagecontentdiv').offset().left + 550) + "px";
    
    $('a#close').css({left:leftVal,top:topVal});
    
    $("#imagetitle").html(title); 
    $("#imagedescription").html(description);
}

function hidelightbox()
{
    $("#imagecontentdiv").hide();
    $("#content").show();
}


$(document).ready(function(){
    
    if($('#right_content').children().size() == 0 )
    {
        $('#right_content').hide();
    }
 }); 
