//creates the silverlight control within the tag specified by controlHostId

function createSilverlight( controlHost )
{
	Silverlight.createObjectEx({
		source: "smiley.xaml",
		parentElement: controlHost,
		id: "silverlightControl",
		properties: {
			width: "350",
			height: "350",
			version: "2.0.31005.0",
			background: "white",
			isWindowless: "true",
			enableHtmlAccess: "true"
		},
		events: {}
	});
}
