 $(document).ready(function() {

            $("#header_menu_carrito_img").click(function(e) {
				e.preventDefault();
               /*  $("#signin_carrito").slideDown("slow");*/
                $("#signin_carrito").toggle();
			
            });

    
             $("#signin_carrito").mouseup(function() {
				return false
			});
			$(document).mouseup(function(e) {
				if($(e.target).parent("#header_menu_carrito_img").length==0) {
					$("#signin_carrito").hide();
				}
			});
            /* media */
        $("a.reproducto-mp3").click(function() {
		var urlmp3=$(this).attr("href");
                var idproduct=$(this).attr("rel");
               // alert(idproduct);
                //eliminar class active
                $('#columm_center_body').find("a[@rel^=" + idproduct + "]").removeClass('activo');
                //$("#idTab9 li a.product-"+idproduct).removeClass('activo');
                $(this).addClass('activo');
                $('#flash-videos-'+idproduct).flash({
			// test_flashvars.swf is the flash document
                         swf: 'player_mp3.swf',
                         width: 200,
                         height: 20,
			// these arguments will be passed into the flash document
			flashvars: {
			  mp3: urlmp3,
                          autoplay:'1',
                          showstop:'1'
			},
			params: {wmode: 'transparent'}
		});
                return false;
         });
		// #flash-example-2 is the selector
		/*$('#flash-videos').flash({
			// test_flashvars.swf is the flash document
                         swf: 'player_mp3.swf',
                         width: 200,
                         height: 20,
			// these arguments will be passed into the flash document
			flashvars: {
			  mp3: 'attachment.php?id_attachment=7',
                          //autoplay:'1',
                          showstop:'1'
			},
			params: {wmode: 'transparent'}
		});*/

        /* tooltip*/
         $('ul.list_mp3  a[title]').qtip({
          position: {
             corner: {
                target: 'topRight',
                tooltip: 'bottomLeft'
             }
          },
          style: {
             name: 'dark',
             padding: '7px 13px',
             width: {
                max: 450,
                min: 0
             },
             tip: true
          }
       });



       
    

   });
