to=new Array();bck=new Array();
to[0]=new Image(); to[1]=new Image(); to[2]=new Image(); to[3]=new Image(); to[4]=new Image();
bck[0]=new Image(); bck[1]=new Image(); bck[2]=new Image(); bck[3]=new Image(); bck[4]=new Image();
bck[0].src="images/foto.jpg"; to[0].src="images/foto1.jpg";
bck[1].src="images/fotobook.jpg"; to[1].src="images/fotobook1.jpg";
bck[2].src="images/video.jpg"; to[2].src="images/video1.jpg";
bck[3].src="images/music.jpg"; to[3].src="images/music1.jpg";
bck[4].src="images/friends.jpg"; to[4].src="images/friends1.jpg";
function To1(n,num)
{
 n.src=to[num-1].src;
}
function Back1(n,num)
{
 n.src=bck[num-1].src;
}

function getClientHeight()//функция вычисляет размер видимой части браузера
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}
function find()//функция увеличения высоты до необходимой
{
 width1=document.getElementById("t1").clientHeight;
 width2=document.getElementById("t2").clientHeight;
 width3=document.getElementById("t3").clientHeight;
 width5=document.getElementById("t5").clientHeight;
 h=getClientHeight()-width1-width2-width3-width5;
 document.getElementById("t4").style.height=h;
}