function GetHotDeals(strFile) 
{
    Ajax_WriteToPageWithCallback(strFile, DisplayHotDeals);
}

function DisplayHotDeals(strResponse) 
{
    if (strResponse == '') 
    {
        document.getElementById('hotdealbox').style.background = "none";
        document.getElementById('hotdealbox').style.display = "none";
        return;
    }

    //Spit each list of hot deals into its constituent elements
    var arrHotDeals = strResponse.split('|');
    var strHotDealList = arrHotDeals[0];
    var strShortName = arrHotDeals[1];
    var strCountryId = arrHotDeals[2];
    var strBaseUrl = arrHotDeals[3];

    //Build the top of the hot deal box
    var strInnerHtml = '<div class="right-box" id="box-hot-deals">';
    strInnerHtml += '<div class="box-content"><h2><span>' + strShortName + ' Hot Deals</span></h2>';
    strInnerHtml += '<ul>';

    //Fill the hot deal box with hot deals
    strInnerHtml += strHotDealList

    //Build the bottom of the hot deal box - add the more hot deals link for Australia
	if(strCountryId == '10')
	{
	    strInnerHtml += '<div align="right">';
	    strInnerHtml += '<a id="more-link" href="' + strBaseUrl + '/deals" target="_top" style="color: #ff7700;">';
	    strInnerHtml += '<strong>More Australia Wide Hot Deals</strong>';
	    strInnerHtml += '</a>';
	    strInnerHtml += '</div>';
    }
    strInnerHtml += '</ul>';
    strInnerHtml += '</div>';
    strInnerHtml += '</div>';
   
    //push it all to the screen
    document.getElementById('hotdealbox').innerHTML = strInnerHtml;
}