/*----------------------------------------------------------

  After loading the page,

  @package meteo.js
  @author Dario Cavada, cavada@ectrlsolutions.com
  @version v 1.00 2009/02/23

  ---------------------------------------------------------*/

jQuery.noConflict();

var selectedLocation = "";
var selectedDate ="";
var selectedArea = "";
//add thickbox to href & area elements that have a class of .thickbox
function showMeteoText(meteoText, idLocation, idArea, idDate){
    
    if ((selectedLocation != idLocation) || (selectedDate != idDate)) {
        selectedLocation = idLocation;
        selectedDate = idDate;
        selectedArea = idArea;
        var meteoContainer = "#meteo-text-container"+idDate;
        var htmlText = "" +idArea + " <p>" + meteoText + "</p>";
        jQuery(meteoContainer).hide();
        jQuery(meteoContainer).empty();
        jQuery(meteoContainer).append(htmlText);
        jQuery(meteoContainer).show();
    }
}

function hideMeteoText(meteoText, idLocation, idArea, idDate){
    selectedLocation = "";
    selectedDate = "";
    selectedArea = "";
    meteoContainer = "#meteo-text-container"+idDate;
    jQuery(meteoContainer).hide();
}


