﻿        var t$ = jQuery.noConflict();
        t$(document).ready(function() {
            
            
            t$('.modal1 a,.modal1 span').click(
        function() {
            t$('.modal1 .wrap').show();
            
            var time= setTimeout(function() {
                t$(".modal1 .wrap").hide();
                },4000);

             t$('.modal1 .wrap').mouseenter(
              function() {
              clearTimeout(time);
              t$(this).show();
              }).mouseleave(function() {
                  t$(this).hide();
              });
            });


            t$('.modal2 a, .modal2 span').click(
            function() {
            t$('.modal2 .wrap').show();
       
             t$('.modal2 .wrap').mouseenter(
              function() {
                  t$(this).show().stop();
              }).mouseleave(function() {
                  t$(this).hide();
              });
         });
         //view my account details
         
         t$('#myaccountlnk').hover(
        function() {
            t$('.myaccountpop').show();
        },
        function() {
             
         var time= setTimeout(function() {
                t$(".myaccountpop").hide();
                },800);
             
             t$('.myaccountpop').mouseenter(
              function() {
              clearTimeout(time);
              t$(this).show();
              }).mouseleave(function() {
                  t$(this).hide();
              });
             
        });
         
        // view quick basket
        t$('#mybag').hover(
        function() {
            t$('.qbasket').show();
        },
        function() {
             
         var time= setTimeout(function() {
                t$(".qbasket").hide();
                },1000);
             
             t$('.qbasket').mouseenter(
              function() {
              clearTimeout(time);
              t$(this).show();
              }).mouseleave(function() {
                  t$(this).hide();
              });
             
        });
        
        t$('.sbox').focus(function() {
            t$(this).val('');
        });

        
 });
        
var def$ = jQuery.noConflict();
def$(document).ready(function() {
    def$("#deliveryhandle").click(function() {
    def$(".deliveryinfo").slideToggle("slow");
    def$(".qbasket").hide();
    def$("#deliveryhandle a").toggleClass("closedp");
    });
});
