﻿/* Copyright Bridgeline Software, Inc. An unpublished work created in 2009. All rights reserved. 
This software contains the confidential and trade secret information of Bridgeline Software, Inc. ("Bridgeline").  
Copying, distribution or disclosure without Bridgeline's express written permission is prohibited. */

// Edit Mode Miscellaneous Functions
$(function(){
    if(document.getElementById('jsInclude')){
       $(".flashContainer").addClass('flashEditMode');             
    }
    
    // Changing the Body Background
    if(document.getElementById('homePage')){
      $('body').css('background','#fff url(/images/bodyBg.jpg) no-repeat top center');            
    }
    else
    {
      $('body').css('background','#fff url(/images/backgroundLevel2.jpg) no-repeat top center');            
    }
    
    if(document.getElementById('futureContent')){
        $('body').css('background','#fff url(/images/futureContentBg.jpg) no-repeat center -47px');            
    }
    if(document.getElementById('futureHome')){
        $('body').css('background','#fff url(/images/futureHomeBg.jpg) no-repeat center -49px');                
    }
     if(document.getElementById('diverseymoblieApp')){
        $('body').css('background','none');                
    }
    
    
     $(".pressItem h4").click
	    (function()
            {
		        $(this).next("div").slideToggle(300);
                return false;
            }
         )
    
    $('.stripeMe tr:even').addClass('altRow'); 
    $(".answer").hide();
	    $("h5.question").click
	    (function()
            {
		        $(this).next("div").slideToggle(300);
                return false;
            }
         )
});

$(document).ready(function() {

//Set default open/close settingsss
$('ul.SECQuarter').hide(); //Hide/close all containers
$('.SECHeader:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container

//On Click
$('.SECHeader a').click(function(event){
//	if( $(this).parent().next().is(':hidden') ) { //If immediate next container is closed...
//		$('.quiz_heading').removeClass('active').next().slideUp(500); //Remove all "active" state and slide up the immediate next container
//		$(this).parent().toggleClass('active').next().slideDown(500); //Add "active" state to clicked trigger and slide down the immediate next container
//	}
//	return false; //Prevent the browser jump to the link anchor
        event.preventDefault();

        $(this).parent().toggleClass("active");
		$(this).parent().next().slideToggle("slow");
		

});

});
