
	var menuTimeout = 500;
	var initialtab = "";
	var initialowner = "";
	var previoustab = ""
	var previousowner = ""

	function expandcontent(cid, cidOwner)
	{
		if (document.getElementById)
		{
			if (previoustab != "")
				if (document.getElementById("m" + previoustab))
				    document.getElementById("m" + previoustab).style.display = "none"

			if (previousowner != "" && previousowner != initialowner)
			    if (document.getElementById(previousowner))
			        document.getElementById(previousowner).className = ""
			
			if (cid != "")
				if (document.getElementById("m" + cid))
				    document.getElementById("m" + cid).style.display = "block"

			if (cidOwner != "")
			    if (document.getElementById(cidOwner))
			        document.getElementById(cidOwner).className = "sel"

	        previoustab = cid;
	        previousowner = cidOwner;
		}
	}

	function do_onload()
	{
	    expandcontent(initialtab, initialowner)
	}

	var thread1;

	function menuOnOut()
	{
		thread1 = setTimeout('do_onload()', menuTimeout);
	}
	
	function menuOnIn()
	{	
		clearTimeout(thread1);
	}
	
	var min = 8;
    var max = 18;
    function increaseFontSize() {
        var p = document.getElementsByTagName('p');
        var s;
        for (i = 0; i < p.length; i++) {
            if (p[i].style.fontSize) {
                s = parseInt(p[i].style.fontSize.replace("px", ""));
            } else {
                s = 12;
            }
            if (s != max) {
                s += 1;
            }
            p[i].style.fontSize = s + "px"
        }
    }
    function decreaseFontSize() {
        var p = document.getElementsByTagName('p');
        var s;
        for (i = 0; i < p.length; i++) {
            if (p[i].style.fontSize) {
                s = parseInt(p[i].style.fontSize.replace("px", ""));
            } else {
                s = 12;
            }
            if (s != min) {
                s -= 1;
            }
            p[i].style.fontSize = s + "px"
        }
    }

    function OpenPoup(url, name) {
        window.open(url, name, 'status=0, scrollbars=0, resizable=0, menubar=0, toolbar=0, height=500, width=750', false);
    } 

	if (window.addEventListener)
		window.addEventListener("load", do_onload, false)
	else if (window.attachEvent)
		window.attachEvent("onload", do_onload)
	else if (document.getElementById)
		window.onload = do_onload
