var DEF_SUBSCRIPTION_WIN_NAME="subscribe";
function openSubscriptionWindow(a){var b=window.open(a,DEF_SUBSCRIPTION_WIN_NAME,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=1,width=572");
if(b&&b.top){if(window.focus){b.focus();
return false
}}else{}}function updateSubscriptionWindow(){openSubscriptionWindow(createNewWinUrl())
}function createNewWinUrl(){return location.pathname+createUrlQuery()
}function createUrlQuery(){return Score24Utils.updateQueryString(location.search,"selleague="+getSelectedLegues()+"&selgame="+getSelectedGames())
}function updateWindowSize(){var g=getRefToDivMod(DEF_SUBSCRIPTION_WIN_NAME);
if(!g){return false
}var e=g.clip?g.clip.width:g.offsetWidth;
var g=g.clip?g.clip.height:g.offsetHeight;
if(!g){return false
}var c=window;
c.resizeTo(e+200,g+200);
var f=0,h=0,i=c.document.documentElement,a=c.document.body;
if(c.innerWidth){f=c.innerWidth;
h=c.innerHeight
}else{if(i&&i.clientWidth){f=i.clientWidth;
h=i.clientHeight
}else{if(a&&a.clientWidth){f=a.clientWidth;
h=a.clientHeight
}}}if(window.opera&&!document.childNodes){f+=16
}if(navigator.appName.indexOf("Netscape")!=-1){c.resizeTo(e+16+((e+200)-f),g+16+((g+200)-h))
}else{c.resizeTo(e+((e+200)-f),g+((g+200)-h))
}}function getRefToDivMod(b,c){if(!c){c=document
}if(document.layers){if(c.layers[b]){return c.layers[b]
}else{for(var a=0,d;
!d&&a<c.layers.length;
a++){d=getRefToDivNest(b,c.layers[a].document)
}return d
}}if(document.getElementById){return c.getElementById(b)
}if(document.all){return c.all[b]
}return document[b]
};
