// JavaScript Document
var getElementsByTagName

xmlDoc=loadXMLDoc("MindsEyeGallery.xml");
x=xmlDoc.getElementsByTagName('artist');
a=xmlDoc.getElementsByTagName('BoteroURL');
b=xmlDoc.getElementsByTagName('ChagallURL');
c=xmlDoc.getElementsByTagName('DaliURL');
d=xmlDoc.getElementsByTagName('JohnsURL');
e=xmlDoc.getElementsByTagName('LerouxURL');
f=xmlDoc.getElementsByTagName('MiroURL');
g=xmlDoc.getElementsByTagName('PicassoURL');
h=xmlDoc.getElementsByTagName('QuinnURL');
j=xmlDoc.getElementsByTagName('RenoirURL');
k=xmlDoc.getElementsByTagName('RichardsonURL');
l=xmlDoc.getElementsByTagName('SantloferURL');
m=xmlDoc.getElementsByTagName('WarholURL');
n=xmlDoc.getElementsByTagName('WergerURL');
o=xmlDoc.getElementsByTagName('WesselmanURL');
p=xmlDoc.getElementsByTagName('AhearnDicksonURL');
q=xmlDoc.getElementsByTagName('MrBrainwashURL');
r=xmlDoc.getElementsByTagName('NeimanURL');
s=xmlDoc.getElementsByTagName('RuschaURL');
t=xmlDoc.getElementsByTagName('SmithURL');
u=xmlDoc.getElementsByTagName('YoungURL');
v=xmlDoc.getElementsByTagName('LakemanURL');

//<table width="80%" border="0" cellspacing="0" cellpadding="0">
  //<tr>
    //<td>&nbsp;</td>
    //<td>&nbsp;</td>
    //<td>&nbsp;</td>
  //</tr>
//</table>


for (i=0;i<x.length;i++)
{   

document.writeln('<table width="582" border="0" cellspacing="8" cellpadding="0">' + '<tr>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(p[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/AhearnDickson/TSSTNmini.jpg">' + '<br />');
document.writeln(x[i].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(a[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Botero/TN_MujerFumando_FB.jpg">');
document.writeln('<br />');
document.writeln(x[i+1].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(b[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Chagall/TN_LeRepasChezDryas_MC.jpg">');
document.writeln('<br />');
document.writeln(x[i+2].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');
document.writeln('</tr>' + '</table>');

document.writeln('<hr />');
document.writeln('<hr />');


document.writeln('<table width="462" border="0" cellspacing="6" cellpadding="0">' + '<tr>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(c[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Dali/TN_Moses_SD.jpg">');
document.writeln('<br />');
document.writeln(x[i+3].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');


document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(d[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Johns/TN_CupTwoPicasso_JJ.jpg">');
document.writeln('<br />');
document.writeln(x[i+4].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');


document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(v[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Lakeman/TNContainers455.jpg">');
document.writeln('<br />');
document.writeln(x[i+5].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');
document.writeln('</tr>' + '</table>');

document.writeln('<hr />');
document.writeln('<hr />');

document.writeln('<table width="462" border="0" cellspacing="6" cellpadding="0">' + '<tr>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(e[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Leroux/TN_EthanAssis.jpg">');
document.writeln('<br />');
document.writeln(x[i+6].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(f[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Miro/TN_Constellation-1_JM.jpg">');
document.writeln('<br />');
document.writeln(x[i+7].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(q[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/MrBrainwash/McCainObamaTNmini.jpg">');
document.writeln('<br />');
document.writeln(x[i+8].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');

document.writeln('</tr>' + '</table>');

document.writeln('<hr />');
document.writeln('<hr />');

document.writeln('<table width="462" border="0" cellspacing="6" cellpadding="0">' + '<tr>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(r[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Neiman/TNSantaAnita_LN.jpg">');
document.writeln('<br />');
document.writeln(x[i+9].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');


document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(g[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Picasso/TN_Jacqueline_PP.jpg">');
document.writeln('<br />');
document.writeln(x[i+10].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(h[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Quinn/TN_GlanceInTheMirror_AQ.jpg">');
document.writeln('<br />');
document.writeln(x[i+11].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');
document.writeln('</tr>' + '</table>');

document.writeln('<hr />');
document.writeln('<hr />');



document.writeln('<table width="462" border="0" cellspacing="6" cellpadding="0">' + '<tr>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(j[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Renoir/TN_LeChapeauEpingle_PR.jpg">');
document.writeln('<br />');
document.writeln(x[i+12].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(k[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Richardson/TN_OnwardsAndUpwards_RR.jpg">');
document.writeln('<br />');
document.writeln(x[i+13].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');


document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(s[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Ruscha/TNSex_ER.jpg">');
document.writeln('<br />');
document.writeln(x[i+14].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');
document.writeln('</td>');
document.writeln('<hr />');

document.writeln('</tr>' + '</table>');

document.writeln('<hr />');
document.writeln('<hr />');

document.writeln('<table width="462" border="0" cellspacing="6" cellpadding="0">' + '<tr>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(l[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Santlofer/TN_GoldMarilyn_JS.jpg">');
document.writeln('<br />');
document.writeln(x[i+15].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');


document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(t[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Smith/TN5CentShoeshine.jpg">');
document.writeln('<br />');
document.writeln(x[i+16].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(m[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Warhol/TN_Dracula_AW.jpg">');
document.writeln('<br />');
document.writeln(x[i+17].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');


document.writeln('</tr>' + '</table>');

document.writeln('<hr />');
document.writeln('<hr />');

document.writeln('<table width="462" border="0" cellspacing="6" cellpadding="0">' + '<tr>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(n[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Werger/TN_Distraction_AW.jpg">');
document.writeln('<br />');
document.writeln(x[i+18].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(o[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Wesselman/TN_LuLu_TW.jpg">');
document.writeln('<br />');
document.writeln(x[i+19].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');

document.writeln('<td>' + '<h2 class="artistName" align="center">');
document.writeln('<a href="');
document.writeln(u[i].childNodes[0].nodeValue + '"');
document.writeln('target="_blank">');
document.writeln('<img src="http://gallerymindseye.com/Young/TNMagnificent7.jpg">');
document.writeln('<br />');
document.writeln(x[i+20].childNodes[0].nodeValue);
document.writeln('</a>');
document.writeln('</h2>');

document.writeln('</tr>' + '</table>');

document.writeln('<hr />');
document.writeln('<hr />');
}
