﻿var globalVariablesInitialized = false;
var templates = null;
 
function initializeGlobalVariables(folder)
{
    templates = null;
    templates = new Template(folder.split('/')[0]);
    
    if (folder.split('/')[1] == 'Aereo')
    {
        templates = templates.Aereo;
    }
    else if (folder.split('/')[1] == 'Cruzeiro')
    {
        templates = templates.Cruzeiro;
    }
    else if (folder.split('/')[1] == 'Hotel')
    {
        templates = templates.Hotel;
    }
    
    globalVariablesInitialized = true;
}

