var t;
var p = "q";
var q = 10;  // This is the functions ease
var qtwo = 10; // This is the other guys' ease

// Height Value.
var yOne = 0;
var yTwo = 0;
var yThree = 0;

// Boolean Value.
var f = 0;
var g = 0;
var h = 0;



function changeHeightOne(){
if(yOne>300&&f==0){f=1;return;}
if(yOne<1&&f==1){f=0;return;}
if(f)q=-10;if(!f)q=10;yOne=yOne+q;
e=document.getElementById("column1");
e.style.height = yOne + 'px';

// Retract for Column 2
if(yTwo>1&&g==1)yTwo=yTwo-qtwo;
a=document.getElementById("column2");
a.style.height = yTwo + 'px';
if(yTwo<1&&g==1){g=0;}

// Retract for Column 3
if(yThree>1&&h==1)yThree=yThree-qtwo;
b=document.getElementById("column3");
b.style.height = yThree + 'px';
if(yThree<1&&h==1){h=0;}


t=setTimeout("changeHeightOne();",0);
}

function changeHeightTwo(){
if(yTwo>300&&g==0){g=1;return;}
if(yTwo<1&&g==1){g=0;return;}
if(g)q=-10;if(!g)q=10;yTwo=yTwo+q;
e=document.getElementById("column2");
e.style.height = yTwo + 'px';

// Retract for Column 1
if(yOne>1&&f==1)yOne=yOne-qtwo;
c=document.getElementById("column1");
c.style.height = yOne + 'px';
if(yOne<1&&f==1){f=0;}

// Retract for Column 3
if(yThree>1&&h==1)yThree=yThree-qtwo;
b=document.getElementById("column3");
b.style.height = yThree + 'px';
if(yThree<1&&h==1){h=0;}

t=setTimeout("changeHeightTwo();",0);
}

function changeHeightThree(){
if(yThree>300&&h==0){h=1;return;}
if(yThree<1&&h==1){h=0;return;}
if(h)q=-10;if(!h)q=10;yThree=yThree+q;
e=document.getElementById("column3");
e.style.height = yThree + 'px';

// Retract for Column 1
if(yOne>1&&f==1)yOne=yOne-qtwo;
c=document.getElementById("column1");
c.style.height = yOne + 'px';
if(yOne<1&&f==1){f=0;}

// Retract for Column 2
if(yTwo>1&&g==1)yTwo=yTwo-qtwo;
a=document.getElementById("column2");
a.style.height = yTwo + 'px';
if(yTwo<1&&g==1){g=0;}

t=setTimeout("changeHeightThree();",0);
}

