var HowManyOnInRow = 2;
var HowManyOnInRow = 3;
var ColumnWidth = "33.3%";
var HowManyOnPage = HowManyOnInRow*3;

// Figures out what page you are on
var stringloc4 = unescape(document.location.toString());
var stringloc=stringloc4.toLowerCase();

var NameLink = new Array(




"111. Tinnetta Bell", "http://www.mastersofthearts.com/art_tinnettabell.php"
,"110. Mary  Mullarkey", "http://www.mastersofthearts.com/art_marymullarkey.php"
,"109. Lee-ann Heath", "http://www.mastersofthearts.com/art_leeannheath.php"
,"108. Huang Landy", "http://www.mastersofthearts.com/art_huanglandy.php"
,"107. Kishor Singh", "http://www.mastersofthearts.com/art_kishorsingh.php"
,"106. Odes Roberts Sr.", "http://www.mastersofthearts.com/art_odesrobertssr.php"
,"105. Mr. S Bandyopadhyay", "http://www.mastersofthearts.com/art_mrsaumyabandyopadhyay.php"
,"104. Kristi Elias", "http://www.mastersofthearts.com/art_kristielias.php"
,"103. Jimmy Barfield", "http://www.mastersofthearts.com/art_jimmybarfield.php"
,"102. KimaKika Selezneff Aleman", "http://www.mastersofthearts.com/art_kikaselezneffaleman.php"
,"101. Bellucci Giuseppe", "http://www.mastersofthearts.com/art_belluccigiuseppe.php"
,"100. Sinisa Prvanov", "http://www.mastersofthearts.com/art_sinisaprvanov.php"
,"99. Ana Jauregui", "http://www.mastersofthearts.com/art_anajauregui.php"
,"98. Lionel Le Jeune", "http://www.mastersofthearts.com/art_lionellejeune.php"		
,"97. Glenn Brady", "http://www.mastersofthearts.com/art_glennbrady.php"	
,"96. H Niedt", "http://www.mastersofthearts.com/art_hniedt.php"
,"95. Marin Kushisnki", "http://www.mastersofthearts.com/art_marinkushisnki.php"
,"94. Kishor Singh", "http://www.mastersofthearts.com/art_kishorsingh.php"
,"93. Chelin Sanjuan", "http://www.mastersofthearts.com/art_chelinsanjuan.php"
,"92. Sudhir Pillai", "http://www.mastersofthearts.com/art_sudhirpillai.php"
,"91. Tsering Nyandak", "http://www.mastersofthearts.com/art_tseringnyandakn.php"
,"90. Nadia Khan", "http://www.mastersofthearts.com/art_nadiakhan.php"
,"89. Daune Sheri", "http://www.mastersofthearts.com/art_daunesheri.php"
,"88. Michael Pasko", "http://www.mastersofthearts.com/art_michaelpasko.php"
,"87. Shakeel Siddiqui", "http://www.mastersofthearts.com/art_shakeelsiddiqui.php"
,"86. Michael Palmer", "http://www.mastersofthearts.com/art_michaelpalmer.php"	
,"85. Natalia Lopez", "http://www.mastersofthearts.com/art_natalialopez.php"		 
,"84. Lawrence Jones", "http://www.mastersofthearts.com/art_lawrencejones.php"			 
,"83. Michael Ingulli", "http://www.mastersofthearts.com/art_michaelingulli.php" 
,"82. Katherine Vecca", "http://www.mastersofthearts.com/art_katherinezecca.php" 
,"81. John VanSpronsen", "http://www.mastersofthearts.com/art_johnvanspronsen.php" 
,"80. Mark Daigle", "http://www.mastersofthearts.com/art_markdaigle.php" 
,"79. Robertjames Lawson", "http://www.mastersofthearts.com/art_robertjameslawson.php" 
,"78. Sanjay Punekar", "http://www.mastersofthearts.com/art_sanjaypunekar.php"
,"77. Manjunath Lakshman", "http://www.mastersofthearts.com/art_manjunathlakshman.php"
,"76. Paripoorn Trivedi", "http://www.mastersofthearts.com/art_paripoorntrivedi.php"
,"75. Kommissar Hjuler", "http://www.mastersofthearts.com/art_kommissarhjuler.php"
,"74. Marie Ban", "http://www.mastersofthearts.com/art_marieban.php"
,"73. Nicholas Morgan", "http://www.mastersofthearts.com/art_nicholasmorgan.php"
,"72. Troy David", "http://www.mastersofthearts.com/art_troydavid.php"
,"71. Marin Kushinski", "http://www.mastersofthearts.com/art_marinkushinski.php"
,"70. Jarrette Atkins", "http://www.mastersofthearts.com/art_jatkins.php"
,"69. S Jayaraj", "http://www.mastersofthearts.com/art_sjayaraj.php"
,"68. Jeff Von Cooper", "http://www.mastersofthearts.com/art_jeffvoncooper.php"	 
,"67. Derek McCrea", "http://www.mastersofthearts.com/art_derekmccrea.php"
,"66. David Devlin", "http://www.mastersofthearts.com/art_daviddevlin.php"
,"65. C.T. Rasmussen", "http://www.mastersofthearts.com/art_ctrasmussen.php"
,"64. Bo Li", "http://www.mastersofthearts.com/art_boli.php"
,"63. Bernd Wachtmeister", "http://www.mastersofthearts.com/art_berndwachtmeister.php"
,"62. Andy Kim", "http://www.mastersofthearts.com/art_andykiml.php"
,"61. Alaykumar Ghoshal", "http://www.mastersofthearts.com/art_alaykumarghoshal.php"
,"60. Lydia Lee", "http://www.mastersofthearts.com/art_lydialee.php"
,"59. Aaron Toh", "http://www.mastersofthearts.com/art_aarontoh.php"
,"58. Abhilasha Singh", "http://www.mastersofthearts.com/art_abhilashasingh.php"
,"57. Shawn Summerhill", "http://www.mastersofthearts.com/art_shawnsummerhill.php"
,"56. Marcia Pinho", "http://www.mastersofthearts.com/art_marciapinho.php"
,"55. Lorette", "http://www.mastersofthearts.com/art_lorette.php"
,"54. Jane Cartney", "http://www.mastersofthearts.com/art_janecartney.php"	
,"53. Henry Bateman", "http://www.mastersofthearts.com/art_henrybateman.php"
,"52. Heinz", "http://www.mastersofthearts.com/art_heinz.php"
,"51. Chad Amundsen", "http://www.mastersofthearts.com/art_chadamundsen.php"
,"50. Boro Ivetic", "http://www.mastersofthearts.com/art_boroivetic.php"
,"49. Baldemar Vargasa", "http://www.mastersofthearts.com/art_baldemarvargas.php"
,"48. Claudio Parentela", "http://www.mastersofthearts.com/art_claudioparentela.php"
,"47. Andy Reay", "http://www.mastersofthearts.com/art_andyreay.php"			
,"46. Valeriy Grachov", "http://www.mastersofthearts.com/art_valeriygrachov.php" 
,"45. Scott Andrew Spencer", "http://www.mastersofthearts.com/art_scottandrew.php"
,"44. Jared Martinez", "http://www.mastersofthearts.com/art_jaredmartinez.php"
,"43. Ahmad Elias", "http://www.mastersofthearts.com/art_ahmadrlias.php"
,"42. Mary Frey", "http://www.mastersofthearts.com/art_maryfrey.php"
,"41. Sannib", "http://www.mastersofthearts.com/art_sannib.php"
,"40. Ozgur Kerembulur", "http://www.mastersofthearts.com/art_ozgurkerembulur.php"
,"39. Aperr", "http://www.mastersofthearts.com/art_aper.php"
,"38. Gina C", "http://www.mastersofthearts.com/art_ginac.php"
,"37. Garett Hingst", "http://www.mastersofthearts.com/art_garetthingst.php"
,"36. C A Durbin", "http://www.mastersofthearts.com/art_cadurbin.php"
,"35. Anthony M Robinson", "http://www.mastersofthearts.com/art_anthonymrobinson.php"
,"34. A Cheng", "http://www.mastersofthearts.com/art_acheng.php"
,"33. Duquenne", "http://www.mastersofthearts.com/art_duquenne.php"
,"32. Claudio Parentela", "http://www.mastersofthearts.com/art_cparentela.php"
,"31. Jose De La Barra", "http://www.mastersofthearts.com/art_josedelabarra.php"
,"30. Dinnis Murphy", "http://www.mastersofthearts.com/art_dinnismurphy.php"
,"29. Chadd Gunton", "http://www.mastersofthearts.com/art_chaddgunton.php"
,"28. Z Con", "http://www.mastersofthearts.com/art_zcon.php"
,"27. Johanna Fredes", "http://www.mastersofthearts.com/art_johannafredes.php"
,"26. Skripka", "http://www.mastersofthearts.com/art_skripka.php"
,"25. Belgian", "http://www.mastersofthearts.com/art_belgian.php"
,"24. Dana Harper", "http://www.mastersofthearts.com/art_danaharper.php"
,"23. Davic", "http://www.mastersofthearts.com/art_davic.php"
,"22. Dholl", "http://www.mastersofthearts.com/art_dholl.php"
,"21. Gilad", "http://www.mastersofthearts.com/art_gilad.php"
,"20. David Prissel", "http://www.mastersofthearts.com/art_davidprissel.php"
,"19. Nebu", "http://www.mastersofthearts.com/art_nebu.php"
,"18. Narazyan", "http://www.mastersofthearts.com/art_narazyan.php"
,"17. Vlatsenko", "http://www.mastersofthearts.com/art_vlatsenko.php"
,"16. Francine Bradette", "http://www.mastersofthearts.com/art_francinebradette.php"
,"15. Peggy Garr", "http://www.mastersofthearts.com/art_peggygarr.php"
,"14. Jon Calvert", "http://www.mastersofthearts.com/art_joncalvert.php"
,"13. Cecilia Ferreira", "http://www.mastersofthearts.com/art_ceciliaferreira.php"
,"12. Jose Miguel", "http://www.mastersofthearts.com/art_josemiguel.php"
,"11. CoCo", "http://www.mastersofthearts.com/art_coco.php"
,"10. Alan Hinkhouse", "http://www.mastersofthearts.com/art_alanhinkhouse.php"
,"9. Katerina Koukiotis", "http://www.mastersofthearts.com/art_kkoukiotis.php"
,"8. K Hress", "http://www.mastersofthearts.com/art_khress.php"
,"7. Megan Sell", "http://www.mastersofthearts.com/art_megansell.php"
,"6. Soin Love", "http://www.mastersofthearts.com/art_soinlove.php"
,"5. George Sakelaris", "http://www.mastersofthearts.com/art_georgesakelaris.php"
,"4. Rose Rockford", "http://www.mastersofthearts.com/art_roserockford.php"
,"3. Linda Mason", "http://www.mastersofthearts.com/art_lindamason.php"
,"2. Michelle Terry", "http://www.mastersofthearts.com/art_michelleterry.php"
,"1. Valerie X Armstrong", "http://www.mastersofthearts.com/art_valeriexarmstrong.php"
	);

if (stringloc.lastIndexOf(".php?page=") == -1) {
	var ThisPageNumber=1;
	var RealPageNumber = 0;
	}
else {
	var URLcutUP = stringloc.split(".php?page=");
	var RealPageNumber = parseInt(URLcutUP[1]);
	var ThisPageNumber = ((parseInt(URLcutUP[1]))+1);
	if (ThisPageNumber=="") { ThisPageNumber = 1; }
	}
var StartAt = (((ThisPageNumber*HowManyOnPage)-HowManyOnPage));
var NextPageCnt = ThisPageNumber;
     NextPageCnt = NextPageCnt+1;

if (stringloc.lastIndexOf(".php") == -1) {
	PlaceMainURL = stringloc+"art_gallery.php";
	AllURLCutURL ="art_gallery.php?page=0";
	}
else if (stringloc.lastIndexOf("?page=") != -1) {
	AllininURLCut = stringloc.split("?page=");
	PlaceMainURL = AllininURLCut[0]+"?page="+NextPageCnt;
	AllURLCutURL = AllininURLCut[0]+"?page=0";
	}
else {
	PlaceMainURL = stringloc+"?page="+NextPageCnt;
	AllURLCutURL = stringloc+"?page=0";
	}
//document.write('<img src="images/gallery/gallery_head.gif" alt="all types of artists" width="350" height="30">');
document.write('<span class="header">SELECT AN ARTISTS</span>');
document.write('<table width="100%"><tr><td valign="top" width="'+ColumnWidth+'">');

GenCounter=1; Counter=1; CounterCells=1;
//StartAt = StartAt-1;
if (StartAt == -1) { StartAt = 0; }
for (var loop = StartAt; loop < NameLink.length; loop++) {
	PersonsName = NameLink[loop]; loop++; PersonsLink = NameLink[loop];
	PersonsLink = PersonsLink+"?page="+RealPageNumber;
	document.write('<a href="'+PersonsLink+'">'+PersonsName+'</a><br>');
	if (CounterCells == HowManyOnInRow && Counter != HowManyOnPage) {
	document.write('</td><td valign="top" width="'+ColumnWidth+'">');
		CounterCells=1;
		}
	else { CounterCells++; }
	GenCounter=loop+1;
	if (Counter == HowManyOnPage) { loop = 99999999999; } else { Counter++; }
	}

	document.write('</td></tr></table>');

	document.write('<table width="93%" border="0" height="35"><tr><td align="right" valign="middle" width="'+ColumnWidth+'">');
if (GenCounter == NameLink.length) { loop = NameLink.length; }
else { }

if (loop == 100000000000) {
	document.write('<a href="'+PlaceMainURL+'">MORE ARTISTS &raquo;</a>');
	}
else {
	document.write('<a href="'+AllURLCutURL+'">BACK TO THE BEGINNING &raquo;</a>');
	}
	document.write('</td></tr></table>');
