function cl(msg){
	if(typeof(console) != 'undefined'){
		console.log(msg);
	}
}

jQuery.noConflict(); 

jQuery(document).ready(function(){
	
	// Product images
	
	jQuery('.products-grid td a').hover(
		function(){
			jQuery(this).find('.product-info').slideDown(150,'easeOutSine')
		},
		function(){
			jQuery(this).find('.product-info').slideUp(150)
		}
	)
	
	$$('dd.option-monogram-child').invoke('insert', '<a href="../media/upload/monogram.jpg" target="_blank" title="See Full Size Image"><img src="../media/upload/monogram_small.jpg" /></a>');
	$$('dt.option-first').invoke('insert', {
		before: '<dt class="option-initial">Initials</dt>' }
	);
	$$('dd.option-last').invoke('insert', {
		after: '<dt class="option-location">For this style, the last initial will be placed in the center of the monogram. Letters only.</dt>' }
	);
	
	// $j('.block.block-layered-nav ul > li').hover(
	// 	function(){
	// 		$(this).find('ul').show();
	// 	},
	// 	function(){
	// 		$(this).find('ul').hide();
	// 	}
	// )
	
		jQuery('.slideshow').cycle({
			fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		});
		jQuery('.slideshow-wrapper .slideshow').cycle({
			fx: 'fade',
			timeout: 3000
		});

	jQuery("button span").wrap("<span class=\"glass\"></span>");

});


