if(navigator.appName.indexOf('Netscape')!=-1) { window.menubar.visible=false; window.toolbar.visible=false; window.personalbar.visible=false; window.statusbar.visible=false; window.scrollbars.visible=false; window.directories.visible=false; window.locationbar.visible=false; } var gwidth, gheight, d; d = 790/475; function wh() { var width, height; width = document.body.offsetWidth; height = document.body.offsetHeight; if ((width != gwidth) && (height != gheight)){ if (width > height) { gwidth = width; gheight = width / d; res(gwidth, gheight) } else { gwidth = height * d; gheight = height; res(gwidth, gheight); } } else { if (width != gwidth) { gwidth = width; gheight = width / d; res(gwidth, gheight) } else if (height != gheight) { gwidth = height * d; gheight = height; res(gwidth, gheight); } } } function res(startWidth, startHeight) { var heightTemp, widthTemp; if (startWidth < 333) { startWidth = 333; startHeight = 333/d; } if (startHeight < 200) { startWidth = 200*d; startHeight = 200; } window.parent.resizeTo(startWidth, startHeight); widthTemp = document.body.offsetWidth; heightTemp = document.body.offsetHeight; window.parent.resizeTo(startWidth + (startWidth - widthTemp), startHeight + (startHeight - heightTemp)); gwidth = document.body.offsetWidth; gheight = document.body.offsetHeight; }