﻿<!--
// Advanced Random Images Start
// Copyright 2001-2002 All rights reserved, by Paul Davis - www.kaosweaver.com
function YMCAPhotos()
{
  var j,d="",l="",m="",p="",q="",z="",KW_ARI= new Array()
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/YMCA/1.jpg?&width=721&height=216&alt=YMCAPhotos&title=YMCAImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/YMCA/2.jpg&width=721&height=216&alt=YMCAPhotos&title=YMCAImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/YMCA/3.jpg?&width=721&height=216&alt=YMCAPhotos&title=YMCAImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/YMCA/4.jpg?&width=721&height=216&alt=YMCAPhotos&title=YMCAImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/YMCA/5.jpg?&width=721&height=216&alt=YMCAPhotos&title=YMCAImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/YMCA/6.jpg?&width=721&height=216&alt=YMCAPhotos&title=YMCAImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/YMCA/7.jpg?&width=721&height=216&alt=YMCAPhotos&title=YMCAImages&border=0';
  j=parseInt(Math.random()*KW_ARI.length);
  j=(isNaN(j))?0:j;
  if (KW_ARI[j].indexOf('?')==-1) {
    document.write("<img src='"+KW_ARI[j]+"'>");
  }
  else {
    nvp=KW_ARI[j].substring(KW_ARI[j].indexOf('?')+2).split('&');
    for(var i=0;i<nvp.length;i++) {
      sub=nvp[i].split('=');
   	  switch(sub[0]) {
 	    case 'link':
          l="<a href='"+unescape(sub[1])+"'>";
          p="</a>";
		  break;
	    case 'target':
          q=" target='"+unescape(sub[1])+"'";
  		  break;
  	    default:
          m+=" "+sub[0]+"='"+unescape(sub[1])+"'";
  		  break;
      }
    }
    z=(l!="")?((q!="")?l.substring(0,l.length-1)+q+">":l):"";
    z+="<img src='"+KW_ARI[j].substring(0,KW_ARI[j].indexOf('?'))+"'"+m+">"+p;
  document.write(z);
  }
 }
 
 function AIMPhotos()
{
  var j,d="",l="",m="",p="",q="",z="",KW_ARI= new Array()
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/AIM/1.jpg?&width=721&height=216&alt=CampAIMPhotos&title=CampAIMImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/AIM/2.jpg?&width=721&height=216&alt=CampAIMPhotos&title=CampAIMImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/AIM/3.jpg?&width=721&height=216&alt=CampAIMPhotos&title=CampAIMImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/AIM/4.jpg?&width=721&height=216&alt=CampAIMPhotos&title=CampAIMImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/AIM/5.jpg?&width=721&height=216&alt=CampAIMPhotos&title=CampAIMImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/AIM/6.jpg?&width=721&height=216&alt=CampAIMPhotos&title=CampAIMImages&border=0';
  j=parseInt(Math.random()*KW_ARI.length);
  j=(isNaN(j))?0:j;
  if (KW_ARI[j].indexOf('?')==-1) {
    document.write("<img src='"+KW_ARI[j]+"'>");
  }
  else {
    nvp=KW_ARI[j].substring(KW_ARI[j].indexOf('?')+2).split('&');
    for(var i=0;i<nvp.length;i++) {
      sub=nvp[i].split('=');
   	  switch(sub[0]) {
 	    case 'link':
          l="<a href='"+unescape(sub[1])+"'>";
          p="</a>";
		  break;
	    case 'target':
          q=" target='"+unescape(sub[1])+"'";
  		  break;
  	    default:
          m+=" "+sub[0]+"='"+unescape(sub[1])+"'";
  		  break;
      }
    }
    z=(l!="")?((q!="")?l.substring(0,l.length-1)+q+">":l):"";
    z+="<img src='"+KW_ARI[j].substring(0,KW_ARI[j].indexOf('?'))+"'"+m+">"+p;
  document.write(z);
  }
 }

function PrincessPhotos()
{
  var j,d="",l="",m="",p="",q="",z="",KW_ARI= new Array()
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/1.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/2.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/3.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/4.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/5.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/6.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/7.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/8.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/9.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Princess/10.jpg?&width=721&height=216&alt=PrincessPhotos&title=PrincessImages&border=0';  
  j=parseInt(Math.random()*KW_ARI.length);
  j=(isNaN(j))?0:j;
  if (KW_ARI[j].indexOf('?')==-1) {
    document.write("<img src='"+KW_ARI[j]+"'>");
  }
  else {
    nvp=KW_ARI[j].substring(KW_ARI[j].indexOf('?')+2).split('&');
    for(var i=0;i<nvp.length;i++) {
      sub=nvp[i].split('=');
   	  switch(sub[0]) {
 	    case 'link':
          l="<a href='"+unescape(sub[1])+"'>";
          p="</a>";
		  break;
	    case 'target':
          q=" target='"+unescape(sub[1])+"'";
  		  break;
  	    default:
          m+=" "+sub[0]+"='"+unescape(sub[1])+"'";
  		  break;
      }
    }
    z=(l!="")?((q!="")?l.substring(0,l.length-1)+q+">":l):"";
    z+="<img src='"+KW_ARI[j].substring(0,KW_ARI[j].indexOf('?'))+"'"+m+">"+p;
  document.write(z);
  }
 }
 
 function TrailblazersPhotos()
{
  var j,d="",l="",m="",p="",q="",z="",KW_ARI= new Array()
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Trailblazers/1.jpg?&width=721&height=216&alt=TrailblazersPhotos&title=TrailblazersImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Trailblazers/2.jpg?&width=721&height=216&alt=TrailblazersPhotos&title=TrailblazersImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Trailblazers/3.jpg?&width=721&height=216&alt=TrailblazersPhotos&title=TrailblazersImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Trailblazers/4.jpg?&width=721&height=216&alt=TrailblazersPhotos&title=TrailblazersImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Trailblazers/5.jpg?&width=721&height=216&alt=TrailblazersPhotos&title=TrailblazersImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Trailblazers/6.jpg?&width=721&height=216&alt=TrailblazersPhotos&title=TrailblazersImages&border=0';
  j=parseInt(Math.random()*KW_ARI.length);
  j=parseInt(Math.random()*KW_ARI.length);
  j=(isNaN(j))?0:j;
  if (KW_ARI[j].indexOf('?')==-1) {
    document.write("<img src='"+KW_ARI[j]+"'>");
  }
  else {
    nvp=KW_ARI[j].substring(KW_ARI[j].indexOf('?')+2).split('&');
    for(var i=0;i<nvp.length;i++) {
      sub=nvp[i].split('=');
   	  switch(sub[0]) {
 	    case 'link':
          l="<a href='"+unescape(sub[1])+"'>";
          p="</a>";
		  break;
	    case 'target':
          q=" target='"+unescape(sub[1])+"'";
  		  break;
  	    default:
          m+=" "+sub[0]+"='"+unescape(sub[1])+"'";
  		  break;
      }
    }
    z=(l!="")?((q!="")?l.substring(0,l.length-1)+q+">":l):"";
    z+="<img src='"+KW_ARI[j].substring(0,KW_ARI[j].indexOf('?'))+"'"+m+">"+p;
  document.write(z);
  }
 }
 
  function GuidePhotos()
{
  var j,d="",l="",m="",p="",q="",z="",KW_ARI= new Array()
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Guide/1.jpg?&width=721&height=216&alt=GuidePhotos&title=GuideImages&border=0';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Guide/2.jpg';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Guide/3.jpg';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Guide/4.jpg';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Guide/5.jpg';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Guide/6.jpg';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Guide/7.jpg';
  KW_ARI[KW_ARI.length]='http://www.southhillsareaymca.org/Photos/Guide/8.jpg';
  j=parseInt(Math.random()*KW_ARI.length);
  j=(isNaN(j))?0:j;
  if (KW_ARI[j].indexOf('?')==-1) {
    document.write("<img src='"+KW_ARI[j]+"'>");
  }
  else {
    nvp=KW_ARI[j].substring(KW_ARI[j].indexOf('?')+2).split('&');
    for(var i=0;i<nvp.length;i++) {
      sub=nvp[i].split('=');
   	  switch(sub[0]) {
 	    case 'link':
          l="<a href='"+unescape(sub[1])+"'>";
          p="</a>";
		  break;
	    case 'target':
          q=" target='"+unescape(sub[1])+"'";
  		  break;
  	    default:
          m+=" "+sub[0]+"='"+unescape(sub[1])+"'";
  		  break;
      }
    }
    z=(l!="")?((q!="")?l.substring(0,l.length-1)+q+">":l):"";
    z+="<img src='"+KW_ARI[j].substring(0,KW_ARI[j].indexOf('?'))+"'"+m+">"+p;
  document.write(z);
  }
 }
 
//-->

