
jQuery(document).ready(function($) {
	
	$('#top_nav li').css('font-size', '2.3em');
	
	//Add class if target blank
	//$('#subnav a[target="_blank"], .sub-menu a[target="_blank"]').addClass('new_window');
	$('#photo_feed a img').addClass('styled_img');
	$('#featured_products .product:first').addClass('border-right');



	// adding values to MailChimp email widget...
	$("#mc_mv_EMAIL, .mc_merge_var #mc_mv_EMAIL").val('Enter your email');
	// for form fields clear on focus...  
	$("#mc_mv_EMAIL, .mc_merge_var #mc_mv_EMAIL").focus(function() {
		if( this.value == 'Enter your email' ) {
			this.value = "";
			}
		}).blur(function() {
			if( !this.value.length ) {
				this.value = 'Enter your email';
			}
	});

	//$('#mc_signup_form input[name="group[6257][4]"]').attr('checked','checked');
	$('#mc_signup input[name="group[6277][3]"]').attr('checked','checked')
//	$('a[rel="external"]').click(function(){
//		window.open($(this).attr('href'));
//		return false;
//	});

   
	  $("#memories_rotator").slides({
//	    preload: true,
	    effect: 'fade',
	    preloadImage: '/wp-content/themes/loveless/images/loading.gif',
	    play: 9000,
	    pause: 4000,
	    hoverPause: true, 
	    generatePagination: false,
	    paginationClass: 'memories_pagination'
	    //autoHeight: true
	    
	  });


			
}); //stop jquery


function disabledEventPropagation(event) {
   if (event.stopPropagation)
       event.stopPropagation();
    else if(window.event)
      window.event.cancelBubble=true;
}

