<!--
var c=5;
var t;
/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.

//submenu[0]='<img src="http://www.msu.edu/~suttona4/Graphics/horz_spacer.gif"><font size="1" color="cccccc" face="Verdana"><b><a href="http://www.javascriptkit.com/javatutors/index.shtml">Advanced JS tutorials</a> | <a href="http://www.javascriptkit.com/java/">Applets</a> | <a href="http://www.javascriptkit.com/howto/">Web Tutorials</a></b></font>'
//submenu[1]='<img src="http://www.msu.edu/~suttona4/Graphics/horz_spacer.gif"><font size="1" color="cccccc" face="Verdana"><b><a href="http://freewarejava.com/applets/index.shtml">Applets</a> | <a href="http://freewarejava.com/tutorials/index.shtml">Tutorials</a> | <a href="http://freewarejava.com/javasites/index.shtml">Sites and Zines</a> | <a href="http://freewarejava.com/jsp/index.shtml">JSP</a></b></font>'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=300000

/////No need to edit beyond here

//var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
if (which == undefined || which > submenu.length)
{
  which=0;
}
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
timedCount;
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function timedCount() {
  c=c-1;
  t=setTimeout("timedCount()",1000);
  if (c==-1) {
    clearTimeout(t);
//    MM_nbGroup('over','one','spacer.gif','spacer.gif',1); showit(lvl3index);
  }
}


//Added to support Menu staying on correct submenu 10/2008
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else {
	    var expires = "";
    }
	    document.cookie = name+"="+value+expires+"; path=/";
}

function createcookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else {
	    var expires = "";
    }
	    document.cookie = name+"="+value+expires+"; path=/";
}


function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

/**********************************************************
Added to fix text sizing
**********************************************************/
function SizeText(size)
{
  if (size=="Larger")
  {
    var intSize = parseInt(readCookie('TextSize'),10);
    eraseCookie('TextSize');
    intSize = intSize + 10;
    createCookie('TextSize',intSize,7);
    document.body.style.zoom.fontsize = intSize + "%";
  }
  else if (size=="Smaller")
  {
    var intSize = parseInt(readCookie('TextSize'),10);
    eraseCookie('TextSize');
    intSize = intSize - 10;
    createCookie('TextSize',intSize,7);
    document.body.style.zoom.fontsize = intSize + "%";
  }
  else
  {
    eraseCookie('TextSize');
    createCookie('TextSize','100',7);
    document.body.style.zoom.fontsize="100%"
  }
}
-->
