
function SetApplet()
{
	sandObjectStr = "";
	
	sandObjectStr += "<APPLET NAME='App' CODE='Safari.class' ARCHIVE='sand.jar' WIDTH=700 HEIGHT=400 mayscript>";
	sandObjectStr += "<PARAM NAME=clearTitle VALUE='My Sand Castle'>";

	//RGB components of the bg color
	sandObjectStr += "<PARAM NAME=R VALUE='255'>";
	sandObjectStr += "<PARAM NAME=G VALUE='245'>";
	sandObjectStr += "<PARAM NAME=B VALUE='181'>";

	/*
	nSets - how many categories do you want to use;
	heads, bodies ,legs , tails, extras
	IMPORTANT - the last category button reserved for the 'Clear' button;
	nSet0, nSet1 etc. - how many items contains each category;
	*/
	sandObjectStr += "<PARAM NAME=nSets VALUE='4'>";
	sandObjectStr += "<PARAM NAME=nSet0 VALUE='12'>";
	sandObjectStr += "<PARAM NAME=nSet1 VALUE='12'>";
	sandObjectStr += "<PARAM NAME=nSet2 VALUE='18'>";
	sandObjectStr += "<PARAM NAME=nSet3 VALUE='12'>";


	//How many rows and columns contains each big image(there is one big image for each category)
	sandObjectStr += "<PARAM NAME=nRow0 VALUE='2'>";
	sandObjectStr += "<PARAM NAME=nColumn0 VALUE='6'>";
	sandObjectStr += "<PARAM NAME=nRow1 VALUE='2'>";
	sandObjectStr += "<PARAM NAME=nColumn1 VALUE='6'>";
	sandObjectStr += "<PARAM NAME=nRow2 VALUE='2'>";
	sandObjectStr += "<PARAM NAME=nColumn2 VALUE='9'>";
	sandObjectStr += "<PARAM NAME=nRow3 VALUE='2'>";
	sandObjectStr += "<PARAM NAME=nColumn3 VALUE='6'>";


	//Cell size for each category
	sandObjectStr += "<PARAM NAME=cellHoriz0 VALUE='140'>";
	sandObjectStr += "<PARAM NAME=cellVert0 VALUE='120'>";
	sandObjectStr += "<PARAM NAME=cellHoriz1 VALUE='140'>";
	sandObjectStr += "<PARAM NAME=cellVert1 VALUE='120'>";
	sandObjectStr += "<PARAM NAME=cellHoriz2 VALUE='140'>";
	sandObjectStr += "<PARAM NAME=cellVert2 VALUE='120'>";
	sandObjectStr += "<PARAM NAME=cellHoriz3 VALUE='140'>";
	sandObjectStr += "<PARAM NAME=cellVert3 VALUE='120'>";

	sandObjectStr += "</APPLET>";
	
	
	//alert(sandObjectStr)
	document.write(sandObjectStr);
}
