// giZ on gizstyle.com jQuery implementation ´¯`·.¸¸.*

//ACTIONS

function fixImgs(whichId, maxW) {
	var pix=document.getElementById(whichId).getElementsByTagName('img');
	  for (i=0; i<pix.length; i++) {
		w=pix[i].width;
		h=pix[i].height;
		if (w > maxW) {
		  f=1-((w - maxW) / w);
		  pix[i].width=w * f;
		  pix[i].height=h * f;
		}
	  }
	}


$(document).ready(function(){
	
	$("a.brush-button").toggle(function(){
			$("#livecolors").fadeIn("slow");
		}, function() {
			$("#livecolors").fadeOut("slow");
	});
	
});