window.addEvent('domready', function() {

    // Add annoying alert every time user right-clicks on an image (ugh!)
	$$('img').each(function(img) {
	    img.oncontextmenu = function() {
	      alert("Thank you for visiting The Quilt Complex.");
	      return false;
	  };
	});	
	
	// IE6 formatting fix
	if (window.ie6) {
		var tweaked = false; // tweaked is whether or not the layout has negative margin to compensate
		$$('#supportingText div').each(function(div) {
			if (div.style.marginLeft == '-27px' || div.style.marginLeft == '-28px') {
				tweaked = true;
			}
			if (tweaked) {
				div.style.position = 'relative';
				div.style.left = '27px';
				
			}
		});
	}
});
