// JavaScript Document
// 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]='../img/cont/ip2010_10.jpg?&width=464&height=355&alt=The Angel of Cholesterol&border=0&link=projects/angel_cholesterol.html';
  KW_ARI[KW_ARI.length]='../img/cont/ip2008_01.jpg?&width=464&height=355&alt=Hero, Leader, God&title=Hero, Leader, God&border=0&link=projects/hero_leader_god.html';
//  KW_ARI[KW_ARI.length]='../img/cont/ip2008_02.jpg?&width=464&height=355&alt=Mickey Kamasutra&title=Mickey Kamasutra&border=0&link=projects/mickey_kamasutra.html';
//  KW_ARI[KW_ARI.length]='../img/cont/ip2008_03.jpg?&width=464&height=355&alt=Mickey Kamasutra&title=Mickey Kamasutra&border=0&link=projects/mickey_kamasutra.html';
  KW_ARI[KW_ARI.length]='../img/cont/ip2008_04.jpg?&width=464&height=355&alt=Mickey-Lenin&title=Mickey-Lenin&border=0&link=projects/mickey_lenin.html';
  KW_ARI[KW_ARI.length]='../img/cont/ip2008_05.jpg?&width=464&height=355&alt=Icon-caviar&title=Icon-caviar&border=0&link=projects/caviar.html';
  KW_ARI[KW_ARI.length]='../img/cont/ip2008_06.jpg?&width=464&height=355&alt=Mickey and Mini, Worker and Farmgirl&title=Mickey and Mini, Worker and Farmgirl&border=0&link=projects/mini_mickey_worker_farmgirl.html';
//  KW_ARI[KW_ARI.length]='../img/cont/ip2008_07.jpg?&width=464&height=355&alt=Banny Gazprom&title=Banny Gazprom&border=0&link=projects/banny_gazprom.html';
  KW_ARI[KW_ARI.length]='../img/cont/ip2008_08.jpg?&width=464&height=355&alt=This is my body&title=This is my body&border=0&link=projects/my_blood.html';
  KW_ARI[KW_ARI.length]='../img/cont/ip2008_09.jpg?&width=464&height=355&alt=This is my blood&title=This is my blood&border=0&link=projects/my_blood.html';
  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