function hlOn(sName, sImg) {
	document.getElementById(sName).src=sImg;
}

var sLastName

function navOn(sName) {
	if (sLastName != "") {
		document[sLastName].src='images/'+sLastName+'1.gif';
		document[sName].src='images/'+sName+'1.gif';
	} else {
		sLastName=sName
	}
}

aIntervals = new Array();

function ClearIntervals() {
	for (i=0;i<aIntervals.length;i++) {
		clearInterval(aIntervals[i]);
	}
}

SRHSlider=function() {
	return {
		navInit:function(sPreset) {
			oNav=document.getElementById("two-content");
			oNav2=document.getElementById("two-header");
			if(sPreset!="two-content") {
				oNav.style.overflow="hidden";
				oNav.nMaxheight=(oNav.offsetHeight);
				oNav.style.height="0px";
				oNav2.onmouseover=new Function("SRHSlider.d()");
			}
		},
		
		d:function() {
			oNav2=document.getElementById("two-header");
			oNav=document.getElementById("two-content");
			ClearIntervals();
			aIntervals[aIntervals.length]=setInterval("SRHSlider.navSlideOut()",10)
		},
		
		g:function() {
			oNav2=document.getElementById("two-header");
			oNav=document.getElementById("two-content");
			ClearIntervals();
			aIntervals[aIntervals.length]=setInterval("SRHSlider.navSlideIn()",10)
		},
		
		navSlideOut:function() {
			oNav=document.getElementById("two-content");
			oNav2=document.getElementById("two-header");
			if (oNav.offsetHeight<=oNav.nMaxheight) {
				if (oNav.nMaxheight-oNav.offsetHeight > 30) {
					oNav.style.height=(oNav.offsetHeight+10)+"px";
				} else {
					oNav.style.height=(oNav.offsetHeight+2)+"px";
				}
			} else {
				oNav.style.height=(oNav.nMaxheight)+"px";
				ClearIntervals();
			}	
		},
		
		navSlideIn:function() {
			oNav=document.getElementById("two-content");
			oNav2=document.getElementById("two-header");
			if (oNav.offsetHeight>20) {
				oNav.style.height=(oNav.offsetHeight-20)+"px";
			} else {
				oNav.style.height="0px";
				ClearIntervals();
			}	
		}
	};
}();


if (!bShowMenu) {
	window.addEvent('domready', function() {
		
		var myVerticalSlide = new Fx.Slide('two-content');
		myVerticalSlide.hide();
		
		$('two-header').addEvent('mouseover', function(e){
			e.stop();
			myVerticalSlide.slideIn();
		});
	
		$('content').addEvent('mouseover', function(e){
			e.stop();
			myVerticalSlide.slideOut();
		});
	
	});
}
