/**
 * Form functions
 *
 * @id              $Id: fchk.js 1 2010-07-12 00:33:49Z stiegert $
 * @author          Taryn Stieger
 * @modifiedby      $LastChangedBy: blundenr $
 * @copyright       Copyright Flight Centre Ltd. All rights reserved.
 * @version         $Revision: 1555 $
 * @lastmodified    $Date: 2010-09-10 16:28:05 +1000 (Fri, 10 Sep 2010) $
 * @requires        None
 */

window.FCSG = 
{
    /**
     * Test if current location is the 404 page, return true if so, false if not
     *
     * @returns {Boolean}
     */
    isPageNotFound: function()
    {
        try 
        {
            if($('#content h1').text() == 'Oops, we can\'t find that page') 
            {
                return true;
            }
        } catch(e){}
        
        return false;
    },

    /**
     * Test if current location is a page in an iframe (with .html extension), return false if so, true if not
     *
     * @returns {Boolean}
     */
    embedGoogleAnalytics: function()
    {
        if(window.location.href.indexOf('.html') > -1)
        {
            return false;
        }
        return true;
    }
};
