jQuery(document).ready(function(){


// Fade in home page image. 
	jQuery(".home #container, .fade-in").hide();
	jQuery(".home #container, .fade-in").fadeIn(3000);
	
// Add Zoom Button to product images.
	jQuery("div.gallery ul.previews li a").append("<span class='zoom-button'>Click to Zoom</span>");
	jQuery(".zoom-button").hide();
	jQuery("div.gallery ul.previews li a").hover(function(){
		jQuery(this).children("span").stop(true, true).fadeIn(600); 
	},function(){
    	jQuery(this).children("span").stop(true, true).fadeOut(200); 
	});
	
// Add tooltip to product image alternate views.
	jQuery("div.gallery ul.thumbnails").append("<span class='tooltip_alternate-views'>Alternate Views</span>");
	jQuery(".tooltip_alternate-views").hide();
	jQuery("div.gallery ul.thumbnails").hover(function(){
		jQuery(this).children("span").stop(true, true).fadeIn(600); 
	},function(){
    	jQuery(this).children("span").stop(true, true).fadeOut(200);
	});
	
// Modal Popup Box for the 'Subscribe' menu option
	jQuery('.subscribe-button').openDOMWindow({ 
		eventType:'click', 
		loader:1, 
		loaderImagePath:'animationProcessing.gif', 
		loaderHeight:16, 
		loaderWidth:17 
	});
	
// Modal Popup Box for the 'Reserve Item' product option
	jQuery('.reserve-item-button').openDOMWindow({ 
		eventType:'click', 
		loader:1, 
		loaderImagePath:'animationProcessing.gif', 
		loaderHeight:16, 
		loaderWidth:17 
	});  
	
// Modal Popup Box for the 'Carmen Enquiry' menu ption
	jQuery('.enquire-items-button').openDOMWindow({ 
		eventType:'click', 
		loader:1, 
		loaderImagePath:'animationProcessing.gif', 
		loaderHeight:16, 
		loaderWidth:17 
	}); 
	
// Call jQuery Validate.
	jQuery('#reserve-item-form1').validate();
	jQuery('#enquire-items-form1').validate();
	

// Call Colorbox 
	jQuery("a[rel='Carmen']").colorbox();
	
// Putting custom links into the 'Carmen' shopp menu in the footer and shop.
	jQuery("a[href*='category/carmen'] + ul.children").append("<span class='pageflip_popup_link'><a rel='nofollow' href='http://www.bellebijouxaustralia.com/beta/wp-content/plugins/page-flip-image-gallery/popup.php?book_id=1' target='_blank'>Look Book</a></span></li>");
	
// Force Colorbox to not have a slideshow.
	jQuery('.gallery').colorbox({slideshowAuto:false});
});

