//slide show
function slideSwitch() {
             var $active = $('#slideshow img.active');
             if ( $active.length == 0 ) $active = $('#slideshow img:last');
             var $next =  $active.next().length ? $active.next() : $('#slideshow img:first');
             $active.addClass('last-active');
             $next.css({opacity: 0.0})
                 .addClass('active')
                 .animate({opacity: 1.0}, 1000, function() {
                     $active.removeClass('active last-active');
               });
         }
         $(function() {
             setInterval( "slideSwitch()", 4000 );
         });


// IMG gallery
$(document).ready(function(){
$('#gallery').bxGallery({
					thumbwidth: 100,
					thumbplacement: 'right',
					thumbcontainer: 70,
					wrapperclass: 'outer2'
				});
$('#gallery01').bxGallery01({
					thumbwidth: 100,
					thumbplacement: 'right',
					thumbcontainer: 70,
					wrapperclass: 'outer2'
				});
$('#gallery02').bxGallery02({
					thumbwidth: 100,
					thumbplacement: 'right',
					thumbcontainer: 70,
					wrapperclass: 'outer2'
				});
$('#gallery03').bxGallery03({
					thumbwidth: 100,
					thumbplacement: 'right',
					thumbcontainer: 70,
					wrapperclass: 'outer2'
				});
$('#gallery04').bxGallery04({
					thumbwidth: 100,
					thumbplacement: 'right',
					thumbcontainer: 70,
					wrapperclass: 'outer2'
				});
});


/*$('#gallery').bxGallery({
	maxwidth: 690,
	maxheight: 375,
	thumbwidth: 150,
	thumbcrop: false,
	croppercent: .35,
	thumbplacement: 'right',
	thumbcontainer: '180',
	opacity: .7,
	load_text: 'loading...',
                   wrapperclass: 'outer'
});*/

