		jQuery(document).ready(function(){	
			/* ANULAR LINK DE CENTRO MUSICAL */
			jQuery('#nav .level0.nav-3.level-top.parent a.level-top').attr("href", "http://www.musicom.es/centro-musical-ca-2/centro-musical.html");
			
			
			/* EN OCASION-VINTAGE PONER ORDEN POR VENDIDO Y OCULTAR CONTROLES. */
			if (jQuery('body').attr('class').match(/\bcategorypath-zona-vintage/)) {
				jQuery(".td_s_order").remove();
				jQuery(".t_s_order").css("width","700px");
			}
			
			/* ASIGNAR ESPAŅA EN EL CARRITO POR DEFECTO */
			if (jQuery(".shipping-form").length) {
				jQuery("#country").val( "ES" ).attr('selected',true);
			}
			
			/* GENERACION DEL HORARIO */
			if (jQuery(".horario").length) {
				//Fondos
				jQuery('p:contains("#ML#")').css("background-image", "url(http://www.musicom.es/skin/frontend/default/theme211/images/verde_entero.jpg)");
				jQuery('p:contains("#MO#")').css("background-image", "url(http://www.musicom.es/skin/frontend/default/theme211/images/rojo_entero.jpg)");				
				jQuery('td:contains("#L#")').css("background-image", "url(http://www.musicom.es/skin/frontend/default/theme211/images/verde_entero.jpg)");
				jQuery('td:contains("#O#")').css("background-image", "url(http://www.musicom.es/skin/frontend/default/theme211/images/rojo_entero.jpg)");

				//Altos	
				jQuery('p:contains("#ML#")').height(21);
				jQuery('p:contains("#MO#")').height(21);
				
				jQuery('td:contains("#L#")').height(42);
				jQuery('td:contains("#O#")').height(42);
				
				
				//Margenes, Paddings y Borders
				jQuery('p:contains("#ML#")').css("margin", "0");
				jQuery('p:contains("#MO#")').css("margin", "0");
				
				jQuery('td:contains("#ML#")').css("padding", "0");
				jQuery('td:contains("#MO#")').css("padding", "0");
				
				jQuery('td:contains("#L#")').css("padding", "0");
				jQuery('td:contains("#O#")').css("padding", "0");
			
				jQuery('td:contains("#ML#")').css("vertical-align", "middle");
				jQuery('td:contains("#MO#")').css("vertical-align", "middle");
						
				jQuery('p:contains("#ML#")').css("line-height", "1.5em");
				jQuery('p:contains("#MO#")').css("line-height", "1.5em");
				
				jQuery('p:contains("#ML#")').css("border", "0");
				jQuery('p:contains("#MO#")').css("border", "0");

				//Colores
				jQuery('p:contains("#ML#")').css("color","white");
				jQuery('p:contains("#MO#")').css("color","white");
				jQuery('td:contains("#L#")').css("color","white");
				jQuery('td:contains("#O#")').css("color","white");
				
				//Textos
				jQuery('td:contains("#L#")').each(function(index, value) {
					jQuery(this).html(jQuery(this).html().replace("#L#", ""))
				});				
				jQuery('td:contains("#O#")').each(function(index, value) {
					jQuery(this).html(jQuery(this).html().replace("#O#", ""))
				});
				jQuery('p:contains("#ML#")').each(function(index, value) {
					jQuery(this).html(jQuery(this).html().replace("#ML#", ""))
				});
				jQuery('p:contains("#MO#")').each(function(index, value) {
					jQuery(this).html(jQuery(this).html().replace("#MO#", ""))
				});
			};	
		});

