jQuery.noConflict();

var plauditSite = (function($){
	
	var uiElements = {
		
		init: function() {
			uiElements.utilMethods();
			uiElements.customElements.homepageHover();
		},
		
		utilMethods: function() {
			$("body").addClass("jsEnabled"); // We use this to style non-js
		},
		
		customElements: { //START: Custom Elements
			
			homepageHover: function(){
				
				$("#siteListingInner li").hover(
					function(){
						$("#default").fadeTo(250, 0);
						
						$(this).doTimeout( 250, function(){
							var image = $("#" + $(this).children("a").attr("rel"));
							image.stop().fadeTo(250, 1);
						});
						
						$.doTimeout('showDefault');
					},function(){
						$(this).doTimeout( 250, function(){
							var image = $("#" + $(this).children("a").attr("rel"));
							image.stop().fadeTo(250, 0);
						});
						
						$.doTimeout( 'showDefault', 350, function(){
							$("#default").fadeTo(250, 1);
						});
					}
				);
			
			}
			
			
		} //END: Custom Elements
		
	};
	
	return {
		setup: uiElements.init
	}
})(jQuery);

jQuery(function(){ plauditSite.setup(); });
