﻿
    customSetup();

    function customSetup (){
        ourWorkSetup();
    }

    function ourWorkSetup() {
        var div = document.getElementById('caseDiv');
        if (div) {
            var imgs = div.getElementsByTagName('img');
            for (var i = 0; i < imgs.length; i++) imgs[i].onclick = function() { LightboxDelegate(this.src, '') }
            if (imgs.length == 1) { imgs[0].style.borderBottom = '0px'; div.style.paddingBottom = '0px'; }
            
            //imgs[0].onclick = function() { jQuery(".art-Post-body").animate({height:"1000px"},10000)}
            
        }
    }
        
    function LightboxDelegate(url, caption) {
        var objLink = document.createElement('a');
        objLink.setAttribute('href', url);
        objLink.setAttribute('rel', 'lightbox');
        objLink.setAttribute('title', caption);
        Lightbox.prototype.start(objLink);
    }

    jQuery(document).ready(function() {
    /*
        jQuery(".art-Post-body").each(function(index) {
            if (index == 1) {
                var d = jQuery(this);
                var h = d.height();
                if (h > 100 && index == 1) {
                    d.css('overflow', 'hidden');
                    d.css('height', '400px');

                    //d.amimate({height:'250px'},1000);
                    //d.append("<div style='position:absolute; top:300px; left:200px; color:#ff0000;'>Test</div>");
                };
            };
        });
        */
    });

