/* AUTHORS: Frank Hillis, LaVaughn Haynes * SECTION: Business Law * * JAVASCRIPT DROPLIST * The Droplist function toggles the display style of the "content div" * and the background URL of the "toggle link" eliminating the need for an tag * * HOW TO IMPLEMENT * The "content div" ID should be equal to the "toggle links" ID + "_link" * In the example below "x" can have any value for a Link and Content pair, but * every pair should have its own unique value for x * * Hide/Show My List * * */ //DROPLIST FUNCTION function openInfo(whichDiv) { var theDiv = document.getElementById(whichDiv); var theDiv2 = document.getElementById(whichDiv + '_link'); if (theDiv.style.display == "block"){ theDiv.style.display = "none"; theDiv2.className ='ls-drop'; nudgeFirefox(); }else{ theDiv.style.display = "block"; theDiv2.className ='ls-close'; nudgeFirefox(); } } //www.webdeveloper.com/forum/showthread.php?t=82419 function nudgeFirefox(){ /* sort out a height problem in firefox */ document.getElementsByTagName('body')[0].style.width='99%'; document.getElementsByTagName('body')[0].style.width='auto'; } //DROPLIST STYLESHEET document.write("");