var makeCorners = function() {

	if ( $('taber-nav') ) {
		
		new Effect.Corner($('taber-nav').down('.product-spec'), 'round 12px cc:#fff');
		
	}

	if ( $('taber-nav') ) {
		
		$('taber-nav').select('.tab').each( function(node) {
		
			new Effect.Corner(node, 'round bl br tr cc:#e3ded9');
		
		} );
		
	}

	if ( $('left') ) {
		
		new Effect.Corner($('left').down('.box-white-middle'), 'round 8px cc:#e7e4e0');
		
	}

	if ( $('container').down('ul.messages') ) {
		
		if ( $('container').down('ul.messages').down('.error-msg') ) {
		
			new Effect.Corner($('container').down('ul.messages').down('.error-msg'), 'round 10px cc:#fff');
			
		}

		if ( $('container').down('ul.messages').down('.success-msg') ) {
		
			new Effect.Corner($('container').down('ul.messages').down('.success-msg'), 'round 10px cc:#fff');
			
		}

		if ( $('container').down('ul.messages').down('.notice-msg') ) {
		
			new Effect.Corner($('container').down('ul.messages').down('.notice-msg'), 'round 10px cc:#fff');
			
		}

		if ( $('container').down('ul.messages').down('.note-msg') ) {
		
			new Effect.Corner($('container').down('ul.messages').down('.note-msg'), 'round 10px cc:#fff');
			
		}

	}

	if ( $('shopping-cart-container') ) {
		
		new Effect.Corner($('shopping-cart-container'), 'round 7px cc:#fff');
		
		new Effect.Corner($('shopping-cart-container').down('.shopping-cart-content'), 'round 7px cc:#e3ded9');
		
		new Effect.Corner($('content').down('.shopping-cart-totals'), 'round 10px cc:#fff');
		
	}

	if ( $('one-page-checkout-container') ) {
		
		new Effect.Corner($('one-page-checkout-container'), 'round 7px cc:#fff');

		if ( $('checkout-step-login') ) {
			
			new Effect.Corner($('checkout-step-login'), 'round tr 7px cc:#e3ded9');
	
		}

		if ( $('checkout-step-billing') ) {
			
			new Effect.Corner($('checkout-step-billing'), 'round tr 7px cc:#e3ded9');
	
		}
		
		if ( $('checkout-step-shipping') ) {
			
			new Effect.Corner($('checkout-step-shipping'), 'round tr 7px cc:#e3ded9');
	
		}

		if ( $('checkout-step-shipping_method') ) {
			
			new Effect.Corner($('checkout-step-shipping_method'), 'round tr 7px cc:#e3ded9');
			
		}		

		if ( $('checkout-step-payment') ) {
			
			new Effect.Corner($('checkout-step-payment'), 'round tr 7px cc:#e3ded9');
			
		}		

		if ( $('checkout-step-review') ) {
			
			new Effect.Corner($('checkout-step-review'), 'round tr 7px cc:#e3ded9');
			
		}		

		new Effect.Corner($('checkoutSteps'), 'round bottom 7px cc:#e3ded9');
		
	}


}


Event.observe(window, 'load', makeCorners);
