﻿
$(document).ready(function() {
    $("div .pbQuestion").click(function() {
        if ($(this).next().is(":visible")) {
            $("div .pbAnswer:visible").prev().css({ 'background-image': "url('/app_themes/dark/images/pbbutton.gif')" });
            $("div .pbAnswer:visible").slideUp("600");
        }
        else {
            $("div .pbAnswer:visible").prev().css({ 'background-image': "url('/app_themes/dark/images/pbbutton.gif')" });
            $("div .pbAnswer:visible").slideUp("600");
            $(this).css({ 'background-image': "url('/app_themes/dark/images/pbbutton-down.gif')" });
            $(this).next().slideToggle("600");
        }
    });
});



function getFlashMovieObject(movieName) {
    if (window.document[movieName]) {
        return window.document[movieName];
    }
    if (navigator.appName.indexOf("Microsoft Internet") == -1) {
        if (document.embeds && document.embeds[movieName])
            return document.embeds[movieName];
    }
    else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
    {
        return document.getElementById(movieName);
    }
}

function StopFilmFootage() {
    var flashMovie = getFlashMovieObject("FlashFilmFootage");
    flashMovie.StopPlay();
}

function PlayFilmFootage() {
    var flashMovie = getFlashMovieObject("FlashFilmFootage");
    flashMovie.Play();
}

if (typeof (Sys) !== "undefined") Sys.Application.notifyScriptLoaded();

