(function($) {
	$.fn.customFadeIn = function(speed, callback) {
		$(this).fadeIn(speed, function() {
			if(!$.support.opacity)
				$(this).get(0).style.removeAttribute('filter');
			if(callback != undefined)
				callback();
		});
	};
	$.fn.customFadeOut = function(speed, callback) {
		$(this).fadeOut(speed, function() {
			if(!$.support.opacity)
				$(this).get(0).style.removeAttribute('filter');
			if(callback != undefined)
				callback();
		});
	};
	$.fn.customFadeTo = function(speed,to,callback) {
		return this.animate({opacity: to}, speed, function() {
			if (to == 1 && jQuery.browser.msie)
				this.style.removeAttribute('filter');
			if (jQuery.isFunction(callback))
				callback();
		});
	};
})(jQuery);


$(document).ready(function(){
	    $(".internetico a").hover(function() {
	        $(this).next("em").animate({opacity: "show", bottom: "-20"}, "fast");
	    }, function() {
	        $(this).next("em").animate({opacity: "hide", bottom: "-30"}, "fast");
	    });
		
		$(".telico a").hover(function() {
	        $(this).next("em").animate({opacity: "show", bottom: "-75"}, "fast");
	    }, function() {
	        $(this).next("em").animate({opacity: "hide", bottom: "-85"}, "fast");
	    });
		
		$(".iptvico div").hover(function() {
	        $(this).next("em").animate({opacity: "show", bottom: "-20"}, "fast");
	    }, function() {
	        $(this).next("em").animate({opacity: "hide", bottom: "-30"}, "fast");
	    });
		
		
	});


function showico(id){
    $('.'+id+' span').fadeIn(200);	
    }
	
function hideico(id){
    $('.'+id+' span').fadeOut(100);	
    }
