		var bb=new Array(10);
		var bMode=0;
		
		for (x=0; x < 10; x++)
			bb[x]=0;

		var aa=0;
		
		function setMax(a, b)
		{
			if (a.value.length > b)
			{
				a.value = a.value.substr(0, b);
				if (aa == 0)
				{
					aa=1;
					alert('Sorry you can only have a maximum of ' + b + ' characters.');
				}
			}
		}
		
		function showhideMenu(x)
		{
			if (bb[x-1]==0)
			{
				document.getElementById('ssmenusub'+x).style.height='auto';
				document.getElementById('ssmenusub'+x).style.overflow='visible';
				document.getElementById('ssmenusub'+x).style.visibility='visible';
				bb[x-1]=1;
			}
			else if (bb[x-1]==1)
			{
				document.getElementById('ssmenusub'+x).style.height='0px';
				document.getElementById('ssmenusub'+x).style.overflow='hidden';
				document.getElementById('ssmenusub'+x).style.visibility='hidden';
				bb[x-1]=0;
			}
		}
		
		function showPop(x, zz)
		{
			document.getElementById('sspop'+x).style.visibility='visible';
			document.getElementById('sscontent').style.zIndex=-1;
			zz.style.zIndex=200;
			document.getElementById('sspop'+x).style.zIndex=300;
		}

		function hidePop(x, zz)
		{
			zz.style.zIndex=0;
			document.getElementById('sspop'+x).style.zIndex=0;
			document.getElementById('sscontent').style.zIndex=1;
			document.getElementById('sspop'+x).style.visibility='hidden';
		}
		
		function fadeThumb(s, a)
		{
			try {
				s.style.opacity=a/100;
			} catch (e) {}
	
			try {
				s.style.filter="alpha(opacity="+a+")";
			} catch (e) {}
		}

		function hideImages(x)
		{
			if (bMode==0)
			{
				for (a=1; a <= 5; a++)
				{
					if (a != x) document.getElementById('imenu'+a).style.visibility='hidden';
				}
				
				document.getElementById('imenu'+x).style.visibility='visible';
				document.getElementById('imenu'+x).style.top='10px';
				bMode=1;
			}
			else if (bMode==1)
			{
				for (a=1; a <= 5; a++)
				{
					if (a != x) document.getElementById('imenu'+a).style.visibility='visible';
				}

				document.getElementById('imenu'+x).style.top=(10+(x-1)*170)+'px';
				bMode=0;
			}
		}
		
		function overSub(oo)
		{
			oo.style.backgroundColor='#add9b3';
		}

		function normSub(oo)
		{
			oo.style.backgroundColor='#649f6d';
		}

		function overSubSub(oo)
		{
			oo.style.backgroundColor='#68966f';
		}

		function normSubSub(oo)
		{
			oo.style.backgroundColor='#457c4d';
		}
