﻿function setupWeatherExt() {} 
function ApplyWindowHeight(document) {}

function hideWeatherExtBloc(element, id) {
    jQuery(".weatherPointer").hide();
    jQuery(".weatherPopup").hide();
}

function showWeatherExtBloc(element, id) {
	jQuery('.weatherPopup').hide();
	jQuery('.weatherPointer').hide();
	jQuery('.weatherPopup').each(function () {
	    if (jQuery(this).attr('id').replace(/.*wexblock/, '') === id) {
            var left = parseInt(jQuery(element).css("left").replace("px", ""));
            var top = parseInt(jQuery(element).css("top").replace("px", ""));
	        jQuery(this)
                .css("left", left - 100 + "px")
	            .css("top", top - 25 + "px")
                .show();
	        jQuery('.weatherPointer')
                .css("left", left + "px")
	            .css("top", top + "px")
	            .show();
	    }
	}); 
}
