
function createSilverlight()
{
    Silverlight.createObjectEx({source:'xaml/TattooStudio.xaml',
                                    parentElement: document.getElementById('AgControl1Host'),
                                    id:'Agcontrol',
                                    properties: { width:'800',
                                                  height:'775',
                                                  background:'#ff000000',
                                                  isWindowless: 'false',
                                                  framerate:'24',
                                                  version:'0.8' },
                                    events: { onError:'errorHandle',
                                              onLoad:null },
                                    context:null });
}
