﻿function setSize() {
    pageHeight = parseInt(window.innerHeight ? window.innerHeight : document.body.offsetHeight);
    pageWidth = parseInt(window.innerWidth ? window.innerWidth : document.body.offsetWidth);

    if (parseInt(navigator.appVersion) > 3) {
        if (navigator.appName == "Netscape") {
            pageHeight = pageHeight - 131;
        }
        if (navigator.appName.indexOf("Microsoft") != -1) {
            pageHeight = pageHeight - 131;
            pageWidth = pageWidth - 2; //IE6
        }
    }
    document.getElementById('contenttxt').style.width = pageWidth + 'px';

    document.getElementById('contenttxt').style.height = pageHeight + 'px';
    document.getElementById('buttom').style.display = 'block';
}

$(document).ready(function() {
    var width = 0;
    $('ul.AspNet-Menu > li').each(function() {
        width += $(this).width();
    });
    $('.topmenu').width(width);
});