// General Page Behavior
$(function() {
    // Use ".scroll" as trigger to scroll sections, with hashtags
    $.localScroll.hash();
    $.localScroll({
        hash: true,
        filter: ".scroll",
    });
    // Close open sections, add class to toggle, toggle section
    $("#schedule-wed, #schedule-thurs, #schedule-speaker, #schedule-video").hide();
    $("#schedule-wed-toggle").click(function() {
        $("#schedule-thurs, #schedule-speaker, #schedule-video").slideUp("slow");
        $("#schedule-thurs-toggle, #schedule-speaker-toggle, #schedule-video-toggle").parent().removeClass("active");
        $(this).parent().toggleClass("active");
        $("#schedule-wed").slideToggle("slow");
        return false;
    });
    $("#schedule-thurs-toggle").click(function() {
        $("#schedule-wed, #schedule-speaker, #schedule-video").slideUp("slow");
        $("#schedule-wed-toggle, #schedule-speaker-toggle, #schedule-video-toggle").parent().removeClass("active");
        $(this).parent().toggleClass("active");
        $("#schedule-thurs").slideToggle("slow");
        return false;
    });
    $("#schedule-speaker-toggle").click(function() {
        $("#schedule-wed, #schedule-thurs, #schedule-video").slideUp("slow");
        $("#schedule-wed-toggle, #schedule-thurs-toggle, #schedule-video-toggle").parent().removeClass("active");
        $(this).parent().toggleClass("active");
        $("#schedule-speaker").slideToggle("slow");
        return false;
    });
    $("#schedule-video-toggle").click(function() {
        $("#schedule-wed, #schedule-thurs, #schedule-speaker").slideUp("slow");
        $("#schedule-wed-toggle, #schedule-thurs-toggle, #schedule-speaker-toggle").parent().removeClass("active");
        $(this).parent().toggleClass("active");
        $("#schedule-video").slideToggle("slow");
        return false;
    });
    // TinyCarousel
    $("#slider").tinycarousel({
        controls: true,
        pager: true,
        callback: function(){
            // Change class of a.button based on video
            if ( $("#video").hasClass("active") )
                {
                    $("a.button").addClass("video-active");
                }
            else
                {
                    $("a.button").removeClass("video-active");
                }
        }
    });
    // Load TypeKit
    TypekitConfig = {
        kitId: 'rab2plt',
        scriptTimeout: 3000
    };
    // Delay TypeKit loading
    (function() {
        $('html').addClass('wf-loading');
        var t = setTimeout(function() {
            $('html').removeClass('wf-loading').addClass('wf-inactive');
            }, TypekitConfig.scriptTimeout);
        $.ajax({
            url: '//use.typekit.com/' + TypekitConfig.kitId + '.js',
            dataType: 'script',
            cache: true,
            success: function() {
                clearTimeout(t);
                try { Typekit.load(TypekitConfig); } catch (e) {}
            }
        });
    })();
});

// Event Videos
    var stretching_part_I = {
        vidTitle: "Stretching the Edges of Technology-Enhanced Teaching - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/StretchingEdgesTechnology_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("stretching_part_I", stretching_part_I);
    var stretching_part_II = {
        vidTitle: "Stretching the Edges of Technology-Enhanced Teaching - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/StretchingEdgesTechnology_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("stretching_part_II", stretching_part_II);
    var stretching_part_III = {
        vidTitle: "Stretching the Edges of Technology-Enhanced Teaching - Part III",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/StretchingEdgesTechnology_part3_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("stretching_part_III", stretching_part_III);
    var open_forum_part_I = {
        vidTitle: "Open Forum - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/OpenForum_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("open_forum_part_I", open_forum_part_I);
    var open_forum_part_II = {
        vidTitle: "Open Forum - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/OpenForum_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("open_forum_part_II", open_forum_part_II);
    var open_forum_part_III = {
        vidTitle: "Open Forum - Part III",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/OpenForum_part3_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("open_forum_part_III", open_forum_part_III);
    var absence_part_I = {
        vidTitle: "The Benefit of Absence: Teaching up close and personal, from a distance - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/BenefitOfAbsence_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("absence_part_I", absence_part_I);
    var absence_part_II = {
        vidTitle: "The Benefit of Absence: Teaching up close and personal, from a distance - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/BenefitOfAbsence_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("absence_part_II", absence_part_II);
    var kaccess_part_I = {
        vidTitle: "K-Access: Tools for the creation of accessible online course materials - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/KAccess_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("kaccess_part_I", kaccess_part_I);
    var kaccess_part_II = {
        vidTitle: "K-Access: Tools for the creation of accessible online course materials - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/KAccess_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("kaccess_part_II", kaccess_part_II);
    var kaccess_part_III = {
        vidTitle: "K-Access: Tools for the creation of accessible online course materials - Part III",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/KAccess_part3_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("kaccess_part_III", kaccess_part_III);
    var video_part_I = {
        vidTitle: "The Rise of Shared Online Video, the Fall of Traditional Learning - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/RiseOfSharedOnlineVideo_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("video_part_I", video_part_I);
    var video_part_II = {
        vidTitle: "The Rise of Shared Online Video, the Fall of Traditional Learning - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/RiseOfSharedOnlineVideo_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("video_part_II", video_part_II);
    var video_part_III = {
        vidTitle: "The Rise of Shared Online Video, the Fall of Traditional Learning - Part III",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/RiseOfSharedOnlineVideo_part3_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("video_part_III", video_part_III);
    var geez_part_I = {
        vidTitle: "Geez, why didn't I know that!&rsquo; Helpful and effective K-State Online tool - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/KSOnlineTools_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("geez_part_I", geez_part_I);
    var geez_part_II = {
        vidTitle: "Geez, why didn't I know that!&rsquo; Helpful and effective K-State Online tool - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/KSOnlineTools_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("geez_part_II", geez_part_II);
    var geez_part_III = {
        vidTitle: "Geez, why didn't I know that!&rsquo; Helpful and effective K-State Online tool - Part III",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/KSOnlineTools_part3_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("geez_part_III", geez_part_III);
    var workshop_part_I = {
        vidTitle: "Instructional Design Workshop: Going Mobile with 'Smart' Apps - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/GoingMobileWithSmartApps_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("workshop_part_I", workshop_part_I);
    var workshop_part_II = {
        vidTitle: "Instructional Design Workshop: Going Mobile with 'Smart' Apps - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/GoingMobileWithSmartApps_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("workshop_part_II", workshop_part_II);
    var workshop_part_III = {
        vidTitle: "Instructional Design Workshop: Going Mobile with 'Smart' Apps - Part III",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/GoingMobileWithSmartApps_part3_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("workshop_part_III", workshop_part_III);
    var wikis_part_I = {
        vidTitle: "Online Professional Development Modules and Wikis - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/OnlineProfessionalDevelopmentModulesWikis_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("wikis_part_I", wikis_part_I);
    var wikis_part_II = {
        vidTitle: "Online Professional Development Modules and Wikis - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/OnlineProfessionalDevelopmentModulesWikis_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("wikis_part_II", wikis_part_II);
    var gaming_part_I = {
        vidTitle: "Turning Epic Fail Into Epic Win: Embracing Gaming Culture In Teaching and Learning Today - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/Gaming Culture_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("gaming_part_I", gaming_part_I);
    var gaming_part_II = {
        vidTitle: "Turning Epic Fail Into Epic Win: Embracing Gaming Culture In Teaching and Learning Today - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/Gaming Culture_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("gaming_part_II", gaming_part_II);
    var gaming_part_III = {
        vidTitle: "Turning Epic Fail Into Epic Win: Embracing Gaming Culture In Teaching and Learning Today - Part III",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/Gaming Culture_part3_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("gaming_part_III", gaming_part_III);
    var mobile_part_I = {
        vidTitle: "Enhancing Mobile 'Ubi' Learning Using Axio Learning - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/EnhancingMobileUbi_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("mobile_part_I", mobile_part_I);
    var mobile_part_II = {
        vidTitle: "Enhancing Mobile 'Ubi' Learning Using Axio Learning - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/EnhancingMobileUbi_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("mobile_part_II", mobile_part_II);
    var herding_part_I = {
        vidTitle: "Herding Cats: My Life as a Wiki (Keeper) Master - Part I",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/RogerMcHaney_part1_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("herding_part_I", herding_part_I);
    var herding_part_II = {
        vidTitle: "Herding Cats: My Life as a Wiki (Keeper) Master - Part II",
        vidURLCon: "rtmp://media.online.ksu.edu/fms/",
        vidURLFile: "mp4:/OME/axioconf/2011/RogerMcHaney_part2_2011",
        ccURL: "undefined",
        live: "false",
        branding: "axio",
        format: "wide"
    }
    addPlayer("herding_part_II", herding_part_II);
    
// Include Google Analytics
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2965145-4']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
