/* * BS: 2005.11 * * If you're updating link/picture pairs, you'll need to update this file * and random_ad.php to change the initial item. Add a triplet to the end * of the variables here: * Picture * Caption * HrefLinks * with the proper variable. If you have no link, you still need to add * a value in HrefLinks, just make it an empty string. */ // Popup Window Funtion var win= null; function NewWindow(mypage,myname,w,h,scroll){ var winl = (screen.width-w)/2; var wint = (screen.height-h)/2; var settings ='height='+h+','; settings +='width='+w+','; settings +='top='+wint+','; settings +='left='+winl+','; settings +='scrollbars='+scroll+','; settings +='resizable=yes'; win=window.open(mypage,myname,settings); if(parseInt(navigator.appVersion) >= 4){win.window.focus();} } // (C) 2002 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header. /* BS -> Added this for JS random sorting of an array */ function randomOrderFunc(a, b){ return (Math.round(Math.random())-0.5); } // ============================== // Set the following variables... // ============================== // Set the slideshow speed (in milliseconds) var SlideShowSpeed = 15000; // Set the duration of crossfade (in seconds) var CrossFadeDuration = 3; var Picture = new Array(); // don't change this var Caption = new Array(); // don't change this var HrefLinks = new Array(); // don't change this var Order = new Array(); // don't change this // Specify the image files... // To add more images, just continue // the pattern, adding to the array below. // To use fewer images, remove lines // starting at the end of the Picture array. // Caution: The number of Pictures *must* // equal the number of Captions! Picture[0] = './images/ad/alp-ad.gif'; Picture[1] = './images/ad/allied-ad.gif'; //Picture[2] = './images/ad/bcs-ad.gif'; Picture[2] = './images/ad/conexbuff2.gif'; Picture[3] = './images/ad/ConSolAd.gif'; Picture[4] = './images/ad/GoMac.gif'; Picture[5] = './images/ad/kelley-ad.gif'; Picture[6] = './images/ad/lvbw_banner.gif'; Picture[7] = './images/ad/mollenberg-ad.gif'; Picture[8] = './images/ad/oneida_banner.gif'; Picture[9] = './images/ad/cir_banner.gif'; Picture[10] = './images/ad/rain_rent.gif'; Picture[11] = './images/ad/danforth.gif'; Picture[12] = './images/ad/tf_ad.gif'; Picture[13] = './images/ad/cfma_banner.jpg'; Picture[14] = './images/ad/despirt_banner.gif'; Picture[15] = './images/ad/mader_banner.gif'; Picture[16] = './images/ad/admar.gif'; Picture[17] = './images/ad/ingalls_banner.gif'; Picture[18] = './images/ad/first_niagara.gif'; Picture[19] = './images/ad/ps_banner.gif'; Picture[20] = './images/ad/united2.gif'; Picture[21] = './images/ad/bnr-upstate-rebar.png'; Picture[22] = './images/ad/bnr-buffalo-plastering.gif'; // Specify the Captions... // To add more captions, just continue // the pattern, adding to the array below. // To use fewer captions, remove lines // starting at the end of the Caption array. // Caution: The number of Captions *must* // equal the number of Pictures! Caption[0] = ""; Caption[1] = ""; Caption[2] = ""; Caption[3] = ""; Caption[4] = ""; Caption[5] = ""; Caption[6] = ""; Caption[7] = ""; Caption[8] = ""; Caption[9] = ""; Caption[10] = ""; Caption[11] = ""; Caption[12] = ""; Caption[13] = ""; Caption[14] = ""; Caption[15] = ""; Caption[16] = ""; Caption[17] = ""; Caption[18] = ""; Caption[19] = ""; Caption[20] = ""; Caption[21] = ""; Caption[22] = ""; // Specify the Links... // To add more links, just continue // the pattern, adding to the array below. // To use fewer links, remove lines // starting at the end of the links array. /* * Caution: The number of Captions *must* * equal the number of Pictures and Captions! * but if you leave any link as an empty-string, * it will remove the href so that there is no link. */ HrefLinks[0] = "http://www.alpsteel.com/"; HrefLinks[1] = "http://www.alliedmechanical.us/"; HrefLinks[2] = "http://www.bcsco.com/index_flash.asp"; HrefLinks[3] = "http://www.conexbuff.com/join_construction_exchange.php"; HrefLinks[4] = "http://www.constructive-solutions.com/"; HrefLinks[5] = "http://www.goergenmackwirth.com/"; HrefLinks[6] = "http://www.rekelley.com/"; HrefLinks[7] = "http://www.lvbwcpa.com/"; HrefLinks[8] = "http://www.mollenbergbetz.com/"; HrefLinks[9] = "http://www.oneidagroup.com"; HrefLinks[10] = "http://www.cirelectric.com/"; HrefLinks[11] = "http://rainforrent.com/"; HrefLinks[12] = ""; HrefLinks[13] = "http://thermalfoams.com/"; HrefLinks[14] = "http://www.cfma.org/Niag/index.html"; HrefLinks[15] = "http://despirt.com/"; HrefLinks[16] = "http://www.maderconstruct.com/"; HrefLinks[17] = "http://www.admarsupply.com/"; HrefLinks[18] = "http://ingallssite.com/"; HrefLinks[19] = "http://www.fnfg.com/"; HrefLinks[20] = "http://www.pattersonstevens.com/"; HrefLinks[21] = "http://www.unitedlabequip.com/"; HrefLinks[22] = "http://www.upstaterebar.com/"; HrefLinks[23] = "http://www.buffaloplastering.com/"; /* BS:2005.11 To randomly order the images. */ for(var i=0; i= (pss)){ jss=0; } tss = setTimeout('runSlideShow()', SlideShowSpeed); }