

function setMosaicApplet()
{
	var appletStr = '';

	appletStr += '<APPLET NAME="App" CODE="Safari.class" ARCHIVE="mosaic.jar" WIDTH=700 HEIGHT=400 mayscript>';
	appletStr += '<PARAM NAME=clearTitle VALUE="Mosaic">';
	//appletStr += '<!--RGB components of the bg color-->
	appletStr += '<PARAM NAME=R VALUE="255">';
	appletStr += '<PARAM NAME=G VALUE="255">';
	appletStr += '<PARAM NAME=B VALUE="0">';
	/*
	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;
	*/
	appletStr += '<PARAM NAME=nSets VALUE="5">';
	appletStr += '<PARAM NAME=nSet0 VALUE="8">';
	appletStr += '<PARAM NAME=nSet1 VALUE="8">';
	appletStr += '<PARAM NAME=nSet2 VALUE="8">';
	appletStr += '<PARAM NAME=nSet3 VALUE="8">';
	appletStr += '<PARAM NAME=nSet4 VALUE="8">';
	//How many rows and columns contains each big image(there is one big image for each category)
	appletStr += '<PARAM NAME=nRow0 VALUE="2">';
	appletStr += '<PARAM NAME=nColumn0 VALUE="4">';
	appletStr += '<PARAM NAME=nRow1 VALUE="2">';
	appletStr += '<PARAM NAME=nColumn1 VALUE="4">';
	appletStr += '<PARAM NAME=nRow2 VALUE="2">';
	appletStr += '<PARAM NAME=nColumn2 VALUE="4">';
	appletStr += '<PARAM NAME=nRow3 VALUE="2">';
	appletStr += '<PARAM NAME=nColumn3 VALUE="4">';
	appletStr += '<PARAM NAME=nRow4 VALUE="2">';
	appletStr += '<PARAM NAME=nColumn4 VALUE="4">';
	//Cell size for each category
	appletStr += '<PARAM NAME=cellHoriz0 VALUE="152">';
	appletStr += '<PARAM NAME=cellVert0 VALUE="110">';
	appletStr += '<PARAM NAME=cellHoriz1 VALUE="152">';
	appletStr += '<PARAM NAME=cellVert1 VALUE="110">';
	appletStr += '<PARAM NAME=cellHoriz2 VALUE="152">';
	appletStr += '<PARAM NAME=cellVert2 VALUE="110">';
	appletStr += '<PARAM NAME=cellHoriz3 VALUE="152">';
	appletStr += '<PARAM NAME=cellVert3 VALUE="110">';
	appletStr += '<PARAM NAME=cellHoriz4 VALUE="152">';
	appletStr += '<PARAM NAME=cellVert4 VALUE="110">';
	appletStr += '</APPLET>';


		document.write(appletStr);
}
