﻿function setMainSize()
    {
        var height = screen.height;
        //var adjust = height - 172
                
        if (navigator.userAgent.indexOf("Firefox")!=-1)
            //document.write("Firefox")
            document.getElementById("maincontainer").style.height = height - 132;
            
        if (navigator.userAgent.indexOf("MSIE")!=-1)
            //document.write("IE")
            document.getElementById("maincontainer").style.height = height - 152;
            
        if (navigator.userAgent.indexOf("Safari")!=-1)
            //document.write("IE")
            document.getElementById("maincontainer").style.height = height - 80;
    }

    window.onload = setMainSize;
