// Advanced Random Images Start
// Copyright 2001-2002 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]='http://www.tjc.edu/tjc.edu_homepage_files/graphic_image_files/homepage_images/icons/nutcracker.png?&width=180&height=111&name=Nutcracker&alt=Nutcracker&border=0&link=http://www.tjc.edu/spotlight/webpage/nutcracker.htm&target=_blank';   


//KW_ARI[KW_ARI.length]='http://www.tjc.edu/tjc.edu_homepage_files/graphic_image_files/homepage_images/icons/homecoming.png?&width=180&height=111&name=Homecoming 2009&alt=Homecoming 2009&border=0&link=http://www2.tjc.edu/homecoming/&target=_blank';   

//KW_ARI[KW_ARI.length]='http://www.tjc.edu/tjc.edu_homepage_files/graphic_image_files/homepage_images/icons/apache-preview.png?&width=180&height=111&name=Apache Preview&alt=Apache Preview&border=0&link=http://www.tjc.edu/preview/&target=_blank';   

KW_ARI[KW_ARI.length]='http://www.tjc.edu/tjc.edu_homepage_files/graphic_image_files/homepage_images/icons/180x111_Athletics0712.jpg?&width=180&height=111&name=Apache Athletics&alt=Apache Athletics&border=0&link=http://www.apacheathletics.com/&target=_blank';   

KW_ARI[KW_ARI.length]='http://www.tjc.edu/tjc.edu_homepage_files/graphic_image_files/homepage_images/icons/180x111_Belles0712.jpg?&width=180&height=111&name=Apache Belles&alt=Apache Belles&border=0&link=http://www.apachebelles.com/&target=_blank';

KW_ARI[KW_ARI.length]='http://www.tjc.edu/tjc.edu_homepage_files/graphic_image_files/homepage_images/icons/180x111_Athletics0712.jpg?&width=180&height=111&name=Apache Athletics&alt=Apache Athletics&border=0&link=http://www.apacheathletics.com/&target=_blank';  

KW_ARI[KW_ARI.length]='http://www.tjc.edu/tjc.edu_homepage_files/graphic_image_files/homepage_images/icons/180x111_Band0712.jpg?&width=180&height=111&name=TJC Band&alt=TJC Band&border=0&link=http://www.tjc.edu/band&target=_blank';



// Advanced Random Images Start
// Copyright 2001-2002 All rights reserved, by Paul Davis - www.kaosweaver.com
  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);
  }

// Advanced Random Images End