
function showSub (id) {

 for (var i=0; i<5; i++){
	var ulObj = document.getElementById('html-content-ul2-id-'+i);
	
		if (i == id){
			ulObj.style.display='block';
		}else {
			ulObj.style.display='none';
		}
	
 }
}

/* SLIDE FUNCTIONS */

var CurDiv;
var FirstTime = true;
var Lock = false;
var LockTwo = false;



function slide(lnk,id) {
	Blur( lnk );
	if(!Lock && CurDiv != id) {
		
		SlideRight(id);
		if(FirstTime) {
			FirstTime = false;
		}
	}
}

function Locker( intDur ) {
	var LockerTime = intDur * 100;
	Lock = true;
	setTimeout(function() { Lock = false; },LockerTime);
}

function LockerTwo( intDur ) {
	var LockerTimeTwo = intDur * 100;
	LockTwo = true;
	setTimeout(function() { LockTwo = false; },LockerTimeTwo);
}

function SlideRight(id) {
	Locker(3);
	if (CurDiv!=null){
		LockerTwo(2);
		document.getElementById('html-item-a-id-'+CurDiv).style.textDecoration = 'none';
		new Effect.MoveBy( 'html-content-ul2-div-id-'+CurDiv, 0, -264 , {duration: 0.1} );
		//document.getElementById('html-content-ul2-div-id-'+CurDiv).style.display = 'none';
		document.getElementById('html-content-ul2-div-id-'+CurDiv).style.zIndex = '1';
	
	}
	document.getElementById('html-item-a-id-'+id).style.textDecoration = 'underline';
	new Effect.MoveBy( 'html-content-ul2-div-id-'+id, 0, 264 , {duration: 0.3} );
	document.getElementById('html-content-ul2-div-id-'+id).style.zIndex= '5';
	if(!FirstTime) {
		//document.getElementById('html-content-ul2-div-id-'+CurDiv).style.left = '-259px';
		//document.getElementById('html-content-ul2-div-id-'+CurDiv).style.display = 'block';
	}
	
	CurDiv = id;
}

function Blur( lnk ) {
	try {
		lnk.blur();
	} catch(e) {};
}

