			var theTimer;
			
			var loadingIMG = new Array();
			loadingIMG[0] = '<br><br><br><br><img src="images/loading_grandma.gif" width="150" height="60" border="0" alt="Loading"><br>';
			loadingIMG[1] = '<br><br><br><br><img src="images/loading_hourglass.gif" width="150" height="60" border="0" alt="Loading"><br>';
			loadingIMG[2] = '<br><br><br><br><img src="images/loading_hulla_hippo.gif" width="150" height="60" border="0" alt="Loading"><br>';
			loadingIMG[3] = '<br><br><br><br><img src="images/loading_lava_lamp_small.gif" width="150" height="60" border="0" alt="Loading"><br>';
			loadingIMG[4] = '<br><br><br><br><img src="images/loading_mouse_clock_small.gif" width="150" height="60" border="0" alt="Loading"><br>';
			loadingIMG[5] = '<br><br><br><br><img src="images/loading_omar_scratching_small.gif" width="150" height="60" border="0" alt="Loading"><br>';
			loadingIMG[6] = '<br><br><br><br><img src="images/loading_sherlock_smoking_small.gif" width="150" height="60" border="0" alt="Loading"><br>';
			loadingIMG[7] = '<br><br><br><br><img src="images/loading_space_guy_small.gif" width="150" height="60" border="0" alt="Loading"><br>';
			loadingIMG[8] = '<br><br><br><br><img src="images/loading_trafficcop_goleft_small.gif" width="150" height="60" border="0" alt="Loading"><br>';
			loadingIMG[9] = '<br><br><br><br><img src="images/loading_wizard.gif" width="150" height="60" border="0" alt="Loading"><br>';
			
			function category_toggle(subcat, cat) {
			  if (document.getElementById) {
			    if (document.getElementById(subcat).style.display == 'none') {
			      document.getElementById(subcat).style.display = 'block';
			      document.getElementById(cat).style.backgroundColor = unshaded_color;
			      document.getElementById(subcat).style.backgroundColor = unshaded_color;
			    }
			    else {
			      document.getElementById(subcat).style.display = 'none';
			      document.getElementById(cat).style.backgroundColor = shaded_color;
			      document.getElementById(subcat).style.backgroundColor = shaded_color;
			    }
			  }
                        }

			function category_off(subcat, cat) {
			  if (document.getElementById) {
			    document.getElementById(subcat).style.display = 'none';
			    document.getElementById(cat).style.backgroundColor = shaded_color;
			    document.getElementById(subcat).style.backgroundColor = shaded_color;
			  }
                        }

			function category_on(subcat, cat) {
			  if (document.getElementById) {
			    document.getElementById(subcat).style.display = 'block';
			    document.getElementById(cat).style.backgroundColor = unshaded_color;
			    document.getElementById(subcat).style.backgroundColor = unshaded_color;
			  }
                        }
			
			function singlecategory_toggle(cat) {
			  if (document.getElementById) {
			    document.getElementById(cat).style.backgroundColor = unshaded_color;
			    theStuff = document.getElementById(cat).style;
			    setTimeout("theStuff.backgroundColor = '" + shaded_color + "'",100);
			  }
			}
			
			function pic_toggle(id,pic) {
			  if (document.getElementById) {
				  document.getElementById(id).src = pic;
			  }
			}
			
			function showDrop(id) {
			  if (document.getElementById) {
			    cancelDrop();
			    document.getElementById(id).style.visibility = "visible";
			    document.getElementById(id).style.pixelLeft = (window.event.clientX + document.body.scrollLeft) - 15;
			    for(x=1;x<6;x++) {
			  	  document.getElementById(id).style.pixelTop = (window.event.clientY + document.body.scrollTop) + 5;
			    }
			    theFunc = document.getElementById(id).style;
			    theTimer = setTimeout('theFunc.visibility = "hidden"',1000);
			  }
			}
			
			function hideDrop(id) {
			  if (document.getElementById) {
			    theFunc = document.getElementById(id).style;
			    theTimer = setTimeout('theFunc.visibility = "hidden"',700);
			  }
			}
			
			function cancelDrop() {
			  if (document.getElementById) {
			    clearTimeout(theTimer);
			  }
			}
			
			function goLoading() {
			  if (document.getElementById) {
			    document.getElementById('bodystuff').style.visibility='hidden';
			    document.getElementById('loadingstuff').style.visibility='visible';
			    setTimeout('goUnloading()',10000);
			  }
			}
			
			function goUnloading() {
			  if (document.getElementById) {
			    document.getElementById('bodystuff').style.visibility='visible';
			    document.getElementById('loadingstuff').style.visibility='hidden';
			  }
			}
