$(document).ready(function(){

	setTimeout(function() {
		web_cen = $(".centro").height();
		web_izq = $(".menu_izquierda_centro").height()+$(".menu_izquierda_final").height();
		web_izq_def = web_izq-40;
		if(web_izq>web_cen) {
			$(".centro").height(web_izq_def);
		}
	}, 500);
	
	if ($.browser.msie && parseInt($.browser.version.substr(0, 1)) < 7) {
		$(".logo img, .telefono img").each(function(){
			$(this).css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + $(this).attr('src') + "', sizingMethod='scale')").attr("src", rutaweb+"/img/blank.gif");
		});
		$('.header, .mascara_arriba_imagen, .centro_final, .menu_izquierda_arriba, .menu_izquierda_final').each(function(){
			var bg = $(this).css("backgroundImage");
			bg.match(/^url[("']+(.*\.png)[)"']+$/i);
			bg = RegExp.$1;
			$(this).css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + bg + "', sizingMethod='crop')").css("backgroundImage", "none");
		});
		$('.centro').each(function(){
			var bg = $(this).css("backgroundImage");
			bg.match(/^url[("']+(.*\.png)[)"']+$/i);
			bg = RegExp.$1;
			$(this).css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + bg + "', sizingMethod='scale')").css("backgroundImage", "none");
		});
		setTimeout(function() {
			$('.menu_sup').css({background:'url("'+rutaweb+'/img/fondo_menu_sup.gif")'}).css("backgroundRepeat", "no-repeat");
		}, 250);
	}

});