var assambleSmyles = function()
{
	var smyleName = [
		"Angry",
		"Angel",
		"Surprised",
		"Tongue",
		"big Grin",
		"Sick",
		"Shut up",
		"Sharp",
		"Cool",
		"Smug",
		"Scuse Me",
		"Scared Skull",
		"Sad",
		"Rolling on the floor laughing",
		"Pray",
		"Pig",
		"Worried",
		"Monkey",
		"Laughing",
		"Thinking",
		"Smiling",
		"Devil",
		"Not talking",
		"Damn",
		"Crying",
		"Party",
		"Caw",
		"Blushing",
		"Applause",
		"Angry 2"
				];


	var trgt = [
		":angry",
		":angel",
		":wow",
		":so_what",
		":smile",
		":sick",
		":shut_up",
		":sharp3",
		":sharp2",
		":sharp1",
		":scuseme",
		":scared_skull",
		":sad",
		":rofl",
		":pray",
		":pig",
		":ops",
		":monkey",
		":laugh",
		":hmm",
		":happy",
		":gotcha",
		":dont_talk",
		":damn",
		":cry",
		":celebrate",
		":caw",
		":blush",
		":applause",
		":angry2"
				];	

	var smyle = "";
	j=0;
	for (i=0;i<=522;i=i+18)
	{
		target = trgt[j];
		target = target.replace(/'/gi, "\\'");
		smyle += '<div style="background-position:-'+i+'px 0px;" onclick="loadSmyle(\''+trgt[j]+'\')" title="'+smyleName[j]+'"></div>';
		j++;
	}
	document.getElementById("smyles").innerHTML = smyle;
}
