function next(num)
{
	var top = 'g'+num+'Top';
	var bottom = 'g'+num+'Bottom';
	var main = 'g'+num+'Main';
	
	document.getElementById(top).style.background='url(\'images/gTop.png\')';	
	document.getElementById(bottom).style.background='url(\'images/gBottom.png\')';	
	document.getElementById(main).style.background='#FF6600';	
	
}
function back(num)
{
	var top = 'g'+num+'Top';
	var bottom = 'g'+num+'Bottom';
	var main = 'g'+num+'Main';
	var color;
	
	if (num==1) color='#990066'; 
	if (num==2) color='#CC0000';
	if (num==3) color='#003366';
	document.getElementById(top).style.background='url(\'images/'+num+'Top.png\')';	
	document.getElementById(bottom).style.background='url(\'images/'+num+'Bottom.png\')';	
	document.getElementById(main).style.background=color;	
	
}

function show(obj)
{
	dest=document.getElementById(obj);
	if(dest.style.display == 'block')
	{
		dest.style.display = 'none';
	}
	else
	{
		dest.style.display = 'block';
	}
}
var ch=1;
function chgHtp()
{
	el=document.getElementById('htpix');
	

	if (ch==1)
	{
		el.style.background='url(\'images/unLogo1.jpg\') no-repeat scroll 100% 30% transparent';
		this.ch=2;		
	}
	else if(ch==2)
	{
		el.style.background='url(\'images/unLogo2.jpg\') no-repeat scroll 100% 30% transparent';
		this.ch=3;		
	}
	else
	{
		el.style.background='url(\'images/unLogo.jpg\') no-repeat scroll 100% 30% transparent';
		this.ch=1;		
	}	
		
	setTimeout("chgHtp()",5000);
	
}
