var randomdevs = [];
MAX_DEVS = randomdevs.push(
/* [alt, img link, catalog link] */


/*Add People Below */
["CrazyDollzSociety", "http://i25.tinypic.com/zvr38z.png", "http://www.imvu.com/shop/web_search.php?manufacturers_id=37997727"],

["LadyInBlack21", "http://i26.tinypic.com/2cxivj8.png", "http://www.imvu.com/shop/web_search.php?manufacturers_id=9230524"],

["CrystalRaven", "http://i29.tinypic.com/35ivukn.gif", "http://www.imvu.com/shop/web_search.php?manufacturers_id=30792873"],

["EffinMofo", "http://i26.tinypic.com/2znqon5.gif", "http://www.imvu.com/shop/web_search.php?manufacturers_id=10516604"],

["IIPinupKiraII", "http://i36.tinypic.com/2cwtv2t.png", "http://www.imvu.com/shop/web_search.php?manufacturers_id=28232659"],

["Elliejj", "http://i25.tinypic.com/2wq7ryg.png", "http://www.imvu.com/shop/web_search.php?manufacturers_id=8292075"],

["BeautyReflections", "http://i27.tinypic.com/xmlwkk.gif", "http://www.imvu.com/shop/web_search.php?manufacturers_id=17104813"],

["HauntingKitten", "http://i26.tinypic.com/9qz5lc.gif", "http://www.imvu.com/shop/web_search.php?manufacturers_id=8099292"],

["Jaysplayhouse", "http://i27.tinypic.com/9s6id3.png", "http://www.imvu.com/shop/web_search.php?manufacturers_id=5136998"],

["WichXHunter", "http://i25.tinypic.com/2mr6smo.gif", "http://www.imvu.com/shop/web_search.php?manufacturers_id=10917778"],

["AmTheLion", "http://i31.tinypic.com/1zmdmw6.png", "http://www.imvu.com/shop/web_search.php?manufacturers_id=7343518"],

["Wataame", "http://i31.tinypic.com/vxj8yb.gif", "http://www.imvu.com/shop/web_search.php?manufacturers_id=38298978"],

["CrazyAddict", "http://i31.tinypic.com/2e3zw4h.png", "http://www.imvu.com/shop/web_search.php?manufacturers_id=25834293"]


/* Do Not Edit After This */
);

/* FUNCTION THAT BUILDS THE HTML FOR EACH ICON */
function cds_build_html(row) {

	final_code = "<a href='" + row[2] + "' target='_blank'>" + "<img src='" + row[1] + "' border='0' alt=\"" + row[0]  +"\"></a>&nbsp";

	return final_code;
}

function generate_random(max){

	return Math.floor(Math.random()*max);
}

/* FUNCTION THAT REFRESHES ALL DIV CONTENTS */
function update_divs(){
	if (document.getElementById) {
	  ran_num = generate_random(MAX_DEVS);
	  document.getElementById("random_cds").innerHTML = cds_build_html(randomdevs[ran_num]);

	}
	setTimeout ("update_divs()", 16000);
}

update_divs();
