var prefix = '';
if (window.location.href.indexOf("frontend_dev.php") != -1) {
  prefix =  '/frontend_dev.php';
} else if (window.location.href.indexOf("backend_dev.php") != -1) {
  prefix = '/backend_dev.php';
} else if (window.location.href.indexOf("admin/") != -1) {
  prefix = '/admin'
}

function equalHeight(group, minheight) {
    var tallest = 0;
    group.each(function() {
        var thisHeight = jQuery(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    minheight = typeof(minheight) != 'undefined' ? minheight : tallest;
    if (tallest < minheight) { tallest = minheight }
    group.height(tallest);
}

function equalWidth(group, minwidth) {
    var widest = 0;
    group.each(function() {
        var thisWidth = jQuery(this).width();
        if(thisWidth > widest) {
            widest = thisWidth;
        }
    });
    minwidth = typeof(minwidth) != 'undefined' ? minwidth : widest;
    if (widest < minwidth) { widest = minwidth }
    group.width(widest);
}

