/* [jQuery] */
$(function() {

	/* [Modal] */
	$('.modal').jqm({
		modal: true,
		trigger: '#foxymodal',
		overlay: 40, 
		overlayClass: 'modal-overlay'})
	$('input.modal-close');	
	/* [/End Modal] */

	/* [Fix Z-Index] */
	$("#cboxOverlay, #colorbox, #cboxWrapper, #modal").css("z-index","10001");
	/* [/End Fix Z-Index] */	

	/* [Tooltip] */
	$(".product-img a img, .minislide-box a img").tooltip({ position: "bottom left", opacity: 0.98, predelay: 500, offset: [-96, 150]});		
	/* [/End Tooltip] */
	
	/* [Colorbox] */
	$(".colorbox1").colorbox({iframe:true, innerWidth:700, innerHeight:440});
	$(".colorbox2").colorbox({iframe:true, innerWidth:700, innerHeight:294});
	$(".colorbox-sizes").colorbox({iframe:true, innerWidth:700, innerHeight:440});	
	$("#top-right-shopping a").colorbox({iframe:true, innerWidth:700, innerHeight:360});
	/* [/End Colorbox] */

	/* [Image Swap] */
	$.swapImage(".product-img a img");   
	/* [/End Image Swap] */

	/* [Tabs] */
	$(function() {$("ul.tabs").tabs("div.panes > div");});
	/* [/End Tabs] */	

	/* [Image gif Preloader] */
     $('.product-img img').wrap('<span class="image-box"></span>').hide();
});

	$(window).bind('load', function() {
     var i = 1;
     var imgs = $('.product-img img').length;
     var int = setInterval(function() {
     //console.log(i); check to make sure interval properly stops

     if(i >= imgs) clearInterval(int);
     $('img:hidden').eq(0).fadeIn(500);
     i++;
     }, 1);
	/* [Swap Image gif Preloader] */
	
	/* [FAQ] */
	$('.sidebar-title').collapser({
		target: 'next',
		targetOnly: '.sidebar-list,.sidebar-size,.sidebar-color',
		changeText: 0,
		expandClass: 'expArrow',
		collapseClass: 'collArrow'
	});
	/* [/End FAQ] */
	
	/* [FAQ] */
	$('.text-faq').collapser({
		target: 'next',
		targetOnly: 'div',
		changeText: 0,
		expandClass: 'expArrow',
		collapseClass: 'collArrow'
	});
	/* [/End FAQ] */	

	/* [Image Preloader] */
	$([
		'img/general/bg-dropdown.png',
	]).preload();
	/* [/End Image Preloader] */

	/* [DropDown Menu] */	
	function addMega(){
			$(this).addClass("hovering");
		}
		function removeMega(){
			$(this).removeClass("hovering");
		}
	var megaConfig = {
		interval: 80,
		sensitivity: 4,
		over: addMega,
		timeout: 300,
		out: removeMega
	}
	$("#main-menu ul li").hoverIntent(megaConfig)
	/* [/End DropDown Menu] */	
	
	/* [Slideshow Home [Coda Slider]] */		
	$('#slideshow').codaSlider({
		autoSlide: true,
		autoSlideInterval: 4000,
		autoSlideStopWhenClicked: true,
		dynamicArrows: false,
		dynamicTabs: true
	});
	/* [/End Slideshow Home [Coda Slider]] */	
	
	/* [Mini Slide Home Left [Coda Slider]] */		
	$('#slider-left').codaSlider({
		autoSlide: false,
		autoSlideInterval: 4000,
		autoSlideStopWhenClicked: true,
		dynamicArrows: false,
		dynamicTabs: false
	});
	/* [/End Mini Slide Home Left [Coda Slider]] */	

	/* [Mini Slide Home Right [Coda Slider]] */		
	$('#slider-right').codaSlider({
		autoSlide: false,
		autoSlideInterval: 4000,
		autoSlideStopWhenClicked: true,
		dynamicArrows: false,
		dynamicTabs: false
	});
	/* [/End Mini Slide Home Right [Coda Slider]] */

	/* [Slide Products Last View [Coda Slider]] */		
	$('#slider-1').codaSlider({
		autoSlide: false,
		autoSlideInterval: 4000,
		autoSlideStopWhenClicked: true,
		dynamicArrows: false,
		dynamicTabs: false
	});
	/* [/End Slide Products Last View [Coda Slider]] */	
	
	/* [Slide Products Related [Coda Slider]] */		
	$('#slider-2').codaSlider({
		autoSlide: false,
		autoSlideInterval: 4000,
		autoSlideStopWhenClicked: true,
		dynamicArrows: false,
		dynamicTabs: false
	});
	/* [/End Slide Products Related [Coda Slider]] */		
	
	/* [Slide Show] */	
	$('#slide-home').DDSlider({ 
		trans: 'fading', 
		delay: 50, 
		ease: 'swing', 
		waitTime: 6000, 
		duration: 500, 
		stopSlide: 1, 
		bars: 15, 
		columns: 9, 
		rows: 3, 
		selector: '.slider_selector', 
		arrowNext: null, 
		arrowPrev: null 
		}); 
	/* [/End Slide Show] */	
	
});	
/* [/End jQuery] */	

/* [Share This] */
stLight.options({publisher:'7588969b-9920-4b2e-84e7-f6c9f959e7cc'});
/* [/End Share This] */
