var flag='';
var timerspeed = 10;
var pomak = 5;
function cover(id)
{
if(flag!=id)
{

flag=id;
uncover2(flag);
covering();
}

}


function covering()
{
if(flag!='')
{
var x = document.getElementById(flag).style.height;
if(x=="")
x="1px";
var br = x.length -2;
x = x.substr(0,br);
 x = x * 1 + pomak;
if(x<=125)
 document.getElementById(flag).style.height = x ;

if(x<123)
setTimeout("covering();",timerspeed);
else
flag=0;
}
}

function uncover(id)
{

document.getElementById(id).style.height = "0px";
}

function uncover2(id)
{
var i;
var polje = ['c1', 'c2', 'c3', 'c4', 'c5'];
for(i=0;i<5;i++)
{
if(polje[i]!=id)
uncover(polje[i]);
}
}

function init()
{
var browserName=navigator.appName; 
var browserVer=parseInt(navigator.appVersion); 
if((browserName=="Microsoft Internet Explorer")&&(browserVer<6))
{
document.getElementById('s1').style.width ="244px";
document.getElementById('s2').style.width ="310px";
document.getElementById('s3').style.width ="346px";
document.getElementById('b5').style.marginRight ="0px";
document.getElementById('c5').style.marginRight ="0px";

}
}






















