﻿
function MM_jumpMenu(selObj, restore) { //v3.0
    eval("parent.location='/Klubbar/" + selObj.options[selObj.selectedIndex].value + "/Klubb'");
    if (restore) selObj.selectedIndex = 0;
}

function MM_jumpToClub(selObj) {
    window.open(selObj.options[selObj.selectedIndex].value,"clubHomepage");    
}

function equalHeight(group) {
    tallest = 0;
    group.each(function () {
        thisHeight = $(this).height();
        if (thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}


function NewWindow(mypage, myname, w, h, scroll) {
    self.name = "main"; // names current window as "main"
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=' + scroll + ',resizable'
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
} 
