	jQuery(document).ready(function() {
			
			//Themes Tabs
			jQuery("#tabbed_themes ul.tabs").tabs("#tabbed_themes .panes > div", {
				rotate: true,
				onClick: function() {
					this.getConf().effect = 'fade';
					this.getConf().fadeInSpeed = 1000;
					this.getConf().fadeOutSpeed = 1000;
				}
			});
						
			// Thumbnails fade loupe
			jQuery(".themes_grid .inset_style a.thumb .loupe").css({opacity: 0});
			jQuery(".themes_grid .inset_style a.thumb").hover(function(){
				jQuery(this).children(".loupe").fadeTo(300, 1);
			}, function(){ 
				jQuery(this).children(".loupe").fadeTo(300, 0);
			});
			
			
			//Layout fix for IE
			jQuery(".themes_grid .inset_style:nth-child(3n)").addClass("third");
			jQuery(".three_col .col:nth-child(3n)").addClass("third");
			
			
			//Center adjust tabs
			var numTabs = jQuery(".themes_grid .tabs_wrap ul.tabs").find('li').length;
			var tabWidth = 20;
			jQuery(".themes_grid .tabs_wrap ul.tabs").css({
				position: 'relative',
				left: -(numTabs * tabWidth)/2
			});
			
			
			// Footer Form
			
			jQuery("#subscribe p.text_field input").focus(function(){
				jQuery(this).parent().css("backgroundPosition","-300px -143px");
				if(jQuery(this).val() == jQuery(this).attr('defaultValue'))
			    {
			      jQuery(this).val('');
			    }
			});
			
			jQuery("#subscribe p.text_field input").blur(function(){
				jQuery(this).parent().css("backgroundPosition","0px -143px");
				if(jQuery(this).val() == '')
			    {
			      jQuery(this).val(jQuery(this).attr('defaultValue'));
			    }
			});
			
	});
	
	
	
	
	
	
