var $j = jQuery.noConflict();
$j(document).ready(function(){
																
			$j("a:has(img)").not('.sliderimg').hover(function() {
				 $j(this).stop().animate({opacity:0.6}, 500);
			 }, function() {
				 $j(this).stop().animate({opacity:1}, 500);
			 });
		
		$j("a.fancybox").fancybox({
			'overlayColor' : '#eacacd'
		});
																
    $j("#slides").slides({
			preload: true,
			preloadImage: 'images/loading.gif',
			generatePagination: false,
			play: 6400,
			effect: 'fade',
			fadeSpeed: 1500,
			crossfade: true
		});
		
		$j("#newarrivals").slides({
			preload: true,
			preloadImage: 'images/loading.gif',
			generatePagination: false,
			play: 9000,
			effect: 'fade',
			fadeSpeed: 1500,
			container: 'na_container',
			crossfade: true
		});
		
		/*setTimeout(function(){
		
			$j("#theblog").slides({
				preload: true,
				preloadImage: 'images/loading.gif',
				generatePagination: false,
				play: 9000,
				effect: 'fade',
				fadeSpeed: 1500,
				container: 'tb_container',
				crossfade: true
			});
		
		}, 200); */
		
		setTimeout(function(){
		
			$j("#saleitems").slides({
				preload: true,
				preloadImage: 'images/loading.gif',
				generatePagination: false,
				play: 9000,
				effect: 'fade',
				fadeSpeed: 1500,
				container: 'si_container',
				crossfade: true
			});
		
		}, 400);
		
		$j('.dropdown').css({opacity:0});
		
		$j('#nav li').hover(function() {
			$j(this).find('.dropdown').css({'display':'block','visibility':'visible'});
			$j(this).find('.dropdown').stop().animate({opacity:1}, 500);
		}, function() {
			$j(this).find('.dropdown').stop().animate({opacity:0}, 500, function() {
				$j(this).css({'display':'none','visibility':'hidden'});
			});
		});
		
		//When page loads...
		$j(".tab_content").hide(); //Hide all content
		$j("ul.tabs li:first").addClass("active").show(); //Activate first tab
		$j(".tab_content:first").show(); //Show first tab content
	
		//On Click Event
		$j("ul.tabs li").click(function() {
	
			$j("ul.tabs li").removeClass("active"); //Remove any "active" class
			$j(this).addClass("active"); //Add "active" class to selected tab
			$j(".tab_content").hide(); //Hide all tab content
	
			var activeTab = $j(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
			$j(activeTab).stop().fadeIn(500, "easeInOutQuad"); //Fade in the active ID content
			return false;
		});
		
		$j('.priceimg .price-box').css({opacity:0.6});
		
		/* $j('#container').masonry({
  		itemSelector: '.post',
  		columnWidth: 164,
			isAnimated: true,
			animationOptions: {
				duration: 750,
				easing: 'linear',
				queue: false
			}
		});
		
		var $container = $j('#container');
		$container.infinitescroll({
				navSelector  : "#post_nav",
				nextSelector : "#post_nav a",
				itemSelector : "#container .post",
				loading: {
				finished: undefined,
					finishedMsg: "<em>Sorry, that's all we have!</em>",
					img: "/images/loading.gif",
					msg: null,
					msgText: "<em>Loading the next set of posts...</em>",
					selector: null,
					speed: 'fast',
					start: undefined
				}
			},
			// trigger Masonry as a callback
			function( newElements ) {
				var $newElems = $j( newElements );
				$container.masonry( 'appended', $newElems );
				$j("a:has(img)").hover(function() {
					 $j(this).stop().animate({opacity:0.6}, 500);
				 }, function() {
					 $j(this).stop().animate({opacity:1}, 500);
				 });
			}
		); */
		
});
