function max(){var m=Number.NEGATIVE_INFINITY;for(var i=arguments.length-1;i>=0;i--)if(arguments[i]>m)m=arguments[i];return m;}
function contort(){rwn();ehl();try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}}
function rwn() {
    try {
	var p = document.getElementById ("right-bar");
	var c = document.getElementById ("content");
	var wn = document.getElementById ("whats-new-body");
	for (var x=6; x<=15; x++) {
	    var i = document.getElementById ("whats-new-item-"+x);
	    i.style.display="none";
	}
	h = max (p.offsetHeight, c.offsetHeight);
	for (var x=6; x<=15 ;x++) {
	    var i = document.getElementById ("whats-new-item-"+x);
	    if (h < wn.offsetHeight + 150) break;
	    i.style.display = "inline";
	}
    }catch(e){}
}
function ehl(){try{var l=document.getElementById("logo");l.onclick=function(ev){ch(ev);};l.onmousemove=function(ev){hh(ev);};l.onmouseout=function(){rc();};}catch(e){}}
function ch(e){try{var l=document.getElementById("top-nav-links");var h=document.getElementById("link-home");if(!e){e=window.event;}if(l.offsetLeft-e.clientX>0){window.location=h.href;}}catch(e){}}
function hh(e){try{var l=document.getElementById("top-nav-links");var h=document.getElementById("link-home");if(!e){e=window.event;}if(l.offsetLeft-e.clientX>0){document.body.style.cursor='pointer';window.status=h.href;}else{rc();}}catch(e){}}
function rc(){try{document.body.style.cursor='default';window.status='';}catch(e){}}
function df(){try{var hasflash=false;var win=false;if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){hasflash=true;}else if(navigator.plugins["Shockwave Flash"]){hasflash=true;}else if(navigator.userAgent.match(/win/i)||navigator.userAgent.match(/16bit/i)){for(var x=8;x<12;x++){try{var y=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+x);hasflash=true;}catch(e){}}}}catch(e){}return hasflash;}
