var IE = (navigator.appName=="Microsoft Internet Explorer")?true:false;

function resize_images_field() {
    if(IE) {
        heightscreen = document.body.clientHeight;
        widthscreen = document.body.clientWidth;
    } else {
        heightscreen = window.innerHeight;
        widthscreen = window.innerWidth;
    }
    document.getElementById('images').style.width = (widthscreen-300)+'px';
}

window.onload = resize_images_field;
window.onresize = resize_images_field;

function scale_news_div() {
    if(IE) {
        widthscreen_total = document.body.clientWidth;
    } else {
        widthscreen_total = window.innerWidth;
    }
    document.getElementById('left_news_box').style.width = (widthscreen_total-670)/2;
}
