$(document).ready(function () {
    // put all your jQuery goodness in here.

    $('#dropSchemes').css("display", "none");
    $('#dropSchemes').css("position", "absolute");

    $('#schemeDropDiv').click(function () {
        $('#dropSchemes').slideToggle('fast', function () {
            // Animation complete.
        });
    });

    $('#schemeDropDiv').hover(function () {
		
	$(this).css("cursor", "pointer");

        },
	function(){
			
		$(this).css("cursor", "default");

	});


    $("#galleryThumbsUl").simplyScroll({
        className: 'hor',
        horizontal: true,
        frameRate: 70,
        speed: 7
    });

    $(".swapBig").hover(
        function () {
            $(this).css("cursor", "pointer");
        },
        function () {
            $(this).css("cursor", "default");
        }
    );

    $(".mainImage_cs").each(function (index, value) {
        if (index > 0)
            $("#" + value.id).css("display", "none");

	
    });

    $(".swapBig").click(function () {
        var _id = $(this).attr("alt");
        $(".mainImage_cs").each(function (index, value) {
            if (value.id == ("mainImage_" + _id)) {
                $("#" + value.id).css("display", "block");
            } else {
                $("#" + value.id).css("display", "none");
            }
        });

        $("#galleryThumbsUl li").css("border-color", "#343434");
        $(this).parent("li").css("border-color", "#00abcb");

    });

    $("#galleryThumbsUl li:first").css("border-color", "#00abcb");
    $("#gallerHolder").append("<img src = '/css/images/imageHover.png' alt = 'Enlarge Image' class = 'enlargeImg' />" );	


    $(".enlargeImg").hover(
        function () {
            $(this).css("cursor", "pointer");
        },
        function () {
            $(this).css("cursor", "default");
        }
    );

 $('.enlargeImg').click(function () {
        $('a[rel=fancy_box]').trigger('click');


    });





	

});
