function enlarge1() {
    var popup = document.getElementById('lightbox');
    var fader = document.getElementById('fader');

    var selects = document.getElementsByTagName('select');

    for (var i = 0; i < selects.length; i++) {
        selects[i].style.visibility = 'hidden';
    }

    fader.style.width = document.documentElement.scrollWidth + 'px';
    fader.style.height = document.documentElement.scrollHeight + 'px';

    popup.style.height = 'auto';
    fader.style.display = 'block';
    popup.style.top = (document.documentElement.scrollTop) + 'px';
    return false;
}

function enlarge(id) {

    $(".scroll-content").load(id + " #dynamic-content", {}, function() {
        enlarge1();
        var t = $(".scroll-content");
        //$(".heading-block-txt h1").html($("img", t).attr("title"));
        $(".heading-block-txt").load(id + " h1");
    });
    


    //$(".heading-block-txt h1").html($("img", t).attr(title));
}

function basename(path) {
    return path.replace(/\\/g,'/').replace( /.*\//, '' );
}

function hide()
{
	var popup = document.getElementById('lightbox');
	var fader = document.getElementById('fader');	
	
	popup.style.height = '0';
	fader.style.display = 'none';

	$("#dynamic-container").empty();
}