﻿$(document).ready(function() {

    LoadNavBar();
    
    function megaHoverOver() {
        $(this).find(".sub").stop().fadeTo('fast', 1).show();

        //Calculate width of all ul's
        (function(cash) {
            jQuery.fn.calcSubWidth = function() {
                rowWidth = 0;
                //Calculate row
                $(this).find("ul").each(function() {
                    rowWidth += $(this).outerWidth(true);
                });
            };
            jQuery.fn.calcHeight = function() {
                var maxHeight = 0;
                //Calculate row
                $(this).find("ul").each(function() {
                    if (maxHeight < $(this).height()) {
                        maxHeight = $(this).height();
                    };
                });
                $(this).find("ul").each(function() {
                    $(this).height(maxHeight);
                });
            };
        })(jQuery);

        if ($(this).find(".row").length > 0) { //If row exists...
            var biggestRow = 0;
            //Calculate each row
            $(this).find(".row").each(function() {
                $(this).calcSubWidth();
                $(this).calcHeight();
                //Find biggest row
                if (rowWidth > biggestRow) {
                    biggestRow = rowWidth;
                }
            });
            //Set width
            $(this).find(".sub").css({ 'width': biggestRow });
            $(this).find(".row:last").css({ 'margin': '0' });


        } else { //If row does not exist...

            $(this).calcSubWidth();
            $(this).calcHeight();
            //Set Width
            $(this).find(".sub").css({ 'width': rowWidth });

        }
    }

    function megaHoverOut() {
        $(this).find(".sub").stop().fadeTo('fast', 0, function() {
            $(this).hide();
        });
    }

    var config = {
        sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
        interval: 50, // number = milliseconds for onMouseOver polling interval    
        over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
        timeout: 300, // number = milliseconds delay before onMouseOut    
        out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
    };

    $("ul#topnav li .sub").css({ 'opacity': '0' });
    $("ul#topnav li").hoverIntent(config);
});


var showLogin = true;

function ToggleLogin(URL) {
    if (showLogin) {
        if (document.getElementById("login-frame").src == "") {
            document.getElementById("login-frame").src = URL;
        }
        $("#login .login-drop").slideDown('400');
        $("#login .login-toggle").css('background-position', '0 0');
    } else {
        $("#login .login-drop").slideUp();
        $("#login .login-toggle").css('background-position', '0 -22px');
       
    };
    showLogin = (!showLogin);
}

function GenerateCategoryURL(urlName) {
    return urlRoot + "/" + urlName + '/cashback/';
}
function GenerateSearchMerchantsByLetterAURL() {
    return urlRoot + '/search/merchants?letter=A';
}
function GenerateSearchMerchantsNoPurchaseURL() {
    return urlRoot + '/Search/Merchants/NoPurchase';
}
function GenerateSearchMerchantsRecurringEarnersURL() {
    return urlRoot + '/Search/Merchants/RecurringEarners';
}
function GenerateSearchMerchantsRecentlyAddedURL() {
    return urlRoot + '/Search/Merchants/RecentlyAdded';
}
function GenerateSearchMerchantsRecentlyUpdatedURL() {
    return urlRoot + '/Search/Merchants/RecentlyUpdated';
}
function GenerateSearchLatestDiscountCodesURL() {
    return urlRoot + '/Search/DiscountCodes/Latest';
}
function GenerateSearchHotCashbackOffersURL() {
    return urlRoot + '/Search/merchants/top-cashback-offers';
}
function GenerateTopcashbackCompareURL() {
    return urlRoot + '/topcashback-compare';
}

function LoadNavElectrical() {
    $("ul#topnav li .electricals + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateCategoryURL('photography') + '">Photography</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('tv-home-theatre') + '">TV & Home Theatre</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('audio-and-mp3') + '">Audio & MP3</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('domestic-appliances') + '">Domestic Appliances</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('sat-nav') + '">Sat Nav</a></h2></li></ul>'
        + '<ul><li><h2><a href="' + GenerateCategoryURL('pcs-and-laptops') + '">PCs & Laptops</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('printers-and-print-cartridges') + '">Printers & Print Cartridges</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('software') + '">Software</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}

function LoadNavEntertainment() {
    $("ul#topnav li .entertainment + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateCategoryURL('tv-providers') + '">TV Providers</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('blu-ray-dvd') + '">Blu-ray & DVDs</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('gaming') + '">Gaming</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('games') + '">Games</a></li>'
            + '<li><a href="' + GenerateCategoryURL('games-consoles') + '">Game Consoles</a></li>'
            + '<li><a href="' + GenerateCategoryURL('pc') + '">PC\'s</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('gambling') + '">Gambling</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('lottery') + '">Lottery</a></li>'
            + '<li><a href="' + GenerateCategoryURL('bingo') + '">Bingo </a></li>'
            + '<li><a href="' + GenerateCategoryURL('bookmakers') + '">Bookmakers</a></li>'
            + '<li><a href="' + GenerateCategoryURL('casinos') + '">Casinos</a></li></ul>'
        + '<ul><li><h2><a href="' + GenerateCategoryURL('surveys') + '">Surveys</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('music') + '">Music</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('books-magazines') + '">Books & Magazines</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('experiences-days-out') + '">Experiences & Days Out</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('parties') + '">Parties</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('sports') + '">Sport</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('golf') + '">Golf</a></li>'
            + '<li><a href="' + GenerateCategoryURL('sports-equipment') + '">Sports Equipment</a></li>'
            + '<li><a href="' + GenerateCategoryURL('sportswear') + '">Sports Wear</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('go-outdoors') + '">Go Outdoors</a></h2></li></ul>'
        + '<ul><li><h2><a href="' + GenerateCategoryURL('home-and-garden') + '">Home & Garden</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('diy') + '">DIY</a></li>'
            + '<li><a href="' + GenerateCategoryURL('garden') + '">Garden</a></li>'
            + '<li><a href="' + GenerateCategoryURL('furniture') + '">Furniture</a></li>'
            + '<li><a href="' + GenerateCategoryURL('interior-decor') + '">Interior Decor</a></li>'
            + '<li><a href="' + GenerateCategoryURL('pets') + '">Pets</a></li>'
            + '<li><a href="' + GenerateCategoryURL('property') + '">Property</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('dating') + '">Dating</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('fitness2') + '">Fitness</a></h2></li></ul>'
             + '<ul><li><h2><a href="' + GenerateCategoryURL('motors') + '")>Motors</a></h2></li>'
             + '<li><h2><a href="/NewDiscountCodes?type=Printable">Printables</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}
function LoadNavInsurance() {
    $("ul#topnav li .insurance + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateCategoryURL('insurance') + '">Insurance</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('car-insurance') + '">Car Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('breakdown-cover') + '">Breakdown Cover</a></li>'
            + '<li><a href="' + GenerateCategoryURL('home-insurance') + '">Home Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('van-insurance') + '">Van Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('bike-insurance') + '">Bike Insurance</a></li>' 
            + '<li><a href="' + GenerateCategoryURL('life-insurance') + '">Life Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('travel-insurance') + '">Travel Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('pet-insurance') + '">Pet Insurance </a></li>'
            + '<li><h2><a href="' + GenerateTopcashbackCompareURL() + '">TopCashBack Compare</a></h2></li></ul>'
            + '<ul><li><a href="' + GenerateCategoryURL('home-emergency-insurance2') + '">Home Emergency Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('insurance-comparison') + '">Insurance Comparison</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('credit-cards') + '">Credit Cards</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('banking') + '">Banking</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('loans') + '">Loans</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}

function LoadNavInsuranceUS() {
    $("ul#topnav li .insurance + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateCategoryURL('insurance') + '">Insurance</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('car-insurance') + '">Car Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('breakdown-cover') + '">Breakdown Cover</a></li>'
            + '<li><a href="' + GenerateCategoryURL('home-insurance') + '">Home Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('van-insurance') + '">Van Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('bike-insurance') + '">Bike Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('life-insurance') + '">Life Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('travel-insurance') + '">Travel Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('pet-insurance') + '">Pet Insurance </a></li></ul>'
            + '<ul><li><a href="' + GenerateCategoryURL('home-emergency-insurance2') + '">Home Emergency Insurance</a></li>'
            + '<li><a href="' + GenerateCategoryURL('insurance-comparison') + '">Insurance Comparison</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('credit-cards') + '">Credit Cards</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('banking') + '">Banking</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('loans') + '">Loans</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}


function LoadNavTelecoms() {
    $("ul#topnav li .telecoms + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateCategoryURL('mobile-phones') + '">Mobile Phones</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('contracts-and-payg') + '">Contracts & PAYG</a></li>'
            + '<li><a href="' + GenerateCategoryURL('sim-cards') + '">Sim Cards</a></li>'
            + '<li><a href="' + GenerateCategoryURL('iphone') + '">iPhone</a></li>'
            + '<li><a href="' + GenerateCategoryURL('mobile-accessories') + '">Mobile Accessories</a></li>'
            + '<li><a href="' + GenerateCategoryURL('mobile-phone-recycling') + '">Mobile Phone Recycling</a></li>'
            + '<li><a href="' + GenerateCategoryURL('ringtones-and-services') + '">Ringtones & Services</a></li></ul>'
        + '<ul><li><h2><a href="' + GenerateCategoryURL('broadband-isp') + '">Broadband ISP</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('landline-phone') + '">Landline Phone</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}

function LoadNavTelecoms2() {
    $("ul#topnav li .telecoms + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateCategoryURL('cell-phones') + '">Cell Phones</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('contracts-and-payg') + '">Contracts & PAYG</a></li>'
            + '<li><a href="' + GenerateCategoryURL('sim-cards') + '">Sim Cards</a></li>'
            + '<li><a href="' + GenerateCategoryURL('iphone') + '">iPhone</a></li>'
            + '<li><a href="' + GenerateCategoryURL('cell-accessories') + '">Cell Accessories</a></li>'
            + '<li><a href="' + GenerateCategoryURL('cell-phone-recycling') + '">Cell Phone Recycling</a></li>'
            + '<li><a href="' + GenerateCategoryURL('ringtones-and-services') + '">Ringtones & Services</a></li></ul>'
        + '<ul><li><h2><a href="' + GenerateCategoryURL('broadband-isp') + '">Broadband ISP</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('landline-phone') + '">Landline Phone</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}


function LoadNavTravel() {
    $("ul#topnav li .travel + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateCategoryURL('accommodation') + '">Accommodation</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('car-rental') + '">Car Rental</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('car-hire') + '">Car Hire</a></li>'
            + '<li><a href="' + GenerateCategoryURL('car-hire-insurance') + '">Car Hire Insurance</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('flights-and-tickets') + '">Flights</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('holidays') + '">Holidays</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('rail-ferry-and-coach') + '">Rail, Ferry & Coach</a></h2></li></ul>'
        + '<ul><li><h2><a href="' + GenerateCategoryURL('transfers-and-parking') + '">Transfers & Parking</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('days-out-tickets') + '">Days Out - Tickets</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('travel-insurance2') + '">Travel Insurance</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('foreign-exchange') + '">Foreign Exchange</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}

function LoadNavUtilities() {
    $("ul#topnav li .utilities + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateCategoryURL('gas-and-electricity') + '">Gas & Electricity</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('broadband-and-digital-tv-services') + '">Broadband & Digital TV Services</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('landline-providers') + '">Landline Providers</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('home-emergency-insurance') + '">Home Emergency Insurance</a></h2></li></ul>'
        + '<ul><li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}

function LoadNavMoreShopping() {
    $("ul#topnav li .moreshopping + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateCategoryURL('supermarkets2') + '">Supermarkets</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('food-and-drink') + '">Food & Drink</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('confectionery') + '">Confectionery</a></li>'
            + '<li><a href="' + GenerateCategoryURL('restaurants') + '">Restaurants</a></li>'
            + '<li><a href="' + GenerateCategoryURL('gourmet-food') + '">Gourmet Food</a></li>'
            + '<li><a href="' + GenerateCategoryURL('wines-and-spirits') + '">Wines & Spirits</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('fashion') + '">Fashion</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('designer-fashion') + '">Designer Fashion</a></li>'
            + '<li><a href="' + GenerateCategoryURL('footwear') + '">Footwear</a></li>'
            + '<li><a href="' + GenerateCategoryURL('lingerie') + '">Lingerie</a></li>'
            + '<li><a href="' + GenerateCategoryURL('womanswear') + '">Womenswear</a></li>'
            + '<li><a href="' + GenerateCategoryURL('menswear') + '">Menswear</a></li>'
            + '<li><a href="' + GenerateCategoryURL('outdoor-wear') + '">Outdoor Wear</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('mother-baby-toddler') + '">Mother / Baby / Toddler</a></h2></li></ul>'
        + '<ul><li><h2><a href="' + GenerateCategoryURL('health-and-beauty') + '">Health & Beauty</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('body-and-hair') + '">Body & Hair</a></li>'
            + '<li><a href="' + GenerateCategoryURL('cosmetics') + '">Cosmetics</a></li>'
            + '<li><a href="' + GenerateCategoryURL('fragrances') + '">Fragrances</a></li>'
            + '<li><a href="' + GenerateCategoryURL('dieting') + '">Dieting</a></li>'
            + '<li><a href="' + GenerateCategoryURL('eyecare') + '">Eye Care</a></li>'
            + '<li><a href="' + GenerateCategoryURL('nutrition-and-supplements') + '">Nutrition & Supplements</a></li>'
            + '<li><a href="' + GenerateCategoryURL('pharmacy') + '">Pharmacy</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('shopping') + '">Shopping</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('auction') + '">Auction</a></li>'
            + '<li><a href="' + GenerateCategoryURL('catalogue-stores') + '">Catalogue Stores</a></li>'
            + '<li><a href="' + GenerateCategoryURL('department-stores') + '">Department Stores</a></li>'
            + '<li><a href="' + GenerateCategoryURL('price-comparison') + '">Price Comparison</a></li>'
            + '<li><a href="' + GenerateCategoryURL('daily-deals') + '">Daily Deals</a></li></ul>'
        + '<ul><li><h2><a href="' + GenerateCategoryURL('gifts') + '">Gifts</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('cards') + '">Cards</a></li>'
            + '<li><a href="' + GenerateCategoryURL('experiences-days-out2') + '">Experiences & Days Out</a></li>'
            + '<li><a href="' + GenerateCategoryURL('flowers') + '">Flowers</a></li>'
            + '<li><a href="' + GenerateCategoryURL('food-and-drink2') + '">Food & Drink</a></li>'
            + '<li><a href="' + GenerateCategoryURL('jewellery') + '">Jewellery</a></li>'
            + '<li><a href="' + GenerateCategoryURL('toys') + '">Toys</a></li>'
            + '<li><a href="' + GenerateCategoryURL('gadgets-and-gizmos') + '">Gadgets & Gizmos</a></li>'
            + '<li><a href="' + GenerateCategoryURL('artwork') + '">Artwork</a></li>'
            + '<li><a href="' + GenerateCategoryURL('charities') + '">Charities</a></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('wedding') + '">Weddings</a></h2></li></ul>'
        + '<ul><li><h2><a href="' + GenerateCategoryURL('office-and-business') + '">Office & Business</a></h2></li>'
            + '<li><a href="' + GenerateCategoryURL('advertising-and-research') + '">Advertising and Research</a></li>'
            + '<li><a href="' + GenerateCategoryURL('b2b') + '">B2B</a></li>'
            + '<li><a href="' + GenerateCategoryURL('office-equipment') + '">Office Equipment</a></li>'
            + '<li><a href="' + GenerateCategoryURL('training-and-recruitment') + '">Training & Recruitment</a></li>'
            + '<li><h2><a href="/NewDiscountCodes?type=Printable">Printables</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}

function LoadNavFreeCash() {
    $("ul#topnav li .freecash + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateSearchMerchantsNoPurchaseURL() + '">No Purchase Offers</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsRecurringEarnersURL() + '">Recurring Earners</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('free-trials') + '">Free Trials</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('free-sim-cards') + '">Free Sim Cards</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('surveys2') + '">Surveys</a></h2></li>'
            + '<li><h2><a href="' + GenerateCategoryURL('competitions') + '">Competitions</a></h2></li></ul>'
        + '<ul><li><h2><a href="' + GenerateSearchMerchantsByLetterAURL() + '">Merchants A-Z</a></h2></li></ul>');
}

function LoadNavNewOffers() {
    $("ul#topnav li .newoffers + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateSearchHotCashbackOffersURL() + '">Top Cashback Offers</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsRecentlyAddedURL() + '">Newly Added Merchants</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsRecentlyUpdatedURL() + '">Recently Updated Offers</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchLatestDiscountCodesURL() + '">Latest Discount Codes</a></h2></li></ul>');
}

function LoadNavNewOffersNoDiscounts() {
    $("ul#topnav li .newoffers + .sub").html(
        '<ul class="first"><li><h2><a href="' + GenerateSearchHotCashbackOffersURL() + '">Top Cashback Offers</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsRecentlyAddedURL() + '">Newly Added Merchants</a></h2></li>'
            + '<li><h2><a href="' + GenerateSearchMerchantsRecentlyUpdatedURL() + '">Recently Updated Offers</a></h2></li></ul>');
}
