/**
 * Miscellaneous functions
 *
 * @author          Taryn Stieger
 * @modifiedby      $LastChangedBy: blundenr $
 * @copyright       Copyright Flight Centre Ltd. All rights reserved.
 * @version         $Revision: 1692 $
 * @lastmodified    $Date: 2010-09-22 15:36:32 +1000 (Wed, 22 Sep 2010) $
 * @requires        FC
 */
 
;FCCN.MISC = 
{	
    init: function()
    {
        this.bodyTitleHandler();
        this.replaceDollar();
    },
    
    /* moves the right column up if 2-column heading does not exist*/
    bodyTitleHandler: function()
    {
        if ($('h3.body-title-long').length > 0) 
        {
           $(".three-cols #colThree").addClass('rejig');
        }
    },
    
     /** 
     *  Remove $ in product prices. Remove this function when undecorated prices become available.
     *  Change string templates to reflect if needed
     */
    replaceDollar: function()
    {
        $('a,span.price,span.productPrice,h2#enquireOnProduct').each(function(i, item)
        {
            var replace_html = $(item).html().replace(/\$/, "&yen;");   
            $(item).html(replace_html);
        });
    }
};
