// Copyright (c) 2007-2009 Sonic Foundry, Inc. and Sonic Foundry 
// Media Systems, Inc. Neither this code nor any portion 
// thereof may be reproduced, altered, or otherwise changed, 
// distributed or copied, without the express written 
// permission of Sonic Foundry.
// All rights reserved.

Manifest = function(){}

Slide = function(text,time,description)
{
	this.Text=text;
	this.Time=time;
	this.Description=description;
}
Chapter = function(text,time)
{
	this.Text=text;
	this.Time=time;
}
SupportingLink = function(description,url)
{
	this.Description=description;
	this.Url=url;
}
Presenter = function(name, imageUrl, email, bioUrl)
{
    this.Name = name;
    this.ImageUrl = imageUrl;
    this.Email = email;
    this.BioUrl = bioUrl;
}

Manifest.OnLoad=function()
{
    Manifest.LoadPresenters();   
    Manifest.LoadSlides();
    Manifest.LoadChapters();
    Manifest.LoadSupportingLinks();    
    
    return true;
}

Manifest.GetSlideUrl = function(slideNumber, width, height)
{
    var slideFileName = String.format(Manifest.SlideImageFileNameTemplate, slideNumber);

    if (arguments.length == 3 && !Manifest.IsStandAlone)
    {
        slideFileName = slideFileName.replace(/full/i, String.format("{0}_{1}", width, height));
    }

    var source = String.format("{0}{1}", Manifest.SlideBaseUrl, slideFileName);

    if ((Manifest.AnonymousAllowed == null || Manifest.AnonymousAllowed == false) && (Manifest.SlidePlaybackTicketId != null && Manifest.SlidePlaybackTicketId.length > 0))
    {
        if (source.indexOf('?') > -1)
        {
            source += '&playbackTicket=' + Manifest.SlidePlaybackTicketId;
        }
        else
        {
            source += '?playbackTicket=' + Manifest.SlidePlaybackTicketId;
        }
    }

    return source;
}

Manifest.GetSlideTime=function(slideNumber)
{
    return Manifest.Slides[slideNumber].Time;
}
Manifest.GetSlideTitle=function(slideNumber)
{
    return Manifest.Slides[slideNumber-1].Text;
}
Manifest.GetSlideDescription=function(slideNumber)
{
    return Manifest.Slides[slideNumber-1].Description;
}


Manifest.Version="5.1.5577";
Manifest.IsStandAlone=true;
Manifest.VideoUrl="Content/ba3eae6e-ac58-4cdf-8824-5f14a0cd5f15.wmv";
Manifest.SlideBaseUrl="Content/";
Manifest.PlaybackTicketId="";
Manifest.SlidePlaybackTicketId="";
Manifest.IsLive=false;
Manifest.IsOnDemand=true;
Manifest.PlayStatus="OnDemand";
Manifest.PollingEnabled=false;
Manifest.ForumEnabled=false;
Manifest.PresentationThumbImage="";
Manifest.HasSlides=true;
Manifest.HasVideo=true;
Manifest.AnonymousAllowed=true;
Manifest.SlideImageFileNameTemplate="slide_{0:D4}_full.jpg";
Manifest.PresentationId="ba3eae6eac584cdf88245f14a0cd5f15";
Manifest.Title="How Can I Properly and Legally Dismiss a Student from Class? - clip";
Manifest.Description="";
Manifest.Duration=137319;
Manifest.AirDate="7/13/2009";
Manifest.AirTime="9:20 AM CDT";
Manifest.CaptionsFile="";
Manifest.LoadSlides=function(){
Manifest.Slides = new Array(1);
   Manifest.Slides[0] = new Slide("",450,"");
};
Manifest.HasSlideDescriptions=false;
Manifest.LoadChapters=function(){
Manifest.Chapters = new Array(0);
};
Manifest.LoadSupportingLinks=function(){
Manifest.SupportingLinks = new Array(0);
};
Manifest.LoadPresenters=function(){
Manifest.Presenters = new Array(1);
   Manifest.Presenters[0] = new Presenter("Scott Lewis","Content/5906db6b-39f6-401b-8f3c-ba6263618299/5906db6b-39f6-401b-8f3c-ba6263618299.gif","onlineseminars@magnapubs.com","");
};

