
/*****************************   Adjust the styles   *****************************/

var topAllHeight = 105;
var footerHeight = 50;
var topLeftWidth = 164;

var contentWidthFactor = 200;
var overflowTrue = false;
var marginHeightFactor = 100;
var contentHeight = $("#content").height();
	
function dynamicLayout() {        
    frameWidth = $(window).width(); 
    contentRight = 4; 
    if (frameWidth < 1000) {
        frameWidth = 1000;
        contentRight = $(window).width(); 
        contentRight = contentRight - frameWidth + 8;
        $('#content').css('right', contentRight);
        }
    topRightWidth = frameWidth - topLeftWidth;
    contentWidth = frameWidth - contentWidthFactor;
     $(".topRight").width(topRightWidth);
     $(".accent").width(topRightWidth);
     $(".topAll").width(topRightWidth-100);
     $("#content").width(contentWidth); 
     $("#vlightbox1").width(contentWidth);      
    
    frameHeight = $(window).height(); 
    if (frameHeight < 760) {
        frameHeight = 760;
        footerBottom = $(window).height(); 
        footerBottom = footerBottom - frameHeight + 6;
        $('.footerLeft').css('bottom', footerBottom);
        $('.footerRight').css('bottom', footerBottom);
        }
    topLeftHeight = frameHeight - footerHeight;
    menuHeight = frameHeight - footerHeight - 460;
    contentHeight = frameHeight - (topAllHeight + footerHeight + marginHeightFactor);
     $(".menuLeft").height(menuHeight);
     $("#content").height(contentHeight);
    }


