

document.observe('dom:loaded',function(){
		
	//add slide class for buttons [IE fix for onclick shift]
	$$("button span").invoke('wrap', 'span').invoke('addClassName', 'slide');

	// the padding is screwy in FF text inputs
	if(Prototype.Browser.Gecko){
		$$("input").each(function(el){
			el = $(el);
			if(el.readAttribute('type')=='text'){
				var h = (el.clientHeight=='')?22:el.clientHeight;
				var p = Math.ceil(h/5);
				el.setStyle({paddingTop:p+'px', height:(h-p)+'px'});
			}
		});
	}

	//left_nav angled sides function
	$$(".left-nav-content").each(function(el){
		el = $(el); 
		var contentH = el.clientHeight;
		
		$$(".left-nav-left img").each(function(l){
			l = $(l);
			lWidth = 7;
			l.setStyle({height:contentH+'px', width:lWidth+'px', marginBottom:'-7px'})
		});
		
		$$(".left-nav-right img").each(function(r){
			r = $(r);
			rWidth = 10;
			r.setStyle({height:contentH+'px', width:rWidth+'px', marginBottom:'-7px'})
		});
		
	});
		
	//align category views td's center
	$$('.catalog-listing table#product-list-table td').each(function(e){
		e = $(e);
		e.writeAttribute('align', 'center');
	});

});
