jQuery(document).ready(function(){
	jQuery('.home_viewed').each(function(){
		jQuery(this).find('.products-grid:last').addClass('last');
	});		
});
jQuery(document).ready(function(){
		jQuery('.sidebar .block:last').addClass('last');
});

jQuery(document).ready(function(){
	jQuery('.home_new').each(function(){
		jQuery(this).find('.products-grid:last').addClass('last');
	});		
});



jQuery(document).ready(function() {
jQuery('.list-1 li').prepend('<span></span>').find('>a').wrap('<div></div>').hover(function(){jQuery(this).parent().prev().animate({height:0,marginTop:10,backgroundColor:'#cccccc'},100,function(){jQuery(this).animate({height:19,marginTop:0,backgroundColor:'#cccccc'},100)})},function(){jQuery(this).parent().prev().stop().animate({height:0,marginTop:10,backgroundColor:'#cccccc'},100,function(){jQuery(this).animate({height:19,marginTop:0,backgroundColor:'#fff'},100)})})
});


jQuery(document).ready(function() {
    jQuery('#slider').nivoSlider({
		effect:'random', //Specify sets like: 'fold,fade,sliceDown'
        slices:20,
        animSpeed:500,
        pauseTime:5000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:true, //Next & Prev
        directionNavHide:false, //Only show on hover
        controlNav:true, //1,2,3...
        controlNavThumbs:false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:true, //Use left & right arrows
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:0.8, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){} //Triggers after all slides have been shown
    });
});


	

	
jQuery(function(){
   jQuery('.quick-access .block-content form ').jqTransform({imgPath:'jqtransformplugin/img/'});
});

    jQuery(document).ready(function(){
       jQuery("a[data-gal^='prettyPhoto']").prettyPhoto({
            animationSpeed: 'normal',
            padding: 40,
            opacity: 0.35,
            showTitle: true,
						counter_separator_label: '0', /* The separator for the gallery counter 1 "of" 2 */
            allowresize: true,
            counter_separator_label: '/',          
            theme: 'facebook' 
        });
    });

