an array in real life. Here’s a real ZetaBoards modification that utilizes an array. //Modification provided by Joe of http://outlineforum.com var countries = [], i = 0; countries[i++] = ["United States", "http://z3.ifrm.com/212/175/0/p336107/us.gif"]; countries[i++] = ["USA", "http://z3.ifrm.com/212/175/0/p336107/us.gif"]; countries[i++] = ["United States of America", "http://z3.ifrm.com/212/175/0/p336107/us.gif"]; countries[i++] = ["United Kingdom", "http://z3.ifrm.com/212/175/0/p336091/gb.gif"]; countries[i++] = ["UK", "http://z3.ifrm.com/212/175/0/p336091/gb.gif"]; countries[i++] = ["Australia", "http://z3.ifrm.com/212/175/0/p336083/au.gif"]; countries[i++] = ["Canada", "http://z3.ifrm.com/212/175/0/p336086/ca.gif"]; countries[i++] = ["Denmark", "http://z3.ifrm.com/212/175/0/p336089/dk.gif"]; countries[i++] = ["Romania", "http://z3.ifrm.com/212/175/0/p336102/ro.gif"]; countries[i++] = ["Sweden", "http://z3.ifrm.com/212/175/0/p336103/se.gif"]; countries[i++] = ["Vietnam", "http://z3.ifrm.com/212/175/0/p336108/vn.gif"]; countries[i++] = ["Netherlands", "http://z3.ifrm.com/212/175/0/p336098/nl.gif"]; countries[i++] = ["Belgium", "http://z3.ifrm.com/212/175/0/p336084/be.gif"]; countries[i++] = ["Phillipines", "http://z3.ifrm.com/212/175/0/p336100/ph.gif"]; countries[i++] = ["India", "http://z3.ifrm.com/212/175/0/p336095/in.gif"]; countries[i++] = ["Malaysia", "http://z3.ifrm.com/212/175/0/p336097/my.gif"]; countries[i++] = ["Spain", "http://z3.ifrm.com/212/175/0/p336109/es.gif"]; countries[i++] = ["Portugal", "http://z3.ifrm.com/212/175/0/p336101/pt.gif"]; countries[i++] = ["Singapore", "http://z3.ifrm.com/212/175/0/p336105/sg.gif"]; countries[i++] = ["Brazil", "http://z3.ifrm.com/212/175/0/p336085/br.gif"]; countries[i++] = ["Greece", "http://z3.ifrm.com/212/175/0/p336111/gr.gif"]; countries[i++] = ["Ireland", "http://z3.ifrm.com/212/175/0/p336112/ir.gif"]; countries[i++] = ["Chile", "http://z3.ifrm.com/212/175/0/p336110/cl.gif"]; countries[i++] = ["Turkey", "http://z3.ifrm.com/212/175/0/p336106/tr.gif"]; countries[i++] = ["Indonesia", "http://z3.ifrm.com/212/175/0/p336094/id.gif"]; countries[i++] = ["Germany", "http://z3.ifrm.com/212/175/0/p336088/de.gif"]; countries[i++] = ["Mexico", "http://z3.ifrm.com/212/175/0/p336096/mx.gif"]; countries[i++] = ["New Zealand", "http://z3.ifrm.com/212/175/0/p336099/nz.gif"]; if (location.href.match('/topic/')) { $("dt:contains(Country)").next().each(function () { for (x = 0; x < countries.length; x++) { if (this.innerHTML.toLowerCase() == countries[x][0].toLowerCase()) { $(this).parents('tr').prev().find("td.c_postinfo .right").append("<img alt='" + countries[x][0] + "' src='" + countries[x][1] + "'></div>"); } } }); } As you can see Joe first assigns an empty array to the variable countries and creates a variable named i to represent the current index.