
$(document).ready(function() {
	$('.slideShow').slideShow({
		interval: 5
		});
	jQuery('#mycarousel').jcarousel({
    	wrap: 'circular',
    	scroll: 4
    });

	/*$('#mycarousel').jcarousel({
		wrap:'circular'
	});*/
    
	$(".jcarousel-item").hover(
		function(){
			//$('.jcarousel-item').css('margin-top','130px');
			$(this).css('margin-top','0');
			$(this).css('height','250px');
			$('.description',this).addClass('active').css('height','48px');/*was auto removed by afa on 10-24-10*/
			$('.sliderImgContent',this).addClass("active").css("top", "0px");
			if($.browser.msie === true && $.browser.version.split('.')[0] < 8){
				$('.description',this).addClass('active').css('top','200px');
				$('.description a',this).css('top','33px');
			}
			else{
				$('.description',this).addClass('active').css('height','48px');
			}
			$('.slideShow').css('z-index','-100');
			$('#mycarousel').css('z-index','156');
			
		},
		function(){
			//$('.jcarousel-item').css('margin-top','0');
			$(this).css('height','');
			$('.description',this).removeClass('active').css('height','20px');
			$('.sliderImgContent',this).removeClass('active').css("top", "130px");
			if($.browser.msie === true && $.browser.version.split('.')[0] < 8){
				$('.slideShow').css('z-index','-2');
				$('.description',this).addClass('active').css('top','230px');
				$('.description a',this).css('top','3px');
			}
			else{
				$('.slideShow').css('z-index','1');
				$('.description',this).removeClass('active').css('height','');
			}
			$('#mycarousel').css('z-index','0');
		}
	);
	
});
/*
$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500, //Slide transition speed
		pauseTime:3000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:false, //Next & Prev
		directionNavHide:true, //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:false, //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
	});
});
*/
