//Example window script //Displays the appropriate size Example window based on the current resolution //Last updated January 29, 2004 function OpenExample(obj, url) { var stream; var screenwidth; var example_window; // Get the screen size reported by the user's system screenwidth = window.screen.availWidth; //Determine what size of window to use if(screenwidth > 1500) { example_window = "ExampleE"; } else if (screenwidth > 1200) { example_window = "ExampleD"; } else if (screenwidth > 1000) { example_window = "ExampleC"; } else if (screenwidth > 700) { example_window = "ExampleB"; } else { example_window = "ExampleA"; } // Clean up the url, if needed var intPos = url.lastIndexOf("#"); var newURL = url.substr(0, intPos); // Remove the protocol information -- mk:@MSITStore: var x = newURL.indexOf("mk:@MSITStore:"); if(x != (-1)) { newURL = newURL.slice(14); } stream = '' + '' + '' + '' + ''; obj.innerHTML = stream; ExampleWindowObj.Click(); }