j = document.title;
h = j.indexOf(",");
document.title=j.substring(0,h);
window.onresize = findWindowDim;
window.onload = findWindowDim;

function findWindowDim(){

var startpoint = 354;
var cont2height = document.getElementById('cont2').offsetHeight;
var cont3height = document.getElementById('cont3').offsetHeight;
var cont4height = document.getElementById('cont4').offsetHeight;
if (cont2height > cont3height && cont2height > cont4height){
h= cont2height;
}
if (cont2height >= cont3height && cont2height >= cont4height){
h= cont2height + startpoint;
}
if (cont3height >= cont2height && cont3height >= cont4height){
h= cont3height +startpoint;
}
if (cont4height >= cont2height && cont4height >= cont3height){
h= cont4height + startpoint;
}

var objFooter = document.getElementById('footer')
var footnormal = document.body.clientHeight - 36;
var cont = document.getElementById('container')
var trampoleheight = document.getElementById('trampole1')
var vertical = document.getElementById('vertical')

if (document.body.clientHeight < h){
function hideError() {
return true;
}
window.onerror = hideError;

objFooter.style.top = h+"px";
var contheight = h + 36+"px";
cont.style.height = contheight;
trampoleheight.style.height = contheight;
vertical.style.height = contheight;
}



if (document.body.clientHeight > h){
function hideError() {
return true;
}
window.onerror = hideError;


var contheight = footnormal + 36+"px";
a = document.body.clientHeight - 36
objFooter.style.top = a+"px";
cont.style.height = contheight;
trampoleheight.style.height = contheight;
vertical.style.height = contheight;

}






} 

