	$(function() {
			//We initially hide the all dropdown menus
			$('#top #dropdown_nav li').find('.sub_nav').hide();

			//When hovering over the main nav link we find the dropdown menu to the corresponding link.
			$('#top #dropdown_nav li').hover(function() {
				//Find a child of 'this' with a class of .sub_nav and make the beauty fadeIn.
				$(this).find('.sub_nav').fadeIn(100);
			}, function() {
				//Do the same again, only fadeOut this time.
				$(this).find('.sub_nav').fadeOut(50);
			});

// FRONTPAGE CAROUSEL IS DECLARED HERE                 
			
			$('#carousel_32000013_').nivoSlider({
				effect:"fade",
				slices:15,
				boxCols:8,
				boxRows:4,
				animSpeed:500,
				pauseTime:8000,
				startSlide:0,
				directionNav:false,
				directionNavHide:true,
				controlNav:false,
				controlNavThumbs:false,
				controlNavThumbsFromRel:true,
				keyboardNav:true,
				pauseOnHover:true,
				manualAdvance:false
			});
			
		  $(".carousel").jCarouselLite({
				btnNext: ".next",
				btnPrev: ".prev",
				circular: true
			});	


// SUBNAVIGATION IS DECLARED HERE
                 
$("#top .sub_nav").addClass(function() {
  return "sub_nav_item-" + $(this).index();
});

$("#top #dropdown_nav li").addClass(function() {
  return "top_nav_item-" + $(this).index();
});

$("#top .sub_nav li").removeClass(function() {
  return "top_nav_item-" + $(this).index();
});

$(".sub_nav_item-2").appendTo(".top_nav_item-1");
$(".sub_nav_item-4").appendTo(".top_nav_item-3");
$(".sub_nav_item-6").appendTo(".top_nav_item-5");
$(".sub_nav_item-8").appendTo(".top_nav_item-7");
$(".sub_nav_item-10").appendTo(".top_nav_item-9");
$(".sub_nav_item-12").appendTo(".top_nav_item-11");
$(".sub_nav_item-14").appendTo(".top_nav_item-13");
$(".sub_nav_item-16").appendTo(".top_nav_item-15");


// FRONTPAGE CAROUSEL EDIT IS DECLARED HERE                 

$(".jCarouselLite ul li").addClass(function() {
  return "frontpage_product-" + $(this).index();
});

$(".frontpage_product-0 .frontpage-product-item").appendTo(".frontpage_product-0 a");
$(".frontpage_product-1 .frontpage-product-item").appendTo(".frontpage_product-1 a");
$(".frontpage_product-2 .frontpage-product-item").appendTo(".frontpage_product-2 a");
$(".frontpage_product-6 .frontpage-product-item").appendTo(".frontpage_product-6 a");
$(".frontpage_product-7 .frontpage-product-item").appendTo(".frontpage_product-7 a");
$(".frontpage_product-8 .frontpage-product-item").appendTo(".frontpage_product-8 a");
$(".frontpage_product-9 .frontpage-product-item").appendTo(".frontpage_product-9 a");
$(".frontpage_product-10 .frontpage-product-item").appendTo(".frontpage_product-10 a");
$(".frontpage_product-11 .frontpage-product-item").appendTo(".frontpage_product-11 a");
$(".frontpage_product-12 .frontpage-product-item").appendTo(".frontpage_product-12 a");
$(".frontpage_product-13 .frontpage-product-item").appendTo(".frontpage_product-13 a");
$(".frontpage_product-14 .frontpage-product-item").appendTo(".frontpage_product-14 a");
$(".frontpage_product-15 .frontpage-product-item").appendTo(".frontpage_product-15 a");
$(".frontpage_product-16 .frontpage-product-item").appendTo(".frontpage_product-16 a");
$(".frontpage_product-17 .frontpage-product-item").appendTo(".frontpage_product-17 a");
$(".frontpage_product-18 .frontpage-product-item").appendTo(".frontpage_product-18 a");
$(".frontpage_product-19 .frontpage-product-item").appendTo(".frontpage_product-19 a");
$(".frontpage_product-20 .frontpage-product-item").appendTo(".frontpage_product-20 a");
$(".frontpage_product-21 .frontpage-product-item").appendTo(".frontpage_product-21 a");
$(".frontpage_product-23 .frontpage-product-item").appendTo(".frontpage_product-23 a");
$(".frontpage_product-24 .frontpage-product-item").appendTo(".frontpage_product-24 a");
$(".frontpage_product-25 .frontpage-product-item").appendTo(".frontpage_product-25 a");
});

// SUBPAGE NAVIGATION IS DECLARED HERE  

$("#sitebarNavHeader .sub_nav").appendTo("#sitebarNavHeader");
$("#elMenu2").append(".top_nav_item-1");



