////////////////////////////////////////////////////////////////////////////
//
// about_marcus.js
//
// Description:
//  This file holds javascript used specifically for the about marcus pages
//
// Copyright (c) 2011 - The Marcus Buckingham Company, LLC,
// All rights reserved.
//
// Author: Bruce Hellstrom, Celebrity Computer Consulting
//         bruce@celebritycc.com
//
// $Revision$
// $HeadURL$
//
////////////////////////////////////////////////////////////////////////////

$( document ).ready( function() {
    if ( $( "#about-popout-link-1" ).length ) {
        $( "#about-popout-link-1" ).show();
    }
    
    if ( $( "#kn-popout-link-1" ).length ) {
        $( "#kn-popout-link-1" ).show();
    }

    if ( $( "#kn-popout-link-2" ).length ) {
        $( "#kn-popout-link-2" ).show();
    }

    if ( $( "#kn-popout-link-3" ).length ) {
        $( "#kn-popout-link-3" ).show();
    }

    if ( $( "#kn-popout-link-4" ).length ) {
        $( "#kn-popout-link-4" ).show();
    }

    if ( $( "#kn-popout-link-5" ).length ) {
        $( "#kn-popout-link-5" ).show();
    }

    if ( $( "#books-popout-link-1" ).length ) {
        $( "#books-popout-link-1" ).show();
    }

    if ( $( "#books-popout-link-2" ).length ) {
        $( "#books-popout-link-2" ).show();
    }

    if ( $( "#books-popout-link-3" ).length ) {
        $( "#books-popout-link-3" ).show();
    }

    if ( $( "#books-popout-link-4" ).length ) {
        $( "#books-popout-link-4" ).show();
    }

    if ( $( "#books-popout-link-5" ).length ) {
        $( "#books-popout-link-5" ).show();
    }

    if ( $( "#books-popout-link-6" ).length ) {
        $( "#books-popout-link-6" ).show();
    }

    if ( $( "#books-popout-link-7" ).length ) {
        $( "#books-popout-link-7" ).show();
    }

} );


function showPopout( theId ) {
	
    if ( theId != null ) 
    {
    	if($(theId).css("display") == "block")
    	{
    		$(theId).hide();
    		$(theId + "-href").text("Read More...");
    	}
    	else
    	{	
    		$(theId).show();
    		$(theId + "-href").text("Show Less...");

    	}
    }
    return( false );
}
