document.writeln('<SCRIPT TYPE="text\/javascript">'+
'\r\n<!--'+
'\r\n function slide(src,link,text,target,attr) {'+
'\r\n  this.src = src;'+
'\r\n  this.link = link;'+
'\r\n this.text = text;'+
'\r\n  this.target = target;'+
'\r\n this.attr = attr;'+
'\r\n  if (document.images) {'+
'\r\n    this.image = new Image();'+
'\r\n  }'+
'\r\n  this.loaded = false;'+
'\r\n  this.load = function() {'+
'\r\n    if (!document.images) { return; }'+
'\r\n    if (!this.loaded) {'+
'\r\n      this.image.src = this.src;'+
'\r\n      this.loaded = true;'+
'\r\n    }'+
'\r\n  }'+
'\r\n  this.hotlink = function() {'+
'\r\n    var mywindow;'+
'\r\n    if (!this.link) return;'+
'\r\n    if (this.target) {'+
'\r\n      if (this.attr) {'+
'\r\n        mywindow = window.open(this.link, this.target, this.attr);'+
'\r\n      } else {'+
'\r\n        mywindow = window.open(this.link, this.target);'+
'\r\n      }'+
'\r\n      if (mywindow && mywindow.focus) mywindow.focus();'+
'\r\n    } else {'+
'\r\n      location.href = this.link;'+
'\r\n    }'+
'\r\n  }'+
'\r\n}'+
'\r\n function slideshow( slideshowname ) {'+
'\r\n  this.name = slideshowname;'+
'\r\n  this.repeat = true;'+
'\r\n  this.prefetch = -1;'+
'\r\n  this.image;'+
'\r\n  this.textid;'+
'\r\n  this.textarea;'+
'\r\n  this.timeout = 3000;'+
'\r\n  this.slides = new Array();'+
'\r\n  this.current = 0;'+
'\r\n  this.timeoutid = 0;'+
'\r\n  this.add_slide = function(slide) {'+
'\r\n    var i = this.slides.length;'+
'\r\n    if (this.prefetch == -1) {'+
'\r\n      slide.load();'+
'\r\n    }'+
'\r\n    this.slides[i] = slide;'+
'\r\n  }'+
'\r\n  this.play = function(timeout) {'+
'\r\n    this.pause();'+
'\r\n    if (timeout) {'+
'\r\n      this.timeout = timeout;'+
'\r\n    }'+
'\r\n    if (typeof this.slides[ this.current ].timeout != \'undefined\') {'+
'\r\n      timeout = this.slides[ this.current ].timeout;'+
'\r\n    } else {'+
'\r\n      timeout = this.timeout;'+
'\r\n    }'+
'\r\n    this.timeoutid = setTimeout( this.name + ".loop()", timeout);'+
'\r\n  }'+
'\r\n  this.pause = function() {'+
'\r\n    if (this.timeoutid != 0) {'+
'\r\n      clearTimeout(this.timeoutid);'+
'\r\n      this.timeoutid = 0;'+
'\r\n    }'+
'\r\n  }'+
'\r\n  this.update = function() {'+
'\r\n    if (! this.valid_image()) { return; }'+
'\r\n    if (typeof this.pre_update_hook == \'function\') {'+
'\r\n      this.pre_update_hook();'+
'\r\n    }'+
'\r\n    var slide = this.slides[ this.current ];'+
'\r\n    var dofilter = false;'+
'\r\n    if (this.image &&'+
'\r\n        typeof this.image.filters != \'undefined\' &&'+
'\r\n        typeof this.image.filters[0] != \'undefined\') {'+
'\r\n      dofilter = true;'+
'\r\n    }'+
'\r\n    slide.load();'+
'\r\n    if (dofilter) {'+
'\r\n      if (slide.filter &&'+
'\r\n          this.image.style &&'+
'\r\n          this.image.style.filter) {'+
'\r\n        this.image.style.filter = slide.filter;'+
'\r\n      }'+
'\r\n      this.image.filters[0].Apply();'+
'\r\n    }'+
'\r\n    this.image.src = slide.image.src;'+
'\r\n    if (dofilter) {'+
'\r\n      this.image.filters[0].Play();'+
'\r\n    }'+
'\r\n    this.display_text();'+
'\r\n    if (typeof this.post_update_hook == \'function\') {'+
'\r\n      this.post_update_hook();'+
'\r\n    }'+
'\r\n    if (this.prefetch > 0) {'+
'\r\n      var next, prev, count;'+
'\r\n      next = this.current;'+
'\r\n      prev = this.current;'+
'\r\n      count = 0;'+
'\r\n      do {'+
'\r\n        if (++next >= this.slides.length) next = 0;'+
'\r\n        if (--prev < 0) prev = this.slides.length - 1;'+
'\r\n        this.slides[next].load();'+
'\r\n        this.slides[prev].load();'+
'\r\n      } while (++count < this.prefetch);'+
'\r\n    }'+
'\r\n  }'+
'\r\n  this.goto_slide = function(n) {'+
'\r\n    if (n == -1) {'+
'\r\n      n = this.slides.length - 1;'+
'\r\n    }'+
'\r\n      if (n < this.slides.length && n >= 0) {'+
'\r\n      this.current = n;'+
'\r\n    }'+
'\r\n    this.update();'+
'\r\n  }'+
'\r\n  this.goto_random_slide = function(include_current) {'+
'\r\n    var i;'+
'\r\n    if (this.slides.length > 1) {'+
'\r\n      do {'+
'\r\n        i = Math.floor(Math.random()*this.slides.length);'+
'\r\n      } while (i == this.current);'+
'\r\n      this.goto_slide(i);'+
'\r\n    }'+
'\r\n  }'+
'\r\n  this.next = function() {'+
'\r\n    if (this.current < this.slides.length - 1) {'+
'\r\n      this.current++;'+
'\r\n    } else if (this.repeat) {'+
'\r\n      this.current = 0;'+
'\r\n    }'+
'\r\n    this.update();'+
'\r\n  }'+
'\r\n  this.previous = function() {'+
'\r\n    if (this.current > 0) {'+
'\r\n      this.current--;'+
'\r\n    } else if (this.repeat) {'+
'\r\n      this.current = this.slides.length - 1;'+
'\r\n    }'+
'\r\n      this.update();'+
'\r\n  }'+
'\r\n  this.shuffle = function() {'+
'\r\n    var i, i2, slides_copy, slides_randomized;'+
'\r\n    slides_copy = new Array();'+
'\r\n    for (i = 0; i < this.slides.length; i++) {'+
'\r\n      slides_copy[i] = this.slides[i];'+
'\r\n    }'+
'\r\n    slides_randomized = new Array();'+
'\r\n    do {'+
'\r\n      i = Math.floor(Math.random()*slides_copy.length);'+
'\r\n      slides_randomized[ slides_randomized.length ] ='+
'\r\n        slides_copy[i];'+
'\r\n      for (i2 = i + 1; i2 < slides_copy.length; i2++) {'+
'\r\n        slides_copy[i2 - 1] = slides_copy[i2];'+
'\r\n      }'+
'\r\n      slides_copy.length--;'+
'\r\n    } while (slides_copy.length);'+
'\r\n    this.slides = slides_randomized;'+
'\r\n  }'+
'\r\n  this.get_text = function() {'+
'\r\n    return(this.slides[ this.current ].text);'+
'\r\n  }'+
'\r\n  this.get_all_text = function(before_slide, after_slide) {'+
'\r\n    all_text = "";'+
'\r\n    for (i=0; i < this.slides.length; i++) {'+
'\r\n      slide = this.slides[i];'+
'\r\n      if (slide.text) {'+
'\r\n        all_text += before_slide + slide.text + after_slide;'+
'\r\n      }'+
'\r\n    }'+
'\r\n    return(all_text);'+
'\r\n  }'+
'\r\n  this.display_text = function(text) {'+
'\r\n    if (!text) {'+
'\r\n      text = this.slides[ this.current ].text;'+
'\r\n    }'+
'\r\n    if (this.textarea && typeof this.textarea.value != \'undefined\') {'+
'\r\n      this.textarea.value = text;'+
'\r\n    }'+
'\r\n    if (this.textid) {'+
'\r\n      r = this.getElementById(this.textid);'+
'\r\n      if (!r) { return false; }'+
'\r\n      if (typeof r.innerHTML == \'undefined\') { return false; }'+
'\r\n      r.innerHTML = text;'+
'\r\n    }'+
'\r\n  }'+
'\r\n  this.hotlink = function() {'+
'\r\n    this.slides[ this.current ].hotlink();'+
'\r\n  }'+
'\r\n  this.save_position = function(cookiename) {'+
'\r\n    if (!cookiename) {'+
'\r\n      cookiename = this.name + \'_slideshow\';'+
'\r\n    }'+
'\r\n    document.cookie = cookiename + \'=\' + this.current;'+
'\r\n  }'+
'\r\n  this.restore_position = function(cookiename) {'+
'\r\n    if (!cookiename) {'+
'\r\n      cookiename = this.name + \'_slideshow\';'+
'\r\n    }'+
'\r\n  var search = cookiename + "=";'+
'\r\n    if (document.cookie.length > 0) {'+
'\r\n      offset = document.cookie.indexOf(search);'+
'\r\n      if (offset != -1) { '+
'\r\n        offset += search.length;'+
'\r\n        end = document.cookie.indexOf(";", offset);'+
'\r\n        if (end == -1) end = document.cookie.length;'+
'\r\n        this.current = parseInt(unescape(document.cookie.substring(offset, end)));'+
'\r\n        }'+
'\r\n     }'+
'\r\n  }'+
'\r\n  this.noscript = function() {'+
'\r\n    $html = "\\n";'+
'\r\n    for (i=0; i < this.slides.length; i++) {'+
'\r\n      slide = this.slides[i];'+
'\r\n      $html += \'<P>\';'+
'\r\n      if (slide.link) {'+
'\r\n        $html += \'<a href="\' + slide.link + \'">\';'+
'\r\n      }'+
'\r\n      $html += \'<img src="\' + slide.src + \'" ALT="slideshow image">\';'+
'\r\n      if (slide.link) {'+
'\r\n        $html += "<\\\/a>";'+
'\r\n      }'+
'\r\n      if (slide.text) {'+
'\r\n        $html += "<BR>\\n" + slide.text;'+
'\r\n      }'+
'\r\n      $html += "<\\\/P>" + "\\n\\n";'+
'\r\n    }'+
'\r\n    $html = $html.replace(\/\\&\/g, "&amp;" );'+
'\r\n    $html = $html.replace(\/<\/g, "&lt;" );'+
'\r\n    $html = $html.replace(\/>\/g, "&gt;" );'+
'\r\n    return(\'<pre>\' + $html + \'<\/pre>\');'+
'\r\n  }'+
'\r\n  this.loop = function() {'+
'\r\n    if (this.current < this.slides.length - 1) {'+
'\r\n      next_slide = this.slides[this.current + 1];'+
'\r\n      if (next_slide.image.complete == null || next_slide.image.complete) {'+
'\r\n        this.next();'+
'\r\n      }'+
'\r\n    } else { \/\/ we\'re at the last slide'+
'\r\n      this.next();'+
'\r\n    }'+
'\r\n    this.play( );'+
'\r\n  }'+
'\r\n  this.valid_image = function() {'+
'\r\n    if (!this.image)'+
'\r\n    {'+
'\r\n      return false;'+
'\r\n    }'+
'\r\n    else {'+
'\r\n      return true;'+
'\r\n    }'+
'\r\n  }'+
'\r\n  this.getElementById = function(element_id) {'+
'\r\n    if (document.getElementById) {'+
'\r\n      return document.getElementById(element_id);'+
'\r\n    }'+
'\r\n    else if (document.all) {'+
'\r\n      return document.all[element_id];'+
'\r\n    }'+
'\r\n    else if (document.layers) {'+
'\r\n      return document.layers[element_id];'+
'\r\n    } else {'+
'\r\n      return undefined;'+
'\r\n    }'+
'\r\n  }'+
'\r\n  this.set_image = function(imageobject) {'+
'\r\n    if (!document.images)'+
'\r\n      return;'+
'\r\n    this.image = imageobject;'+
'\r\n  }'+
'\r\n  this.set_textarea = function(textareaobject) {'+
'\r\n    this.textarea = textareaobject;'+
'\r\n    this.display_text();'+
'\r\n  }'+
'\r\n  this.set_textid = function(textidstr) {'+
'\r\n    this.textid = textidstr;'+
'\r\n    this.display_text();'+
'\r\n  }'+
'\r\n}'+
'\r\n	\/\/-->'+
'\r\n	<\/SCRIPT>'+
'\r\n	<SCRIPT TYPE="text\/javascript">'+
'\r\n	<!--'+
'\r\n	SLIDES = new slideshow("SLIDES");'+
'\r\n	SLIDES.timeout = 6000;'+
'\r\n	SLIDES.prefetch = -1;'+
'\r\n	SLIDES.repeat = true;'+
'\r\n	s = new slide();'+
'\r\n	s.src =  "http:\/\/www.missionagape.com\/wp-content\/uploads\/2010/The%20Better%20Way%20R.jpg";'+
'\r\n	s.text = unescape("The%20Better%20Way");'+
'\r\n	s.link = "http:\/\/missionagape.com\/?p=1176#more-1176";'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+
'\r\n	SLIDES.add_slide(s);'+
'\r\n	s = new slide();'+
'\r\n	s.src =  "http:\/\/www.missionagape.com\/wp-content\/uploads\/slideshow\/139431_gasp_as_you.jpg";'+
'\r\n	s.text = unescape("Human%20Trafficking%20Ministry");'+
'\r\n	s.link = "http:\/\/missionagape.com\/?page_id=867";'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+
'\r\n	SLIDES.add_slide(s);'+
'\r\n	s = new slide();'+
'\r\n	s.src =  "http:\/\/www.missionagape.com\/wp-content\/uploads\/slideshow\/Kairos Logo.jpg";'+
'\r\n	s.text = unescape("Kairos%20Church%20Planting");'+
'\r\n	s.link = "http:\/\/kairoschurchplanting.org";'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+
'\r\n	SLIDES.add_slide(s);'+
'\r\n	s = new slide();'+
'\r\n	s.src =  "http:\/\/www.missionagape.com\/wp-content\/uploads\/slideshow\/abuse_awareness_sign_resized.jpg";'+
'\r\n	s.text = unescape("Domestic%20Violence%20Training");'+
'\r\n	s.link = "http:\/\/missionagape.com\/?page_id=873";'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+
'\r\n	SLIDES.add_slide(s);'+
'\r\n	s = new slide();'+
'\r\n	s.src =  "http:\/\/www.missionagape.com\/wp-content\/uploads\/slideshow\/needPrayer.jpg";'+
'\r\n	s.text = unescape("Need%20Prayer%3F");'+
'\r\n	s.link = "mailto:office@agapecoc.com";'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+
'\r\n	SLIDES.add_slide(s);'+
'\r\n	s = new slide();'+
'\r\n	s.src =  "http:\/\/www.missionagape.com\/wp-content\/uploads\/slideshow\/Alan Trinadad2.jpg";'+
'\r\n	s.text = unescape("Agape%20Events%3F");'+
'\r\n	s.link = "http:\/\/missionagape.com\/?page_id=221";'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+
'\r\n	SLIDES.add_slide(s);'+
'\r\n	s = new slide();'+
'\r\n	s.src =  "http:\/\/www.missionagape.com\/wp-content\/uploads\/2009\/shadow-praying.jpg";'+
'\r\n	s.text = unescape("90X%20Prayer");'+
'\r\n	s.link = "http:\/\/missionagape.com\/?page_id=1141";'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+
'\r\n	SLIDES.add_slide(s);'+
'\r\n	s = new slide();'+
'\r\n	s.src =  "http:\/\/www.missionagape.com\/wp-content\/uploads\/2010\/graduation%20072.JPG";'+
'\r\n	s.text = unescape("Agape%20Home%20Communities");'+
'\r\n	s.link = "http:\/\/missionagape.com\/?page_id=23";'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+'\r\n	SLIDES.add_slide(s);'+
'\r\n	s = new slide();'+
'\r\n	s.src =  "http:\/\/www.missionagape.com\/wp-content\/uploads\/slideshow\/Lincoln HS.jpg";'+
'\r\n	s.text = unescape("Where%20Do%20We%20Meet%3F");'+
'\r\n	s.link = "http:\/\/missionagape.com\/?page_id=245";'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+
'\r\n	SLIDES.add_slide(s);'+
'\r\n	s = new slide();'+
'\r\n	s.target = "";'+
'\r\n	s.attr = "";'+
'\r\n	s.filter = "";'+
'\r\n	if (false) SLIDES.shuffle();'+
'\r\n	\/\/-->'+
'\r\n	<\/SCRIPT>'+
'\r\n	<DIV ID="SLIDESTEXT">'+
'\r\n	<SCRIPT type="text\/javascript">'+
'\r\n	<!--'+
'\r\n	nodivtext = SLIDES.get_all_text("<li>", "<p>\\n");'+
'\r\n	if (nodivtext) {'+
'\r\n  	document.write("<UL>\\n" + nodivtext + "\\n<\/UL>");'+
'\r\n	}'+
'\r\n	\/\/-->'+
'\r\n	<\/SCRIPT>'+
'\r\n	<\/DIV>'+
'\r\n	<P>'+
'\r\n	<a href="javascript:SLIDES.hotlink()"><img name="SLIDESIMG" src="http:\/\/www.missionagape.com\/wp-content\/uploads\/slideshow\/corinthslide.jpg"'+ 
'\r\n   STYLE="filter:progid:DXImageTransform.Microsoft.RandomDissolve()" BORDER=2px alt="Slideshow image"><\/A>'+
'\r\n	<SCRIPT type="text\/javascript">'+
'\r\n	<!--'+
'\r\n	if (document.images) {'+
'\r\n  	SLIDES.image = document.images.SLIDESIMG;'+
'\r\n  	SLIDES.textid = "SLIDESTEXT";'+
'\r\n  	SLIDES.update();'+
'\r\n  	SLIDES.play();'+
'\r\n	}'+
'\r\n	\/\/-->'+

'\r\n	<\/SCRIPT>'+
'\r\n	<BR CLEAR=all>'+
'\r\n	<A HREF="javascript:SLIDES.previous()"><img src="http://www.missionagape.com/wp-content/themes/Agape/images/SSPrevButton.gif"><\/A>'+
'\r\n	<A HREF="javascript:SLIDES.next()"><img src="http://www.missionagape.com/wp-content/themes/Agape/images/SSNextButton.gif"><\/A>'+
'\r\n	');