// JavaScript Document
// Advanced Random Images Start
// Copyright 2001-2006 All rights reserved, by Paul Davis - www.kaosweaver.com
  var j="",d="",l="",m="",p="",q="",z="",KW_ARI= new Array()
  KW_ARI[KW_ARI.length]='/images/refresh1.jpg?&amp;width=700&amp;height=800&amp;alt="Cedar Straits Sunrise"=Refresh%201&amp;border=0&amp;link=picture1.htm';
  KW_ARI[KW_ARI.length]='/images/refresh2.jpg?&amp;width=700&amp;height=800&amp;alt="Morning"=Refresh%202&amp;border=0&amp;link=picture2.htm';
  KW_ARI[KW_ARI.length]='/images/refresh3.jpg?&amp;width=700&amp;height=800&amp;alt="Soybean Field Study"=Refresh%203&amp;border=0&amp;link=picture3.htm';
  KW_ARI[KW_ARI.length]='/images/refresh4.jpg?&amp;width=700&amp;height=800&amp;alt="Mills Island Mid-day"=Refresh%204&amp;border=0&amp;link=picture4.htm';
  KW_ARI[KW_ARI.length]='/images/refresh5.jpg?&amp;width=700&amp;height=800&amp;alt="Field #2"=Refresh%205&amp;border=0&amp;link=picture5.htm';
  KW_ARI[KW_ARI.length]='/images/refresh6.jpg?&amp;width=700&amp;height=800&amp;alt="Magneta Sunrise"=Refresh%206&amp;border=0&amp;link=picture11.htm';
  KW_ARI[KW_ARI.length]='/images/refresh7.jpg?&amp;width=700&amp;height=800&amp;alt="Mosquito Ditch"=Refresh%207&amp;border=0&amp;link=picture7.htm';
  KW_ARI[KW_ARI.length]='/images/refresh8.jpg?&amp;width=700&amp;height=800&amp;alt="Ocean Atlantic"=Refresh%208&amp;border=0&amp;link=picture13.htm';
  
  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('&amp;');
    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);
  }

 