
function onloadfunct() { 
br=find_object('box_right');
if(br){
div_width = document.documentElement.clientWidth - 2*60-20;
document.getElementById("box_right").style.width=div_width+"px";//alert(div_width);
document.getElementById("box_right").style.padding="0 0 0 10px";//alert(div_width);
}
div_height = document.documentElement.clientHeight - 2*180;
var divh = document.getElementById('content').offsetHeight;
if(div_height>divh) {
    document.getElementById("content").style.height=div_height+"px";
    divh=div_height;
}
padd=0;
ds=find_object('flash');
if(ds) {
    padd=(divh-227)/2;
    document.getElementById("flash").style.padding=padd+"px 0 0 0"; 
}
/*if (document.getElementById){
document.write('<style type="text/css">');
document.write('#box_right {width:'+div_width+'px;} #content {height:'+div_height+'px;} #flash{padding: '+padd+'px 0 0 0}');
document.write('</style>');
}*/
}
function find_object(id) {
    if (document.getElementById) { if (!(document.getElementById(id))) { return false; } return document.getElementById(id); } else return false; 
}
    
if (window.addEventListener)
window.addEventListener("load", onloadfunct, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunct)
else if (document.getElementById)
window.onload=onloadfunct    
window.onresize=onloadfunct    
