﻿jQuery(window).load(function () {
    if (jQuery(".Gallery .PhotoGallery").size() >= 1) 
	{	
		var maxH = 0;
		jQuery(".Gallery .PhotoGallery").each(function () {
			if (jQuery(this).height() > maxH)
				maxH = parseInt(jQuery(this).height());
		});
		$(".Gallery .PhotoGallery").css("height", maxH);
	}
	
	if (jQuery("#pageContent .line").size() >= 1) {
        jQuery("#pageContent .line").each(function () {
            var maxheight = 0;
            $(this).children(".box").each(function () {
                var h = $(this).height();
                if (h > maxheight)
                    maxheight = h;
            });
            $(this).find(".box .inner").css("height", maxheight - 24);
        });
    }
	

    jQuery(".styled .hoverimg").height(jQuery(".styled").height() / 2);
});
jQuery(document).ready(function () {
    jQuery(".box .inner div.colx2").columnize({ columns: 2 });
    jQuery(".styled").prepend('<div class="hoverimg"></div>');

    if ($.browser.msie) {
        jQuery("#clientName").css("padding-bottom","5px");
    }
});
