"; $urlIcon = ""; $audioIcon = ""; $videoIcon = ""; $artIcon = ""; $readEssay = ""; function spacer ($width, $height, $border) {// generate a properly sized spacer gif $spacer = ""; return $spacer; } function eventImage ($name, $id) {// generate a named 'more info' event image $eventImage = "\n\t\t\t" . ""; return $eventImage; } // generates a random image that is not empty // used on home page function randomizer ($rowsFound, $allArtwork) { global $randomImage; $randomImage = rand (0, ($rowsFound - 1)); // check again for empty image checkForImage ($rowsFound, $randomImage, $allArtwork); } // this function checks if there is an image available function checkForImage ($rowsFound, $randomImage, $allArtwork) {// used on home page if ($allArtwork[$randomImage][2] == NULL) { // re-generate number randomizer ($rowsFound, $allArtwork); } else { return $randomImage; } } // function that generates the correct body tag after it checks what section we're in function bodyTag ($nav) { global $body; // bg color $bgColor = "bgcolor=\"#ffffff\""; // pre loads $preLoad = "MM_preloadImages('interface2/events_f2.gif','interface2/events_f3.gif','interface2/essays_f2.gif','interface2/essays_f3.gif','interface2/curators_f2.gif','interface2/curators_f3.gif','interface2/artists_f2.gif','interface2/artists_f3.gif','interface2/symposium_f2.gif','interface2/symposium_f3.gif','interface2/staff_f2.gif','interface2/staff_f3.gif','interface2/sponsors_f2.gif','interface2/sponsors_f3.gif');"; // margins $margins = "marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" leftmargin=\"0\""; if ($nav == "artists") { // the correct on load functions $navState = "MM_nbGroup('down','navbar1','artists','interface2/artists_f3.gif',1); MM_nbGroup('down','navbar2','head','interface2/head_f7.gif',1);"; // create correct on load functions $loader = "onLoad=\"" . $preload . " " . $navState . "\""; } else if ($nav == "curators") { // the correct on load functions $navState = "MM_nbGroup('down','navbar1','curators','interface2/curators_f3.gif',1); MM_nbGroup('down','navbar2','head','interface2/head_f6.gif',1);"; // create correct on load functions $loader = "onLoad=\"" . $preload . " " . $navState . "\""; } else if ($nav == "home") { // the correct on load functions $navState = ""; // create correct on load functions $loader = "onLoad=\"" . $preload . " " . $navState . "\""; } else if ($nav == "events") { // the correct on load functions $navState = "MM_nbGroup('down','navbar1','events','interface2/events_f3.gif',1); MM_nbGroup('down','navbar2','head','interface2/head_f4.gif',1);"; // create correct on load functions $loader = "onLoad=\"" . $preLoad . " " . $navState . "\""; } else if ($nav == "essays") { // the correct on load functions $navState = "MM_nbGroup('down','navbar1','essays','interface2/essays_f3.gif',1); MM_nbGroup('down','navbar2','head','interface2/head_f5.gif',1);"; // create correct on load functions $loader = "onLoad=\"" . $preload . " " . $navState . "\""; } else if ($nav == "staff") { // the correct on load functions $navState = "MM_nbGroup('down','navbar1','staff','interface2/staff_f3.gif',1); MM_nbGroup('down','navbar2','head','interface2/head_f9.gif',1);"; // create correct on load functions $loader = "onLoad=\"" . $preload . " " . $navState . "\""; } else if ($nav == "sponsors") { // the correct on load functions $navState = "MM_nbGroup('down','navbar1','sponsors','interface2/sponsors_f3.gif',1); MM_nbGroup('down','navbar2','head','interface2/head_f10.gif',1);"; // create correct on load functions $loader = "onLoad=\"" . $preload . " " . $navState . "\""; } $body = ""; return $body; } ?>