<?php
/*======================================================================*\
|| #################################################################### ||
|| # Youjoomla.com - YJ- Licence Number 59-JJ883659					
|| # Licensed to - silviu bobicescu										
|| # ---------------------------------------------------------------- # ||
|| # Copyright (C) 2006-2009 Youjoomla.com. All Rights Reserved.        ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- THIS IS NOT FREE SOFTWARE ---------------- #      ||
|| # http://www.youjoomla.com | http://www.youjoomla.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

/// no direct access
defined('_JEXEC') or die('Restricted access');

	$lang = JFactory :: getLanguage();
	$lang->load('mod_you_weather', JPATH_BASE);

    $humidity 	= JText::_('HUMIDITY');
    $wind 		= JText::_('WIND');

    $days 		= array(
    	'Mon'=>JText::_('MONDAY'),
    	'Tue'=>JText::_('TUESDAY'),
    	'Wed'=>JText::_('WEDENSDAY'),
    	'Thu'=>JText::_('THURSDAY'),
    	'Fri'=>JText::_('FRIDAY'),
    	'Sat'=>JText::_('SATURDAY'),
    	'Sun'=>JText::_('SUNDAY')
    );

    $icon_mappings = array(
    	'Sunny'=>array(
    		'icon'=>''. JURI::base().'images/sunny.png',
    		'message'=>JText::_('SUNNY')),
    	'fair (night)'=>array(
    		'icon'=>''. JURI::base().'images/sunny.png',
    		'message'=>JText::_('SUNNY')),
    	'fair (day)'=>array(
    		'icon'=>''. JURI::base().'images/sunny.png',
    		'message'=>JText::_('SUNNY')),
    	'Fair'=>array(
    		'icon'=>''. JURI::base().'images/sunny.png',
    		'message'=>JText::_('SUNNY')),			
    	'hot'=>array(
    		'icon'=>''. JURI::base().'images/sunny.png',
    		'message'=>JText::_('SUNNY')),			
    	'sunny'=>array(
    		'icon'=>''. JURI::base().'images/sunny.png',
    		'message'=>JText::_('SUNNY')),			
    	'Clear'=>array(
    		'icon'=>''. JURI::base().'images/clear.png',
    		'message'=>JText::_('CLEAR')),
    	'clear (night)'=>array(
    		'icon'=>''. JURI::base().'images/clear.png',
    		'message'=>JText::_('CLEAR')),			
		'Mostly Sunny'	=>array(
			'icon'=>''. JURI::base().'images/mostly_sunny.png',
			'message'=>JText::_('MSUNNY')),
		'Partly Sunny'	=>array(
			'icon'=>''. JURI::base().'images/partly_cloudy.png',
			'message'=>JText::_('MSUNNY')),
		'Chance of Storm'=>array(
			'icon'=>''. JURI::base().'images/chance_of_storm.png',
			'message'=>JText::_('COSTORM')),
		'Chance of Rain'=>array(
			'icon'=>''. JURI::base().'images/chance_of_rain.png',
			'message'=>JText::_('CORAIN')),
		'Chance of Freezing Rain'=>array(
			'icon'=>''. JURI::base().'images/chance_of_rain.png',
			'message'=>JText::_('CORAIN')),			
		'Light Rain'=>array(
			'icon'=>''. JURI::base().'images/chance_of_rain.png',
			'message'=>JText::_('LRAIN')),
		'Light Freezing Rain'=>array(
			'icon'=>''. JURI::base().'images/chance_of_rain.png',
			'message'=>JText::_('LRAIN')),			
		'Hail'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),
		'Small Hail'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),			
		'Light Small Hail Showers'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),
		'Heavy Small Hail Showers'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),
		'Small Hail Showers'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),
		'Light Hail Showers'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),
		'Heavy Hail Showers'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),
		'Hail Showers'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),
		'Light Hail'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),			
		'Heavy Hail'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),			
		'Hail'=>array(
			'icon'=>''. JURI::base().'images/hail.png',
			'message'=>JText::_('HAIL')),									
		'Cloudy'=>array(
			'icon'=>''. JURI::base().'images/cloudy.png',
			'message'=>JText::_('CLOUDY')),
		'Scattered Clouds'=>array(
			'icon'=>''. JURI::base().'images/cloudy.png',
			'message'=>JText::_('CLOUDY')),			
		'Funnel Cloud'=>array(
			'icon'=>''. JURI::base().'images/cloudy.png',
			'message'=>JText::_('CLOUDY')),
		'Partly Cloudy'=>array(
			'icon'=>''. JURI::base().'images/partly_cloudy.png',
			'message'=>JText::_('PCLOUDY')),
    	'partly cloudy (day)'=>array(
			'icon'=>''. JURI::base().'images/partly_cloudy.png',
			'message'=>JText::_('PCLOUDY')),
		'partly cloudy (night)'=>array(
			'icon'=>''. JURI::base().'images/partly_cloudy.png',
			'message'=>JText::_('PCLOUDY')),			
		'partly cloudy (day)'=>array(
			'icon'=>''. JURI::base().'images/partly_cloudy.png',
			'message'=>JText::_('PCLOUDY')),			
		'Mostly Cloudy'=>array(
			'icon'=>''. JURI::base().'images/mostly_cloudy.png',
			'message'=>JText::_('MCLOUDY')),
		'mostly cloudy (night)'=>array(
			'icon'=>''. JURI::base().'images/mostly_cloudy.png',
			'message'=>JText::_('MCLOUDY')),			
		'mostly cloudy (day)'=>array(
			'icon'=>''. JURI::base().'images/mostly_cloudy.png',
			'message'=>JText::_('MCLOUDY')),			
		'Mist'=>array(
			'icon'=>''. JURI::base().'images/mist.png',
			'message'=>JText::_('MIST')),
		'Light Mist'=>array(
			'icon'=>''. JURI::base().'images/mist.png',
			'message'=>JText::_('MIST')),
		'Heavy Mist'=>array(
			'icon'=>''. JURI::base().'images/mist.png',
			'message'=>JText::_('MIST')),
		'Storm'=>array(
			'icon'=>''. JURI::base().'images/storm.png',
			'message'=>JText::_('STORM')),
		'blustery'=>array(
			'icon'=>''. JURI::base().'images/storm.png',
			'message'=>JText::_('STORM')),			
		'hurricane'=>array(
			'icon'=>''. JURI::base().'images/storm.png',
			'message'=>JText::_('STORM')),						
		'tropical storm'=>array(
			'icon'=>''. JURI::base().'images/storm.png',
			'message'=>JText::_('STORM')),
		'Scattered Thunderstorms'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Light Thunderstorms and Snow'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Heavy Thunderstorms and Snow'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Thunderstorms and Snow'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Light Thunderstorms and Ice Pellets'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Heavy Thunderstorms and Ice Pellets'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Thunderstorms and Ice Pellets'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Light Thunderstorms with Hail'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Heavy Thunderstorms with Hail'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Thunderstorms with Hail'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Light Thunderstorms with Small Hail'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Heavy Thunderstorms with Small Hail'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Thunderstorms with Small Hail'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Light Thunderstorms and Rain'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Heavy Thunderstorms and Rain'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Thunderstorms and Rain'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Light Thunderstorm'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Heavy Thunderstorm'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'Thunderstorm'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'severe thunderstorms'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'thunderstorms'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),			
		'isolated thunderstorms'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),						
		'scattered thunderstorms'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),			
		'Isolated Thunderstorms'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'isolated thundershowers'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),			
		'Thunderstorm'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),
		'thundershowers'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('THUNDERSTORM')),			
		'Chance of TStorm'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('CH_THUNDERSTORM')),
		'Chance of Thunderstorms'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('CH_THUNDERSTORM')),
		'Chance of a Thunderstorm'=>array(
			'icon'=>''. JURI::base().'images/thunderstorm.png',
			'message'=>JText::_('CH_THUNDERSTORM')),
		'Sleet'=>array(
			'icon'=>''. JURI::base().'images/sleet.png',
			'message'=>JText::_('SLEET')),
		'Chance of Sleet'=>array(
			'icon'=>''. JURI::base().'images/sleet.png',
			'message'=>JText::_('SLEET')),			
		'mixed snow and sleet'=>array(
			'icon'=>''. JURI::base().'images/sleet.png',
			'message'=>JText::_('SLEET')),			
		'Snow'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Heavy Snow Blowing Snow Mist'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Snow Blowing Snow Mist'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Heavy Blowing Snow'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Blowing Snow'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Heavy Low Drifting Snow'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Low Drifting Snow'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Heavy Snow Grains'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Snow Grains'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),						
		'Heavy Snow'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'heavy snow'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),			
		'blowing snow'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),			
		'Chance of Snow'=>array(
			'icon'=>''. JURI::base().'images/chance_of_snow.png',
			'message'=>JText::_('CHANCE_SNOW')),
		'Snow Showers'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Light Ice Pellet Showers'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Heavy Ice Pellet Showers'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Ice Pellet Showers'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Light Snow Showers'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'Heavy Snow Showers'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),
		'scattered snow showers'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),			
		'light snow showers'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('SNOW')),			
		'Ice/Snow'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('ICY_SNOW')),
		'Light Ice Crystals'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('ICY_SNOW')),			
		'Heavy Ice Crystals'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('ICY_SNOW')),
		'Ice Crystals'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('ICY_SNOW')),
		'Light Ice Pellets'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('ICY_SNOW')),			
		'Heavy Ice Pellets'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('ICY_SNOW')),
		'Ice Pellets'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('ICY_SNOW')),
		'Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Light Blowing Widespread Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Heavy Blowing Widespread Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Blowing Widespread Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Light Low Drifting Widespread Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Heavy Low Drifting Widespread Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Low Drifting Widespread Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Light Dust Whirls'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Heavy Dust Whirls'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Dust Whirls'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Light Widespread Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Heavy Widespread Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Widespread Dust'=>array(
			'icon'=>''. JURI::base().'images/dust.png',
			'message'=>JText::_('DUST')),
		'Fog'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'Patches of Fog'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'Shallow Fog'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'Partial Fog'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),						
		'Light Freezing Fog'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'Heavy Freezing Fog'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'Freezing Fog'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'Light Fog'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),			
		'Heavy Fog'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'Light Fog Patches'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'Heavy Fog Patches'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'Fog Patches'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),
		'foggy'=>array(
			'icon'=>''. JURI::base().'images/fog.png',
			'message'=>JText::_('FOG')),			
		'Smoke'=>array(
			'icon'=>''. JURI::base().'images/smoke.png',
			'message'=>JText::_('SMOKE')),
		'Light Smoke'=>array(
			'icon'=>''. JURI::base().'images/smoke.png',
			'message'=>JText::_('SMOKE')),
		'Heavy Smoke'=>array(
			'icon'=>''. JURI::base().'images/smoke.png',
			'message'=>JText::_('SMOKE')),
		'smoky'=>array(
			'icon'=>''. JURI::base().'images/smoke.png',
			'message'=>JText::_('SMOKE')),			
		'Rain and Snow'=>array(
			'icon'=>''. JURI::base().'images/sleet.png',
			'message'=>JText::_('RAIN_SNOW')),
		'mixed rain and snow'=>array(
			'icon'=>''. JURI::base().'images/sleet.png',
			'message'=>JText::_('RAIN_SNOW')),
		'Haze'=>array(
			'icon'=>''. JURI::base().'images/haze.png',
			'message'=>JText::_('HAZE')),
		'Light Haze'=>array(
			'icon'=>''. JURI::base().'images/haze.png',
			'message'=>JText::_('HAZE')),
		'Heavy Haze'=>array(
			'icon'=>''. JURI::base().'images/haze.png',
			'message'=>JText::_('HAZE')),
		'Flurries'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('FLURRIES')),
		'Chance of Flurries'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('FLURRIES')),			
		'snow flurries'=>array(
			'icon'=>''. JURI::base().'images/snow.png',
			'message'=>JText::_('FLURRIES')),			
		'Windy'=>array(
			'icon'=>''. JURI::base().'images/storm.png',
			'message'=>JText::_('WINDY')),
		'Showers'=>array(
			'icon'=>''. JURI::base().'images/mist.png',
			'message'=>JText::_('SHOWERS')),
		'Light Rain Showers'=>array(
			'icon'=>''. JURI::base().'images/mist.png',
			'message'=>JText::_('SHOWERS')),
		'Light Rain Mist'=>array(
			'icon'=>''. JURI::base().'images/mist.png',
			'message'=>JText::_('SHOWERS')),
		'Heavy Rain Mist'=>array(
			'icon'=>''. JURI::base().'images/mist.png',
			'message'=>JText::_('SHOWERS')),
		'Rain Mist'=>array(
			'icon'=>''. JURI::base().'images/mist.png',
			'message'=>JText::_('SHOWERS')),
		'Scattered Showers'=>array(
			'icon'=>''. JURI::base().'images/mist.png',
			'message'=>JText::_('SCATT_SHOWERS')),
		'Overcast'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Unknown'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Unknown Precipitation'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),			
		'Squals'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),			
		'Light Blowing Sand'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Heavy Blowing Sand'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Blowing Sand'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),									
		'Light Low Drifting Sand'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Heavy Low Drifting Sand'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Low Drifting Sand'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Light Sandstorm'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Heavy Sandstorm'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Sandstorm'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Light Spray'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Heavy Spray'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Spray'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Light Sand'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Heavy Sand'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Sand'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Light Volcanic Ash'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Heavy Volcanic Ash'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Volcanic Ash'=>array(
			'icon'=>''. JURI::base().'images/overcast.png',
			'message'=>JText::_('OVERCAST')),
		'Light Snow'=>array(
			'icon'=>''. JURI::base().'images/chance_of_snow.png',
			'message'=>JText::_('LIGHT_SNOW')),
		'Light Snow Blowing Snow Mist'=>array(
			'icon'=>''. JURI::base().'images/chance_of_snow.png',
			'message'=>JText::_('LIGHT_SNOW')),			
		'Light Blowing Snow'=>array(
			'icon'=>''. JURI::base().'images/chance_of_snow.png',
			'message'=>JText::_('LIGHT_SNOW')),
		'Light Low Drifting Snow'=>array(
			'icon'=>''. JURI::base().'images/chance_of_snow.png',
			'message'=>JText::_('LIGHT_SNOW')),			
		'Light Snow Grains'=>array(
			'icon'=>''. JURI::base().'images/chance_of_snow.png',
			'message'=>JText::_('LIGHT_SNOW')),			
		'Freezing Drizzle'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('FREE_DRIZ')),
		'Light Freezing Drizzle'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('FREE_DRIZ')),
		'Heavy Freezing Drizzle'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('FREE_DRIZ')),
		'Freezing Drizzle'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('FREE_DRIZ')),
		'Light Drizzle'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('FREE_DRIZ')),
		'Heavy Drizzle'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('FREE_DRIZ')),
		'Drizzle'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('FREE_DRIZ')),			
		'Icy'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('ICY')),
		'cold'=>array(
			'icon'=>''. JURI::base().'images/icy.png',
			'message'=>JText::_('ICY')),			
		'Rain'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),
		'Freezing Rain'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),			
		'Heavy Freezing Rain'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),
		'Freezing Rain'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),
		'Heavy Rain Showers'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),
		'Rain Showers'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),
		'Heavy Rain'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),
		'mixed rain and sleet'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),
		'freezing rain'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),
		'PM Showers'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),
		'AM Showers'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN')),			
		'mixed rain and hail'=>array(
			'icon'=>''. JURI::base().'images/rain.png',
			'message'=>JText::_('RAIN'))			
    );

	$yw_code = array(
		0=>'tornado',
		1=>'tropical storm',
		2=>'hurricane',
		3=>'severe thunderstorms',
		4=>'thunderstorms',
		5=>'mixed rain and snow',
		6=>'mixed rain and sleet',
		7=>'mixed snow and sleet',
		8=>'freezing drizzle',
		9=>'drizzle',
		10=>'freezing rain',
		11=>'showers',
		12=>'showers',
		13=>'snow flurries',
		14=>'light snow showers',
		15=>'blowing snow',
		16=>'snow',
		17=>'hail',
		18=>'sleet',
		19=>'dust',
		20=>'foggy',
		21=>'haze',
		22=>'smoky',
		23=>'blustery',
		24=>'windy',
		25=>'cold',
		26=>'cloudy',
		27=>'mostly cloudy (night)',
		28=>'mostly cloudy (day)',
		29=>'partly cloudy (night)',
		30=>'partly cloudy (day)',
		31=>'clear (night)',
		32=>'sunny',
		33=>'fair (night)',
		34=>'fair (day)',
		35=>'mixed rain and hail',
		36=>'hot',
		37=>'isolated thunderstorms',
		38=>'scattered thunderstorms',
		39=>'scattered thunderstorms',
		40=>'scattered showers',
		41=>'heavy snow',
		42=>'scattered snow showers',
		43=>'heavy snow',
		44=>'partly cloudy',
		45=>'thundershowers',
		46=>'snow showers',
		47=>'isolated thundershowers',
		3200=>'not available'
	);	
	
	$wu_code = array(
		49=>'Light Drizzle',
		50=>'Heavy Drizzle',
		51=>'Drizzle',
		52=>'Light Rain',
		53=>'Heavy Rain',
		54=>'Rain',
		55=>'Light Snow',
		56=>'Heavy Snow',
		57=>'Snow',
		58=>'Light Snow Grains',
		59=>'Heavy Snow Grains',
		60=>'Snow Grains',
		61=>'Light Ice Crystals',
		62=>'Heavy Ice Crystals',
		63=>'Ice Crystals',
		64=>'Light Ice Pellets',
		65=>'Heavy Ice Pellets',
		66=>'Ice Pellets',
		67=>'Light Hail',
		68=>'Heavy Hail',
		69=>'Hail',
		70=>'Light Mist',
		71=>'Heavy Mist',
		72=>'Mist',
		73=>'Light Fog',
		74=>'Heavy Fog',
		75=>'Fog',
		76=>'Light Fog Patches',
		77=>'Heavy Fog Patches',
		78=>'Fog Patches',
		79=>'Light Smoke',
		80=>'Heavy Smoke',
		81=>'Smoke',
		82=>'Light Volcanic Ash',
		83=>'Heavy Volcanic Ash',
		84=>'Volcanic Ash',
		85=>'Light Widespread Dust',
		86=>'Heavy Widespread Dust',
		87=>'Widespread Dust',
		88=>'Light Sand',
		89=>'Heavy Sand',
		90=>'Sand',
		91=>'Light Haze',
		92=>'Heavy Haze',
		93=>'Haze',
		94=>'Light Spray',
		95=>'Heavy Spray',
		96=>'Spray',
		97=>'Light Dust Whirls',
		98=>'Heavy Dust Whirls',
		99=>'Dust Whirls',
		100=>'Light Sandstorm',
		101=>'Heavy Sandstorm',
		102=>'Sandstorm',
		103=>'Light Low Drifting Snow',
		104=>'Heavy Low Drifting Snow',
		105=>'Low Drifting Snow',
		106=>'Light Low Drifting Widespread Dust',
		107=>'Heavy Low Drifting Widespread Dust',
		108=>'Low Drifting Widespread Dust',
		109=>'Light Low Drifting Sand',
		110=>'Heavy Low Drifting Sand',
		111=>'Low Drifting Sand',
		112=>'Light Blowing Snow',
		113=>'Heavy Blowing Snow',
		114=>'Blowing Snow',
		115=>'Light Blowing Widespread Dust',
		116=>'Heavy Blowing Widespread Dust',
		117=>'Blowing Widespread Dust',
		118=>'Light Blowing Sand',
		119=>'Heavy Blowing Sand',
		120=>'Blowing Sand',
		121=>'Light Rain Mist',
		122=>'Heavy Rain Mist',
		123=>'Rain Mist',
		124=>'Light Rain Showers',
		125=>'Heavy Rain Showers',
		126=>'Rain Showers',
		127=>'Light Snow Showers',
		128=>'Heavy Snow Showers',
		129=>'Snow Showers',
		130=>'Light Snow Blowing Snow Mist',
		131=>'Heavy Snow Blowing Snow Mist',
		132=>'Snow Blowing Snow Mist',
		133=>'Light Ice Pellet Showers',
		134=>'Heavy Ice Pellet Showers',
		135=>'Ice Pellet Showers',
		136=>'Light Hail Showers',
		137=>'Heavy Hail Showers',
		138=>'Hail Showers',
		139=>'Light Small Hail Showers',
		140=>'Heavy Small Hail Showers',
		141=>'Small Hail Showers',
		142=>'Light Thunderstorm',
		143=>'Heavy Thunderstorm',
		144=>'Thunderstorm',
		145=>'Light Thunderstorms and Rain',
		146=>'Heavy Thunderstorms and Rain',
		147=>'Thunderstorms and Rain',
		148=>'Light Thunderstorms and Snow',
		149=>'Heavy Thunderstorms and Snow',
		150=>'Thunderstorms and Snow',
		151=>'Light Thunderstorms and Ice Pellets',
		152=>'Heavy Thunderstorms and Ice Pellets',
		153=>'Thunderstorms and Ice Pellets',
		154=>'Light Thunderstorms with Hail',
		155=>'Heavy Thunderstorms with Hail',
		156=>'Thunderstorms with Hail',
		157=>'Light Thunderstorms with Small Hail',
		158=>'Heavy Thunderstorms with Small Hail',
		159=>'Thunderstorms with Small Hail',
		160=>'Light Freezing Drizzle',
		161=>'Heavy Freezing Drizzle',
		162=>'Freezing Drizzle',
		163=>'Light Freezing Rain',
		164=>'Heavy Freezing Rain',
		165=>'Freezing Rain',
		166=>'Light Freezing Fog',
		167=>'Heavy Freezing Fog',        
		168=>'Freezing Fog',
		169=>'Patches of Fog',
		170=>'Shallow Fog',
		171=>'Partial Fog',
		172=>'Overcast',
		173=>'Clear',
		174=>'Partly Cloudy',
		175=>'Mostly Cloudy',
		176=>'Scattered Clouds',
		177=>'Small Hail',
		178=>'Squals',
		179=>'Funnel Cloud',
		180=>'Unknown Precipitation',
		3200=>'Unknown'
	);
	
	$wu_forecast_code = array(
		200=>'Chance of Flurries',
		201=>'Chance of Rain',
		202=>'Chance of Freezing Rain',
		203=>'Chance of Sleet',
		204=>'Chance of Snow',
		205=>'Chance of Thunderstorms',
		206=>'Chance of a Thunderstorm',
		207=>'Clear',
		208=>'Cloudy',
		209=>'Flurries',
		210=>'Fog',
		211=>'Haze',
		212=>'Mostly Cloudy',
		213=>'Mostly Sunny',
		214=>'Partly Cloudy',
		215=>'Partly Sunny',
		216=>'Freezing Rain',
		217=>'Rain',
		218=>'Sleet',
		219=>'Snow',
		220=>'Sunny',
		221=>'Thunderstorms',
		222=>'Thunderstorm',
		223=>'Unknown',
		224=>'Overcast',
		225=>'Scattered Clouds'
	);