﻿// JScript File
/*********************** SLIDE040 Stuff *******************/

function fnSlide040_StartDetailSectionLoading()
{
    /* First, we have to work out if all the section 5 slides have been loaded */
    var intFirstUnloadedSlideIndex; 
    var strFunc;    
    
    /* Reset the All Slides Loaded Thingy... */ 
    m_intAllSlidesLoaded = 0;

    /* 5 here cause that is the group id of the Detail slides */
    intFirstUnloadedSlideIndex = fnGetFirstUnloadedSlide(5);
    if ( intFirstUnloadedSlideIndex != -1 ) 
    {
            fnShowSlidesLoading ( 1 ) ;
            strFunc = "fnLoadSlide('";
			strFunc = strFunc + arSlides[intFirstUnloadedSlideIndex].strSlideLocation + "','"; 
			strFunc = strFunc + arSlides[intFirstUnloadedSlideIndex].strContainerID + "',"; 
			strFunc = strFunc + intFirstUnloadedSlideIndex + ",1);";
            eval(strFunc);
    }
    
    intFirstUnloadedSlideIndex = fnGetFirstUnloadedSlide(0);
    if ( intFirstUnloadedSlideIndex != -1 ) 
    {
            strFunc = "fnLoadSlide('";
			strFunc = strFunc + arSlides[intFirstUnloadedSlideIndex].strSlideLocation + "','"; 
			strFunc = strFunc + arSlides[intFirstUnloadedSlideIndex].strContainerID + "',"; 
			strFunc = strFunc + intFirstUnloadedSlideIndex + ",1);";
            eval(strFunc);
    }

    
}