
function WM_netscapeCssFix() {
if (document.WM_initWindowWidth != window.innerWidth || document.WM_initWindowHeight != window.innerHeight) {
document.location = document.location;
}
}
function WM_netscapeCssFixCheckIn() {
if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
document.WM_initWindowWidth = window.innerWidth;
document.WM_initWindowHeight = window.innerHeight;
window.onresize = WM_netscapeCssFix;
}
}
WM_netscapeCssFixCheckIn()

function WM_scaleFont(targetSize, initialFontSize, fontUnit) {
if (typeof document.WM == 'undefined'){
document.WM = new Object;
if (typeof document.WM.WM_scaleFont == 'undefined') {
document.WM.WM_scaleFont = new Object;
document.WM.WM_scaleFont.screenTarget = targetSize;
document.WM.WM_scaleFont.targetBodyFontSize = initialFontSize;
document.WM.WM_scaleFont.fontUnit = fontUnit;
}
}
if (document.all || document.getElementById) {
var screenWidth = document.body.offsetWidth;
} else if (document.layers) {
var screenWidth = window.innerWidth;
}
var scaledFont = parseInt(document.WM.WM_scaleFont.targetBodyFontSize) * (screenWidth / document.WM.WM_scaleFont.screenTarget);
if (document.all || document.getElementById) {
document.body.style.fontSize = scaledFont + document.WM.WM_scaleFont.fontUnit;
window.onresize = WM_scaleFont;
} else if(document.layers) {
var netscapeScaleReturn = '<style type="text/css">\nBODY {font-size: ' + scaledFont + document.WM.WM_scaleFont.fontUnit + '}\n</style>';
document.writeln(netscapeScaleReturn);
}
}
if (document.layers){
WM_scaleFont(900, 1, 'em');
}

