function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


$(document).ready(function(){
						   
    $(document).pngFix(); 
	
	$("a[rel='lightbox']").colorbox({transition:"fade"});
	
	
	$("ul.tabs").tabs("div.panes > div");	

	//$(".scrollart").scrollable({circular: true}).autoscroll({autoplay: false,interval: 3000})
	$(".scrollart").scrollable();
			
    maxWidth = 600;
    minWidth = 113;	
    medWidth = 230;
	  $("#acorde a").animate({width: medWidth+"px"}, { queue:false, duration:1400 });
		

    $("#acorde  a").bind('mouseover', function() {
				$("#acorde a").animate({width: minWidth+"px"}, { queue:false, duration:400 });
				$(this).animate({width: maxWidth+"px"}, { queue:false, duration:400});
      });
		
		
	$("#acorde").bind('mouseout', function() {
				$("#acorde a").animate({width: medWidth+"px"}, { queue:false, duration:400 });
     });
		
		
	
	
	 $('ul.lnkacabado').bxGallery({
        maxwidth: '',              // if set, the main image will be no wider than specified value (in pixels)
        maxheight: '',             // if set, the main image will be no taller than specified value (in pixels)
        thumbwidth: 80,           // thumbnail width (in pixels)
        thumbcrop: false,          // if true, thumbnails will be a perfect square and some of the image will be cropped
        croppercent: .35,          // if thumbcrop: true, the thumbnail will be scaled to this percentage, then cropped to a square
		thumbplacement: 'right',  // placement of thumbnails (top, bottom, left, right)
        thumbcontainer: '',        // width of the thumbnail container div (in pixels)
        opacity: .7,               // opacity level of thumbnails
        load_text: '',             // if set, text will display while images are loading
        load_image: 'http://www.gruposonimobel.com/plantilla/100/images/spinner.gif',   // image to display while images are loading
        wrapperclass: 'outer'      // classname for outer wrapping div
    });
	
	
		
		
});


