//setting the alpha-channel in the 'background' parameter drastically affects the cost of rendering
function createSLFoilage()
{  
    Silverlight.createObject("xaml/Foilage.xaml", elFoilage, "slFoilage",
      {width:'1000', height:'100', inplaceInstallPrompt:false, background:'white', isWindowless:'false', framerate:'24', version:'1.0'},
      {onError:null, onLoad:null}, null);
      
   //Silverlight.createObjectEx({source: 'xaml/piano.xaml', parentElement:pe, id:'SlControl1', properties:{width:'1024', height:'530', background:'white', isWindowless:'false', framerate:'24', enableFramerateCounter:'false', version:'1.0'}, events:{onError:null, onLoad:null, onResize:null}, context:null});
}
function imgLogoEnter(sender, args)
{
    var SLLogoMouseEnter = sender.FindName("LogoEnter");
    SLLogoMouseEnter.Begin();
}
function imgLogoLeave(sender, args)
{
    var SLLogoMouseLeave = sender.FindName("LogoLeave");
    SLLogoMouseLeave.Begin();
}
// Notebook
function createSLNotebook()
{  
    Silverlight.createObject("xaml/Notebook.xaml", elNotebook, "slNotebook",
      {width:'246', height:'168', inplaceInstallPrompt:false, isWindowless:'false', framerate:'24', version:'1.0'},
      {onError:null, onLoad:null}, null);
}
function imgNotebookEnter(sender, args)
{
    var SLNotebookMouseEnter = sender.FindName("NotebookEnter");
    SLNotebookMouseEnter.Begin();
}
function imgNotebookLeave(sender, args)
{
    var SLNotebookMouseLeave = sender.FindName("NotebookLeave");
    SLNotebookMouseLeave.Begin();
}
// Decision
function createSLDecision()
{  
    Silverlight.createObject("xaml/Decision.xaml", elDecision, "slDecision",
      {width:'246', height:'168', inplaceInstallPrompt:false, isWindowless:'false', framerate:'24', version:'1.0'},
      {onError:null, onLoad:null}, null);
}
function imgDecisionEnter(sender, args)
{
    var SLDecisionMouseEnter = sender.FindName("DecisionEnter");
    SLDecisionMouseEnter.Begin();
}
function imgDecisionLeave(sender, args)
{
    var SLDecisionMouseLeave = sender.FindName("DecisionLeave");
    SLDecisionMouseLeave.Begin();
}
// Discussion
function createSLDiscussion()
{  
    Silverlight.createObject("xaml/Discussion.xaml", elDiscussion, "slDiscussion",
      {width:'246', height:'168', inplaceInstallPrompt:false, isWindowless:'false', framerate:'24', version:'1.0'},
      {onError:null, onLoad:null}, null);
}
function imgDiscussionEnter(sender, args)
{
    var SLDiscussionMouseEnter = sender.FindName("DiscussionEnter");
    SLDiscussionMouseEnter.Begin();
}
function imgDiscussionLeave(sender, args)
{
    var SLDiscussionMouseLeave = sender.FindName("DiscussionLeave");
    SLDiscussionMouseLeave.Begin();
}
// Meeting
function createSLMeeting()
{  
    Silverlight.createObject("xaml/Meeting.xaml", elMeeting, "slMeeting",
      {width:'246', height:'168', inplaceInstallPrompt:false, isWindowless:'false', framerate:'24', version:'1.0'},
      {onError:null, onLoad:null}, null);
}
function imgMeetingEnter(sender, args)
{
    var SLMeetingMouseEnter = sender.FindName("MeetingEnter");
    SLMeetingMouseEnter.Begin();
}
function imgMeetingLeave(sender, args)
{
    var SLMeetingMouseLeave = sender.FindName("MeetingLeave");
    SLMeetingMouseLeave.Begin();
}
