// Demonstration cross-browser compatibility API // only tested for Netscape 6 and IE5.5 // Written by Dave Taylor - taylor@intuitive.com - for the // book "Dynamic HTML Weekend Crash Course" // online at http://www.intuitive.com/dhtml/ // **************************************************************************** // // Javascript for the main and sub menus // // **************************************************************************** // **************************************************************************** // // Main menu // // **************************************************************************** // ************************************ // // functions resolution adjustment // // ************************************ // function for sizing body content for screen resolution function sizeContent(obj) { var myObj = getObj(obj); if (window.screen.width > 1000) { myObj.width = 624 } else { myObj.width = parseInt(window.screen.width) - 200; } }