// JavaScript Document
$(document).ready(function() {
   $(".navBottom a").hover(function(){
		$(this).parent().children(".navSub").show();
	}, function(){
		$(this).parent().children(".navSub").hide();
		});
   
   //NAV SUB
   $(".navSub").hover(function(){
		$(this).parent().children(".navSub").show();
		$(this).parent().children("a").addClass("selected");
	}, function(){
		$(this).parent().children(".navSub").hide();
		$(this).parent().children("a").removeClass("selected");
		});




		// HELP SHOPPING
$(".linkHSDetail").click(function() {
    $("#helpBox").toggle("fast");
});
   $(".linkHS").click(function(){
		$("#helpBox").toggle("fast");						  
		});
   $(".linkClose").click(function(){
		$("#helpBox").hide("fast");
});

    // Currency Basket
    $(".currencyBox").click(function() {
        $("#CurrencyCalculator").toggle("fast");
    });
    $(".linkCloseCurrencyBasket").click(function() {
        $("#CurrencyCalculator").hide("fast");
    });


    //What is this Checkout

    $(".WhatIsThisCheckout").click(function() {
        $("#WhatIsThis").toggle("fast");
    });
    $(".linkCloseWhatIsThis").click(function() {
        $("#WhatIsThis").hide("fast");
    });

    
   
   // NAV LEFT
   $(".navLeft a.mainCat").toggle(function(){ 
   $(".navLeft a.mainCat").parent().children(".leftNavSub").hide("slow");
   $(".navLeft a.mainCat").removeClass("selected");
		$(this).parent().children(".leftNavSub").show("fast");
		$(this).addClass("selected");
		//$(this).parent().children("ul").animate({opacity: 1}, 400).show("fast");	
		//$(this).animate({opacity: 1}, 400).addClass("selected");
		},function(){		
		$(".navLeft a.mainCat").parent().children(".leftNavSub").hide("slow");
        $(".navLeft a.mainCat").removeClass("selected");
		$(this).parent().children(".leftNavSub").show("fast");
		$(this).addClass("selected");
		//$(this).parent().children("ul").animate({opacity: 0}, 400).show("fast");	
		//$(this).animate({opacity: 1}, 400).addClass("selected");
		});
   
   // CHECKOUT
   $(".OHDetails").hide();
   $(".OHItemList li a").toggle(function(){
		$(this).parent().parent().parent().children(".OHDetails").show("fast");									
	},function(){
		$(this).parent().parent().parent().children(".OHDetails").hide("fast");	
		});
   
   //REQUEST TEXTBOX POPUP
   $(".boxRequest").hide();
   
   $(".btnReturn").click(function(){
		$(".boxRequest").hide();
		$(this).parent().children().children(".boxRequest").show("fast")							  
	});
   $(".btnClose").click(function(){
		$(".boxRequest").hide();
	});
   //Write review TEXTBOX POPUP
   
   
   $(".btnRev").click(function(){
		$(".boxReview").show("fast");							  
	});
   $(".btnCRev").click(function(){
		$(".boxReview").hide();
	});
   
   // CHECKOUT PAYMENT OPTIONS
   $(".paymentTypeBox").hide();
   $(":radio").click(function(){
		$(".paymentTypeBox").hide();
	});
   $(".PTAble").click(function(){
		$(".paymentType1").show();						   
	});
   $(".PTCheque").click(function(){
		$(".paymentType2").show();						   
	});
   $(".PTTransfer").click(function(){
		$(".paymentType3").show();						   
	});   
	//Order Summary
	 $(".paymentBox").hide();  
     $(".PType").click(function(){
		$(".paymentType").toggle("fast");		
				$(".PType").click(function(){
		$(".paymentBox").hide();
	});		   
	});
   // ITEM DETAILS SHOW/HIDE
   $(".infoBox2").hide();
   $(".infoBox3").hide();
   $(".infoBox4").hide();
   $(".infoBox5").hide();
   
   $(".infoLink1").click(function(){
		$(".infoBox").hide();	
		$(".ManInfoBoxLink").children().children("a").removeClass("selected");
		$(this).addClass("selected");
		$(".infoBox1").show();
	});
   $(".infoLink2").click(function(){
		$(".infoBox").hide();
		$(".ManInfoBoxLink").children().children("a").removeClass("selected");
		$(this).addClass("selected");
		$(".infoBox2").show();
	});
   $(".infoLink3").click(function(){
		$(".infoBox").hide();
		$(".ManInfoBoxLink").children().children("a").removeClass("selected");
		$(this).addClass("selected");
		$(".infoBox3").show();
	});
   $(".infoLink4").click(function(){
		$(".infoBox").hide();
		$(".ManInfoBoxLink").children().children("a").removeClass("selected");
		$(this).addClass("selected");
		$(".infoBox4").show();
	});
   $(".infoLink5").click(function(){
		$(".infoBox").hide();
		$(".ManInfoBoxLink").children().children("a").removeClass("selected");
		$(this).addClass("selected");
		$(".infoBox5").show();
});

$(".infoLink6").click(function() {
    $(".infoBox").hide();
    $(".infoLink6").removeClass("ExtraLine");
    $(".ManInfoBoxLink").children().children("a").removeClass("ExtraLineSelected");
    $(this).addClass("ExtraLineSelected");
    $(".infoBox5").show();
});
   
 });

