var slideHorizSpeed  = 5; //speed of the slide up divs
var stopPosition  = 190; //where the slide up div stops
var startPosition  = 87; //where the slide up div stops
var startPosH = 23;
var	peopleDir1;
var	slidingPeople;
var pt2UDir;
var pt3UDir;
var pt4UDir;
var pt5UDir;
var pt6UDir;
function doPeople()
{
	killSlideShow();//if a slideshow is in action - kill it
	slidingPeople = document.getElementById('peepSlider');
	if(peopleDir1 == '1')
	{
		if (parseInt(slidingPeople.style.width) < stopPosition )
		{
			//document.getElementById(text1).style.color="#595b58";
			slidingPeople.style.width = parseInt(slidingPeople.style.width) + slideHorizSpeed + "px";
			slidingPeople.style.height = parseInt(slidingPeople.style.height) + (slideHorizSpeed*1.05) + "px";
			setTimeout(doPeople, 10);
		}
		else
		{
			//alert('slidingPeople.style.height '+slidingPeople.style.height);
			slidingPeople.style.width = stopPosition+"px";
			slidingPeople.style.height = (stopPosition*1.05)+"px";
		}
	}
	if(peopleDir1 == '2')
	{
		if (parseInt(slidingPeople.style.width) > startPosition )
		{
			slidingPeople.style.width = parseInt(slidingPeople.style.width) - slideHorizSpeed + "px";
			slidingPeople.style.height = parseInt(slidingPeople.style.height) - (slideHorizSpeed*1.05) + "px";
			setTimeout(doPeople, 10);
		}
		else 
		{
			slidingPeople.style.width = "87px";
			slidingPeople.style.height = "23px";
			//document.getElementById(text1).style.color="#ffffff";
			//document.getElementById(text1).style.color="#ffffff";
		}
	}
}
function people(peopleDir)
{
	peopleDir1 = peopleDir;
	doPeople();
}
function peepsUnderline2()
{
	if(pt2UDir == '1')
	{
		document.getElementById('peepAnna').style.background="#3c3c3c";
	}
	if(pt2UDir == '2')
	{
		document.getElementById('peepAnna').style.background="#fca500";
	}
}
function peepsUnderline3()
{
	if(pt3UDir == '1')
	{
		//alert('jgf');
		document.getElementById('peepMatt').style.background="#3c3c3c";
	}
	if(pt3UDir == '2')
	{
		document.getElementById('peepMatt').style.background="#fca500";
	}
}
function peepsUnderline4()
{
	if(pt4UDir == '1')
	{
		document.getElementById('peepIan').style.background="#3c3c3c";
	}
	if(pt4UDir == '2')
	{
		document.getElementById('peepIan').style.background="#fca500";
	}
}
function peepsUnderline5()
{
	if(pt5UDir == '1')
	{
		document.getElementById('peepViktor').style.background="#3c3c3c";
	}
	if(pt5UDir == '2')
	{
		document.getElementById('peepViktor').style.background="#fca500";
	}
}
function peepsUnderline6()
{
	if(pt6UDir == '1')
	{
		document.getElementById('peepUs').style.background="#3c3c3c";
	}
	if(pt6UDir == '2')
	{
		document.getElementById('peepUs').style.background="#fca500";
	}
}
function peepText2Un(pt2U)
{
	pt2UDir = pt2U;
	peepsUnderline2();
}
function peepText3Un(pt3U)
{
	pt3UDir = pt3U;
	peepsUnderline3();
}
function peepText4Un(pt4U)
{
	pt4UDir = pt4U;
	peepsUnderline4();
}
function peepText5Un(pt5U)
{
	pt5UDir = pt5U;
	peepsUnderline5();
}
function peepText6Un(pt6U)
{
	pt6UDir = pt6U;
	peepsUnderline6();
}
