//drop down
var timeout	= 0;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose;


// random testimonial index
	var theIndexText = new Array() 
	
	theIndexText[0] = 'We selected PeopleValue not only because of their track record in delivering successful channel incentive schemes but also because of the elegance of their solution."</p></blockquote><p class="name">Adam Morley, Marketing Director, TTI UK';
	theIndexText[1] = 'PeopleValue\'s points based customer loyalty and sales incentive scheme is easy to use and implement. It has already proved its power and effectiveness within the Rexel Group."</p></blockquote><p class="name">Neil Thomas, Commercial Manager, Denmans';
	theIndexText[2] = 'PeopleValue\'s employee reward and recognition solution precisely met the Royal Mail\'s objective of getting our employees fully engaged in our "watch & win" programme strategy."</p></blockquote><p class="name">Christian Petersen, National Sales Referral Manager, Royal Mail';
	theIndexText[3] = 'PeopleValue have delivered NSK with a powerful customer loyalty solution that is really generating results."</p></blockquote><p class="name">Alexander Breitenbach, General Manager, NSK';
	theIndexText[3] = 'PeopleValue have delivered Senate Electrical with a scheme that represents excellent value for money. It has been easy to implement, manage and communicate. Importantly the rewards offer something for everyone."</p></blockquote><p class="name">Andrea Foster, Marketing Manager, Senate Electrical';
	var j = 0
	var p = theIndexText.length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++){
	preBuffer[i] = new Array()
	preBuffer[i].src = theIndexText[i]
	}
	var whichIndexText = Math.round(Math.random()*(p-1));
	
	function showIndexText(){
	document.write('<blockquote><p>'+theIndexText[whichIndexText]+'</p>');
	}


// random testimonial
	var theText = new Array() 
	
	theText[0] = 'We selected PeopleValue not only because of their track record in delivering successful channel incentive schemes but also because of the elegance of their solution. We can see how it will help drive sales and support our channel partners in meeting our business objectives"</p></blockquote><p class="name">Adam Morley, Marketing Director, TTI UK';
	theText[1] = 'PeopleValue\'s points based customer loyalty and sales incentive scheme is easy to use and implement. It has already proved its power and effectiveness within the Rexel Group."</p></blockquote><p class="name">Neil Thomas, Commercial Manager, Denmans';
	theText[2] = 'PeopleValue\'s employee reward and recognition solution precisely met the Royal Mail\'s objective of getting our employees fully engaged in our "watch & win" programme strategy."</p></blockquote><p class="name">Christian Petersen, National Sales Referral Manager, Royal Mail';
	theText[3] = 'PeopleValue have delivered NSK with a powerful customer loyalty solution that is really generating results."</p></blockquote><p class="name">Alexander Breitenbach, General Manager, NSK';
	theText[4] = ' We selected the PeopleValue channel incentive and retention scheme based on Advantage because it is a proven and effective solution.  Advantage is both easy for us to implement and communicate to our customers and demonstrates real and high value to those who benefit"</p></blockquote><p class="name">Heidi Abbott, Sales and Operations Director, HomeLet';
	theIndexText[5] = 'PeopleValue have delivered Senate Electrical with a scheme that represents excellent value for money. It has been easy to implement, manage and communicate. Importantly the rewards offer something for everyone."</p></blockquote><p class="name">Andrea Foster, Marketing Manager, Senate Electrical';

	
	var j = 0
	var p = theText.length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++){
	preBuffer[i] = new Array()
	preBuffer[i].src = theText[i]
	}
	var whichText = Math.round(Math.random()*(p-1));
	
	function showText(){
	document.write('<blockquote><p>'+theText[whichText]+'</p>');
	}


// random testimonial eReward
	var theTexteReward = new Array() 
	
	theTexteReward[0] = 'We selected PeopleValue not only because of their track record in delivering successful channel incentive schemes but also because of the elegance of their solution. We can see how it will help drive sales and support our channel partners in meeting our business objectives"</p></blockquote><p class="name">Adam Morley, Marketing Director, TTI UK';
	theTexteReward[1] = 'PeopleValue\'s points based customer loyalty and sales incentive scheme is easy to use and implement. It has already proved its power and effectiveness within the Rexel Group."</p></blockquote><p class="name">Neil Thomas, Commercial Manager, Denmans';
	theTexteReward[2] = 'PeopleValue\'s employee reward and recognition solution precisely met the Royal Mail\'s objective of getting our employees fully engaged in our "watch & win" programme strategy."</p></blockquote><p class="name">Christian Petersen, National Sales Referral Manager, Royal Mail';
	theTexteReward[3] = 'PeopleValue have delivered NSK with a powerful customer loyalty solution that is really generating results."</p></blockquote><p class="name">Alexander Breitenbach, General Manager, NSK';
	
	var j = 0
	var p = theTexteReward.length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++){
	preBuffer[i] = new Array()
	preBuffer[i].src = theTexteReward[i]
	}
	var whichTexteReward = Math.round(Math.random()*(p-1));
	
	function showTexteReward(){
	document.write('<blockquote><p>'+theTexteReward[whichTexteReward]+'</p>');
	}

