j = document.title;
h = j.indexOf(",");
document.title=j.substring(0,h);
window.onresize = findWindowDim;
window.onload = findWindowDim;

function findWindowDim(){

var startpoint = 130;
var cont1bottom = document.getElementById('cont1').offsetHeight + startpoint;
var rghtimgbottom = document.getElementById('rghtimg').offsetHeight + startpoint;

if (cont1bottom < rghtimgbottom){
h=rghtimgbottom + 5;

}

if (cont1bottom > rghtimgbottom){
h= cont1bottom + 5;

}

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;
objFooter.style.visibility="visible";
}



if (document.body.clientHeight > h){
function hideError() {
return true;
}
window.onerror = hideError;
var contheight = footnormal + 36+"px";
a = footnormal;
objFooter.style.top = a+"px";
cont.style.height = contheight;
trampoleheight.style.height = contheight;
vertical.style.height = contheight;
objFooter.style.visibility="visible";

}


} 
