function topPicSwitch (T){
var N, B, C, i, Col ;
Col=6;
 for(i = 0; i < Col; i ++)
	 	{
		B="none";
		C="#ffffff";
		N=i+1;
          	if(i == T ) { B=""; C="#FFC20E"}; 
		document.getElementById('top'+N+'b').style.display=B;
		document.getElementById('top'+N+'a').style.display=B;
		document.getElementById('top'+N+'c').style.background=C; 
        	};	
}

function randomNUM()
    {
       now=new Date()
       num=(now.getSeconds())%6
       return num;
     }

function showPic()
{
var i, Col;
Col=6;
topPicSwitch(randomNUM());
for(i = 1; i < Col+1; i ++)
	{
	document.getElementById('top'+i+'a').style.height="250px";
	document.getElementById('top'+i+'b').style.height="225px";
	};
}