function slide(F, B, D, E, C, A) { this.src = F; this.link = B; this.alt = D; this.text = E; this.target = C; this.attr = A; if (document.images) { this.image = new Image() } this.loaded = false; this.load = function() { if (!document.images) { return } if (!this.loaded) { this.image.src = this.src; this.image.alt = this.alt; this.loaded = true } }; this.hotlink = function() { var G; if (!this.link) { return } if (this.target) { if (this.attr) { G = window.open(this.link, this.target, this.attr) } else { G = window.open(this.link, this.target) } if (G && G.focus) { G.focus() } } else { location.href = this.link } } } function slideshow(A) { this.name = A; this.imgDir; this.repeat = true; this.prefetch = -1; this.image; this.textid; this.textarea; this.timeout = 3000; this.slides = new Array(); this.current = 0; this.timeoutid = 0; this.add_slide = function(B) { var C = this.slides.length; if (this.prefetch == -1) { B.load() } this.slides[C] = B }; this.play = function(B) { this.pause(); if (B) { this.timeout = B } if (typeof this.slides[this.current].timeout != "undefined") { B = this.slides[this.current].timeout } else { B = this.timeout } this.timeoutid = setTimeout(this.name + ".loop()", B) }; this.pause = function() { if (this.timeoutid != 0) { clearTimeout(this.timeoutid); this.timeoutid = 0 } }; this.update = function() { if (!this.valid_image()) { return } if (typeof this.pre_update_hook == "function") { this.pre_update_hook() } var B = this.slides[this.current]; var F = false; if (this.image && typeof this.image.filters != "undefined" && typeof this.image.filters[0] != "undefined") { F = true } B.load(); if (F) { if (B.filter && this.image.style && this.image.style.filter) { this.image.style.filter = B.filter } this.image.filters[0].Apply() } this.image.src = B.src; this.image.alt = B.image.alt; if (F) { this.image.filters[0].Play() } this.display_text(); if (typeof this.post_update_hook == "function") { this.post_update_hook() } if (this.prefetch > 0) { var C, E, D; C = this.current; E = this.current; D = 0; do { if (++C >= this.slides.length) { C = 0 } if (--E < 0) { E = this.slides.length - 1 } this.slides[C].load(); this.slides[E].load() } while (++D < this.prefetch) } }; this.goto_slide = function(B) { if (B == -1) { B = this.slides.length - 1 } if (B < this.slides.length && B >= 0) { this.current = B } this.update() }; this.goto_random_slide = function(B) { var C; if (this.slides.length > 1) { do { C = Math.floor(Math.random() * this.slides.length) } while (C == this.current); this.goto_slide(C) } }; this.next = function() { if (this.current < this.slides.length - 1) { this.current++ } else { if (this.repeat) { this.current = 0 } } this.update() }; this.previous = function() { if (this.current > 0) { this.current-- } else { if (this.repeat) { this.current = this.slides.length - 1 } } this.update() }; this.shuffle = function() { var D, E, B, C; B = new Array(); for (D = 0; D < this.slides.length; D++) { B[D] = this.slides[D] } C = new Array(); do { D = Math.floor(Math.random() * B.length); C[C.length] = B[D]; for (E = D + 1; E < B.length; E++) { B[E - 1] = B[E] } B.length-- } while (B.length); this.slides = C }; this.get_text = function() { return (this.slides[this.current].text) }; this.get_all_text = function(C, B) { all_text = ""; for (i = 0; i < this.slides.length; i++) { slide = this.slides[i]; if (slide.text) { all_text += C + slide.text + B } } return (all_text) }; this.display_text = function(B) { if (!B) { B = this.slides[this.current].text } if (this.textarea && typeof this.textarea.value != "undefined") { this.textarea.value = B } if (this.textid) { r = this.getElementById(this.textid); if (!r) { return false } if (typeof r.innerHTML == "undefined") { return false } r.innerHTML = B } }; this.hotlink = function() { this.slides[this.current].hotlink() }; this.save_position = function(B) { if (!B) { B = this.name + "_slideshow" } document.cookie = B + "=" + this.current }; this.restore_position = function(B) { if (!B) { B = this.name + "_slideshow" } var C = B + "="; if (document.cookie.length > 0) { offset = document.cookie.indexOf(C); if (offset != -1) { offset += C.length; end = document.cookie.indexOf(";", offset); if (end == -1) { end = document.cookie.length } this.current = parseInt(unescape(document.cookie.substring(offset, end))) } } }; this.noscript = function() { $html = "\n"; for (i = 0; i < this.slides.length; i++) { slide = this.slides[i]; $html += "<P>"; if (slide.link) { $html += '<a href="' + slide.link + '">' } $html += '<img src="' + slide.src + '" ALT="slideshow image">'; if (slide.link) { $html += "</a>" } if (slide.text) { $html += "<BR>\n" + slide.text } $html += "</P>\n\n" } $html = $html.replace(/\&/g, "&amp;"); $html = $html.replace(/</g, "&lt;"); $html = $html.replace(/>/g, "&gt;"); return ("<pre>" + $html + "</pre>") }; this.loop = function() { if (this.current < this.slides.length - 1) { next_slide = this.slides[this.current + 1]; if (next_slide.image.complete == null || next_slide.image.complete) { this.next() } } else { this.next() } this.play() }; this.valid_image = function() { if (!this.image) { return false } else { return true } }; this.getElementById = function(B) { if (document.getElementById) { return document.getElementById(B) } else { if (document.all) { return document.all[B] } else { if (document.layers) { return document.layers[B] } else { return undefined } } } }; this.set_image = function(B) { if (!document.images) { return } this.image = B }; this.set_textarea = function(B) { this.textarea = B; this.display_text() }; this.set_textid = function(B) { this.textid = B; this.display_text() } } SLIDES = new slideshow("SLIDES"); SLIDES.timeout = 2000; SLIDES.prefetch = -1; SLIDES.repeat = true; var theSlides = new Array(); var thelinks = new Array(); var theAltTexts = new Array(); theSlides.push("slideshow/images/clients160x104/airforce_logo.gif"); thelinks.push("http://www.airforce.com/"); theAltTexts.push("United States Air Force"); theSlides.push("slideshow/images/clients160x104/uta_logo.gif"); thelinks.push("http://www.utexas.edu/"); theAltTexts.push("University of Texas at Austin"); /* http://www.utexas.edu/ */theSlides.push("slideshow/images/clients160x104/usps_logo.gif"); thelinks.push("http://www.usps.gov/"); theAltTexts.push("United States Postal Service"); theSlides.push("slideshow/images/clients160x104/sears_logo.gif"); thelinks.push("http://sears.com/"); theAltTexts.push("Sears Department Stores"); theSlides.push("slideshow/images/clients160x104/borla_exhaust_logo.gif"); thelinks.push("http://www.borla.com/home.aspx"); theAltTexts.push("Borla Performance Parts"); theSlides.push("slideshow/images/clients160x104/chevron_logo.gif"); thelinks.push("http://chevron.com"); theAltTexts.push("Chevron Gasoline"); theSlides.push("slideshow/images/clients160x104/applebees_logo.gif"); thelinks.push("http://www.http://www.applebees.com/"); theAltTexts.push("Applebee's Restaurants"); /* http://www.applebees.com/ */theSlides.push("slideshow/images/clients160x104/lockheed_martin_logo.gif"); thelinks.push("http://www.lockheedmartin.com/"); theAltTexts.push("LockHeed Martin");/*http://www.lockheedmartin.com/*/theSlides.push("slideshow/images/clients160x104/raytheon_logo.gif"); thelinks.push("http://www.raytheon.com/"); theAltTexts.push("Raytheon Defense Technology");/*http://www.raytheon.com/*/theSlides.push("slideshow/images/clients160x104/711_logo.gif"); thelinks.push("http://7-eleven.com"); theAltTexts.push("7-Eleven"); theSlides.push("slideshow/images/clients160x104/kmart_logo.gif"); thelinks.push("http://www.kmart.com/"); theAltTexts.push("Kmart"); theSlides.push("slideshow/images/clients160x104/subway_logo.gif"); thelinks.push("http://www.subway.com/"); theAltTexts.push("Subway Restaurants"); theSlides.push("slideshow/images/clients160x104/bk_logo.gif"); thelinks.push("http://burgerking.com"); theAltTexts.push("Burger King"); theSlides.push("slideshow/images/clients160x104/quiznos_logo.gif"); thelinks.push("http://www.quiznos.com/"); theAltTexts.push("Quiznos Subs"); theSlides.push("slideshow/images/clients160x104/sheraton_logo.gif"); thelinks.push("http://www.starwoodhotels.com/sheraton/index.html"); theAltTexts.push("Sheraton Hotels"); theSlides.push("slideshow/images/clients160x104/holidayinn_logo.gif"); thelinks.push("http://holidayinn.com"); theAltTexts.push("Holiday Inn"); theSlides.push("slideshow/images/clients160x104/super8_logo.gif"); thelinks.push("http://www.super8.com/"); theAltTexts.push("Super8 Hotels"); theSlides.push("slideshow/images/clients160x104/roadwayinn_logo.gif"); thelinks.push("http://www.rodewayinn.com/"); theAltTexts.push("Rodeway Inn"); theSlides.push("slideshow/images/clients160x104/twc_logo.gif"); thelinks.push("http://www.timewarnercable.com/"); theAltTexts.push("Time Warner Cable"); theSlides.push("slideshow/images/clients160x104/sbarro_logo.gif"); thelinks.push("http://sbarro.com"); theAltTexts.push("Sbarro"); theSlides.push("slideshow/images/clients160x104/dq_logo.gif"); thelinks.push("http://www.dairyqueen.com/"); theAltTexts.push("Dairy Queen"); theSlides.push("slideshow/images/clients160x104/bestwestern_logo.gif"); thelinks.push("http://www.bestwestern.com/"); theAltTexts.push("Best Western Hotels"); theSlides.push("slideshow/images/clients160x104/dennys_logo.gif"); thelinks.push("http://www.dennys.com/"); theAltTexts.push("Denny's"); theSlides.push("slideshow/images/clients160x104/fuddruckers_logo.gif"); thelinks.push("http://www.fuddruckers.com/"); theAltTexts.push("Fuddruckers Restaurants"); theSlides.push("slideshow/images/clients160x104/cicis_logo.gif"); thelinks.push("http://cicis.com"); theAltTexts.push("Cici's Pizza"); theSlides.push("slideshow/images/clients160x104/brinker_logo.gif"); thelinks.push("http://brinker.com"); theAltTexts.push("Brinker International"); theSlides.push("slideshow/images/clients160x104/stanford_logo.gif"); thelinks.push("http://www.stanford.edu/"); theAltTexts.push("Stanfod University"); theSlides.push("slideshow/images/clients160x104/worldmission_logo.gif"); thelinks.push("http://www.worldmission.cc/"); theAltTexts.push("World Mission"); theSlides.push("slideshow/images/clients160x104/texasam_logo.gif"); thelinks.push("http://tamu.edu"); theAltTexts.push("Texas A&amp;M"); theSlides.push("slideshow/images/clients160x104/uc_logo.gif"); thelinks.push("http://www.universityofcalifornia.edu/"); theAltTexts.push("University of California"); theSlides.push("slideshow/images/clients160x104/americanlegion_logo.gif"); thelinks.push("http://www.legion.org/homepage.php"); theAltTexts.push("American Legion"); theSlides.push("slideshow/images/clients160x104/olympic_logo.gif"); thelinks.push("http://www.olympicairlines.com/"); theAltTexts.push("Olympic Airlines"); theSlides.push("slideshow/images/clients160x104/dickeys_logo.gif"); thelinks.push("http://www.dickeys.com/"); theAltTexts.push("Dickey's Bar-B-Que"); theSlides.push("slideshow/images/clients160x104/warrencounty_logo.gif"); thelinks.push("http://wcsdpa.org/"); theAltTexts.push("Warren County School District PA"); theSlides.push("slideshow/images/clients160x104/methodisthospital_logo.gif"); thelinks.push("http://www.methodisthealth.com"); theAltTexts.push("Methodist Health System"); theSlides.push("slideshow/images/clients160x104/cuppys_logo.gif"); thelinks.push("http://cuppyscoffee.com/"); theAltTexts.push("Cuppy's Coffee"); theSlides.push("slideshow/images/clients160x104/popeyes_logo.gif"); thelinks.push("http://www.popeyes.com"); theAltTexts.push("Popeye's Chicken"); theSlides.push("slideshow/images/clients160x104/mrjims_logo.gif"); thelinks.push("http://www.mrjims.com/"); theAltTexts.push("Mr. Jim's Pizza"); theSlides.push("slideshow/images/clients160x104/dunkindonuts_logo.gif"); thelinks.push("http://www.dunkindonuts.com/"); theAltTexts.push("Dunkin' Donuts"); theSlides.push("slideshow/images/clients160x104/army_logo.gif"); thelinks.push("http://www.army.mil/"); theAltTexts.push("United States Army"); theSlides.push("slideshow/images/clients160x104/UNC_logo.gif"); thelinks.push("http://www.unco.edu/"); theAltTexts.push("University of Northern Colorado"); theSlides.push("slideshow/images/clients160x104/navy_logo.gif"); thelinks.push("http://www.supsalv.org/nedu/nedu.htm.com/"); theAltTexts.push("Navy Experimental Diving Unit"); theSlides.push("slideshow/images/clients160x104/DOD_logo.gif"); thelinks.push("http://www.defense.gov/"); theAltTexts.push("United States Department of Defense"); /* http://www.defense.gov/ */for (i = 0; i < theSlides.length; i++) { s = new slide(); s.src = theSlides[i]; s.link = thelinks[i]; s.alt = theAltTexts[i]; s.target = "_blank"; s.text = unescape(""); s.attr = "width=1024, height=800,location=yes, menubar=no, resizable=yes, scrollbars=yes, status=yes, titlebar=no, toolbar=no, directories=no"; s.filter = ""; SLIDES.add_slide(s) };
