		$(window).load(function() {
			$('#slider,#product-main-image img').fadeIn(400);
			
			if ( $('#home-columns').length ) {
				var tallest = $('.col').eq(2).height();
				$('.col').height(tallest);
			}
			
			$('#product-thumbs li a').live('click', function() {
				var bigSrc = $('#product-main-image img').attr('src');
				var newSrc = $(this).attr('href');
				$(this).parent().html('<a href="' + bigSrc + '"><img src="' + bigSrc + '" width="200" /></a>');
				$('#product-main-image').html('<img src="' + newSrc + '" alt="" width="600" />').find('img').fadeIn();
				return false;
			});
			
			var cH = $('#content').height();
			if ( $('#content').height() > $('#sidebar').height() ) {
				$('#sidebar').height(cH);
			}
		});
		
		$(document).ready(function() {
	
			$('body.community-single .the-content img').each(function() {
				if ( $(this).attr('width') < 350 ) {
					$(this).parent().parent().css({'float': 'left', 'margin-right': 15, 'padding-bottom': 0});
				}
			});
	
	
			/*Newsletter form
			$('#idhydt-idhydt').focus(function() {
				$('#submit').fadeIn('fast');
			});
			$('#idhydt-idhydt').blur(function() {
				$('#submit').fadeOut('fast');
			});*/
	
			// FAQs
			$('.page h3').each(function() {
				var p = $(this).next('p');
				$(p).hide();
				$(this).click(function() {
					$(p).slideToggle();
				});
			});
			
			if ( $('#featured').length ) {
				// Homepage slider
				$('#featured').cycle({
					fx: 'fade',
					speed: 700,
					timeout: 5000,
					pause: 1,
					pauseOnPagerHover: 1,
					pager: '#pager'
				});
			}
			
			// Newsletter slidedown
			$('#show-newsletter-form').click(function() {
				$('#email-form').animate({'top': 0}, 600);
				if ( $('#featured').length ) { $('#featured').cycle('pause'); }
				return false;
			});
			$('#close-email-form').click(function() {
				$('#email-form').animate({'top': -180}, 400);
				if ( $('#featured').length ) { $('#featured').cycle('resume'); }
				return false;
			});
			
			if ( $('#collections').length ) {
				$('#collections li').each(function() {
					if ( $(this).text() == $('#product-info h2').text() ) {
						$(this).addClass('active');
						Cufon.refresh();
					}
				});
				var mylist = $('#collections');
				var listitems = mylist.children('li').get();
				listitems.sort(function(a, b) {
				   var compA = $(a).text().toUpperCase();
				   var compB = $(b).text().toUpperCase();
				   return (compA < compB) ? -1 : (compA > compB) ? 1 : 0;
				})
				$.each(listitems, function(idx, itm) { mylist.append(itm); });
			}
			
			if ( $('#products-page').length ) {
				// Products page hover
				$('#products-page .product').hover(function() {
					var currentImage = $(this).find('img').attr('alt').toLowerCase();
					$('#products-hover img').attr('src', '/images/' + currentImage + '_rollover.jpg').height(440).fadeIn();
				}, function() {
					$('#products-hover img').hide();
				});
			
							var cache = [];
				  // Arguments are image paths relative to the current page.
				  $.preLoadImages = function() {
				    var args_len = arguments.length;
				    for (var i = args_len; i--;) {
				      var cacheImage = document.createElement('img');
				      cacheImage.src = arguments[i];
				      cache.push(cacheImage);
				    }
				  }
			
			jQuery.preLoadImages('/images/broadway_rollover.jpg', '/images/burnside_rollover.jpg', '/images/davis_rollover.jpg', '/images/everett_rollover.jpg', '/images/glisan_rollover.jpg', '/images/hawthorne_rollover.jpg', '/images/kearney_rollover.jpg', '/images/lovejoy_rollover.jpg', '/images/morrison_rollover.jpg', '/images/sellwood_rollover.jpg');
			
			}
			
		});