/*
 * The information contained herein is proprietary to Southwest Airlines
 * Co. and shall not be reproduced, copied in whole or part, adapted,
 * modified, or disseminated without the express written consent of
 * Southwest Airlines Co.
 */
if (!window.SITE_HOST_NAME) { window.SITE_HOST_NAME = "local"; }
if (!window.SITELIFE_HOST_NAME) { window.SITELIFE_HOST_NAME= "sitelifedev"; }
if (!window.TOP_LEVEL_DOMAIN) {
	window.TOP_LEVEL_DOMAIN= "swacorp.com";
}
	document.domain = TOP_LEVEL_DOMAIN;


if (!window.SITELIFE_ROOT) { window.SITELIFE_ROOT= SITELIFE_HOST_NAME + '.' + TOP_LEVEL_DOMAIN; }
if (!window.SITELIFE_DIRECT_PROCESS_ADDRESS) { window.SITELIFE_DIRECT_PROCESS_ADDRESS= "http://" + SITELIFE_ROOT + "/ver1.0/Direct/Process"; }
if (!window.SLINT_BASE) { window.SLINT_BASE= "/slint"; }
if (!window.MEMBER_HOME_URL) { window.MEMBER_HOME_URL= "/travel/community/member.html"; }

// These values are good for sitelifedev.swacorp.com
if (!window.PHOTO_GALLERY_KEY) { window.PHOTO_GALLERY_KEY= "e4bf5e2f-2ccf-4af8-a331-37e4509ea36e"; }
if (!window.VIDEO_GALLERY_KEY) { window.VIDEO_GALLERY_KEY= "79af1a2e-4b4d-4735-a699-5c8808ed0077"; }

// These values are good for sitelifestage.thoughtworks.com
//if (!window.PHOTO_GALLERY_KEY) { window.PHOTO_GALLERY_KEY= "3531d5ba-77c0-4325-a7e8-bfac9a5ffc15"; }
//if (!window.VIDEO_GALLERY_KEY) { window.VIDEO_GALLERY_KEY= "65d6e3b1-d139-4ab1-818f-371d5f217fac"; }

// for Jason's local machine
//if (!window.PHOTO_GALLERY_KEY) { window.PHOTO_GALLERY_KEY= "2532a074-e61d-4fd1-aef4-ce2f6a87ce62"; }
//if (!window.VIDEO_GALLERY_KEY) { window.VIDEO_GALLERY_KEY= "99e0b2d5-68c6-4e6b-9faa-b79a27ab961c"; }

if (!window.SITELIFE_FORUMS_URL) { window.SITELIFE_FORUMS_URL = "/travel/community/forums.html"; }

if (typeof(SITELIFE_BOOT_COMPLETE) == "undefined" || ! SITELIFE_BOOT_COMPLETE) {
    document.write("<scr" + "ipt type=\"text/javascript\" src=\"" + SLINT_BASE + "/js/contrib/template.js\"></sc" + "ript>");

    // We are going to skip widgets for now.  Pages that use them,
    // like Forums, will have to fend for themselves.
    var siteLifeProxyAddress = "http://" + SITELIFE_ROOT + "/ver1.0/SiteLifeProxy";
    //document.write("<scr" + "ipt type=\"text/javascript\" src=\"" + siteLifeProxyAddress + "\">" + "</scr" + "ipt>");

    //var siteLifeDirectProxyAddress = "http://" + SITELIFE_ROOT + "/ver1.0/Direct/DirectProxy";
    var siteLifeDirectProxyAddress = "/sitelife/daapi.js";
    document.write("<scr" + "ipt type=\"text/javascript\" src=\"" + siteLifeDirectProxyAddress + "\">" + "</scr" + "ipt>");
	
	//lightweight cross-browser console -- unless we're in prod, in which case use the one that suppresses debugging
	if (location.host.toLowerCase().indexOf("southwest.com") > -1 && document.cookie.indexOf("gfdbg") < 0) {
		document.write("<scr" + "ipt type=\"text/javascript\" src=\"" + SLINT_BASE + "/js/nokonsole.js\"></sc" + "ript>");
	} else {
		document.write("<scr" + "ipt type=\"text/javascript\" src=\"" + SLINT_BASE + "/js/konsole.js\"></sc" + "ript>");
	}
    
	//include the video player stuff -- REVISIT: need to try to load this on demand, but it is fubar'd for me just now
    document.write("<scr" + "ipt type=\"text/javascript\" src=\"" + SLINT_BASE + "/js/swfobject-debug.js\"></sc" + "ript>");
} else {
    // I guess there is nothing to do!
}

var SITELIFE_BOOT_COMPLETE = true;
//document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/pluck-min.js\"></scri"+"pt>");
document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/cache.js\"></scri"+"pt>");
document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/sl_integration.js\"></scri"+"pt>");
document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/sl_discovery.js\"></scri"+"pt>");
document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/sl_journal.js\"></scri"+"pt>");
document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/sl_member.js\"></scri"+"pt>");
document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/sl_myprofile.js\"></scri"+"pt>");
document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/sl_trips.js\"></scri"+"pt>");
document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/sl_video.js\"></scri"+"pt>");
document.write("<scr"+"ipt src=\"" + SLINT_BASE + "/js/sl_testWidget.js\"></scri"+"pt>");
