// jDiv - a jQuery plugin
// (c) Skyrocket Labs
// http://www.skyrocketlabs.com
// fred@skyrocketlabs.com
// Created: 10.24.2009
// Last updated: 02.06.2010

// DISPLAYS HIDDEN DIVS AS SUBMENUS ON HOVER

$(document).ready(function() {

        


        var hide02 = false;
		$("#nav-products").hover(function(){          
		   if (hide02) clearTimeout(hide02);
            $("#dropdown-products").show();
			$(this).addClass("active");
        }, function() {
			hide02 = setTimeout(function() {$("#dropdown-products").hide();});
			$("#nav-products").removeClass("active");
        });
        $("#dropdown-products").hover(function(){
            if (hide02) clearTimeout(hide02);
            $("#nav-products").addClass("active");
        }, function() {
			hide02 = setTimeout(function() {$("#dropdown-products").hide();});
			$("#dropdown-products").stop().show();
			$("#nav-products").removeClass("active");
        });
		
        var hide03 = false;
		$("#nav-solutions").hover(function(){          
		   if (hide03) clearTimeout(hide03);
            $("#dropdown-solutions").show();
			$(this).addClass("active");
        }, function() {
			hide03 = setTimeout(function() {$("#dropdown-solutions").hide();});
			$("#nav-solutions").removeClass("active");
        });
        $("#dropdown-solutions").hover(function(){
            if (hide03) clearTimeout(hide03);
            $("#nav-solutions").addClass("active");
        }, function() {
			hide03 = setTimeout(function() {$("#dropdown-solutions").hide();});
			$("#dropdown-solutions").stop().show();
			$("#nav-solutions").removeClass("active");
        });
		
        var hide04 = false;
		$("#nav-resources").hover(function(){          
		   if (hide04) clearTimeout(hide04);
            $("#dropdown-resources").show();
			$(this).addClass("active");
        }, function() {
			hide04 = setTimeout(function() {$("#dropdown-resources").hide();});
			$("#nav-resources").removeClass("active");
        });
        $("#dropdown-resources").hover(function(){
            if (hide04) clearTimeout(hide04);
            $("#nav-resources").addClass("active");
        }, function() {
			hide04 = setTimeout(function() {$("#dropdown-resources").hide();});
			$("#dropdown-resources").stop().show();
			$("#nav-resources").removeClass("active");
        });
		
        var hide05 = false;
		$("#nav-about").hover(function(){          
		   if (hide05) clearTimeout(hide05);
            $("#dropdown-about").show();
			$(this).addClass("active");
        }, function() {
			hide05 = setTimeout(function() {$("#dropdown-about").hide();});
			$("#nav-about").removeClass("active");
        });
        $("#dropdown-about").hover(function(){
            if (hide05) clearTimeout(hide05);
            $("#nav-about").addClass("active");
        }, function() {
			hide05 = setTimeout(function() {$("#dropdown-about").hide();});
			$("#dropdown-about").stop().show();
			$("#nav-about").removeClass("active");
        });
		
        var hide06 = false;
		$("#nav-contact").hover(function(){          
		   if (hide06) clearTimeout(hide06);
            $("#dropdown-contact").show();
			$(this).addClass("active");
        }, function() {
			hide06 = setTimeout(function() {$("#dropdown-contact").hide();});
			$("#nav-contact").removeClass("active");
        });
        $("#dropdown-contact").hover(function(){
            if (hide06) clearTimeout(hide06);
            $("#nav-contact").addClass("active");
        }, function() {
			hide06 = setTimeout(function() {$("#dropdown-contact").hide();});
			$("#dropdown-contact").stop().show();
			$("#nav-contact").removeClass("active");
        });




	var hide07 = false;
		$("#test").hover(function(){          
		   if (hide07) clearTimeout(hide07);
            $("#featured0").show();
			$(this).addClass("active");
        }, function() {
			hide07 = setTimeout(function() {$("#featured0").hide();});
			$("#test").removeClass("active");
        });
        $("#featured0").hover(function(){
            if (hide07) clearTimeout(hide07);
            $("#test").addClass("active");
        }, function() {
			hide07 = setTimeout(function() {$("#featured0").hide();});
			$("#featured0").stop().show();
			$("#test").removeClass("active");
        });


	var hide08 = false;
		$("#test1").hover(function(){          
		   if (hide08) clearTimeout(hide08);
            $("#featured1").show();
			$(this).addClass("active");
        }, function() {
			hide08 = setTimeout(function() {$("#featured1").hide();});
			$("#test1").removeClass("active");
        });
        $("#featured1").hover(function(){
            if (hide08) clearTimeout(hide08);
            $("#test1").addClass("active");
        }, function() {
			hide08 = setTimeout(function() {$("#featured1").hide();});
			$("#featured1").stop().show();
			$("#test1").removeClass("active");
        });

	
	var hide09 = false;
		$("#test2").hover(function(){          
		   if (hide09) clearTimeout(hide09);
            $("#featured2").show();
			$(this).addClass("active");
        }, function() {
			hide09 = setTimeout(function() {$("#featured2").hide();});
			$("#test2").removeClass("active");
        });
        $("#featured2").hover(function(){
            if (hide09) clearTimeout(hide09);
            $("#test2").addClass("active");
        }, function() {
			hide09 = setTimeout(function() {$("#featured2").hide();});
			$("#featured2").stop().show();
			$("#test2").removeClass("active");
        });




        var hide11 = false;
		$("#category1").hover(function(){          
		   if (hide11) clearTimeout(hide11);
            $("#categorylist1").show();
            document.getElementById('category1').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide11 = setTimeout(function() {$("#categorylist1").hide();});
			document.getElementById('category1').style.backgroundColor = "#FFF";
			$("#category1").removeClass("active");
        });
        $("#categorylist1").hover(function(){
            if (hide11) clearTimeout(hide11);
            $("#category1").addClass("active");
        }, function() {
			hide11 = setTimeout(function() {$("#categorylist1").hide();});
			document.getElementById('category1').style.backgroundColor = "#FFF";
			$("#categorylist1").stop().show();
			$("#category1").removeClass("active");
        });



        var hide22 = false;
		$("#category2").hover(function(){          
		   if (hide22) clearTimeout(hide22);
            $("#categorylist2").show();
            document.getElementById('category2').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide22 = setTimeout(function() {$("#categorylist2").hide();});
			document.getElementById('category2').style.backgroundColor = "#FFF";
			$("#category2").removeClass("active");
        });
        $("#categorylist2").hover(function(){
            if (hide22) clearTimeout(hide22);
            $("#category2").addClass("active");
        }, function() {
			hide22 = setTimeout(function() {$("#categorylist2").hide();});
			document.getElementById('category2').style.backgroundColor = "#FFF";
			$("#categorylist2").stop().show();
			$("#category2").removeClass("active");
        });
        
        
        
        var hide33 = false;
		$("#category3").hover(function(){          
		   if (hide33) clearTimeout(hide33);
            $("#categorylist3").show();
            document.getElementById('category3').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide33 = setTimeout(function() {$("#categorylist3").hide();});
			document.getElementById('category3').style.backgroundColor = "#FFF";
			$("#category3").removeClass("active");
        });
        $("#categorylist3").hover(function(){
            if (hide33) clearTimeout(hide33);
            $("#category3").addClass("active");
        }, function() {
			hide33 = setTimeout(function() {$("#categorylist3").hide();});
			document.getElementById('category3').style.backgroundColor = "#FFF";
			$("#categorylist3").stop().show();
			$("#category3").removeClass("active");
        });
        
        
        
        var hide44 = false;
		$("#category4").hover(function(){          
		   if (hide44) clearTimeout(hide44);
            $("#categorylist4").show();
            document.getElementById('category4').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide44 = setTimeout(function() {$("#categorylist4").hide();});
			document.getElementById('category4').style.backgroundColor = "#FFF";
			$("#category4").removeClass("active");
        });
        $("#categorylist4").hover(function(){
            if (hide44) clearTimeout(hide44);
            $("#category4").addClass("active");
        }, function() {
			hide44 = setTimeout(function() {$("#categorylist4").hide();});
			document.getElementById('category4').style.backgroundColor = "#FFF";
			$("#categorylist4").stop().show();
			$("#category4").removeClass("active");
        });
        
        
        
        var hide55 = false;
		$("#category5").hover(function(){          
		   if (hide55) clearTimeout(hide55);
            $("#categorylist5").show();
            document.getElementById('category5').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide55 = setTimeout(function() {$("#categorylist5").hide();});
			document.getElementById('category5').style.backgroundColor = "#FFF";
			$("#category5").removeClass("active");
        });
        $("#categorylist5").hover(function(){
            if (hide55) clearTimeout(hide55);
            $("#category5").addClass("active");
        }, function() {
			hide55 = setTimeout(function() {$("#categorylist5").hide();});
			document.getElementById('category5').style.backgroundColor = "#FFF";
			$("#categorylist5").stop().show();
			$("#category5").removeClass("active");
        });
        
        
        
        var hide66 = false;
		$("#category6").hover(function(){          
		   if (hide66) clearTimeout(hide66);
            $("#categorylist6").show();
            document.getElementById('category6').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide66 = setTimeout(function() {$("#categorylist6").hide();});
			document.getElementById('category6').style.backgroundColor = "#FFF";
			$("#category6").removeClass("active");
        });
        $("#categorylist6").hover(function(){
            if (hide66) clearTimeout(hide66);
            $("#category6").addClass("active");
        }, function() {
			hide66 = setTimeout(function() {$("#categorylist6").hide();});
			document.getElementById('category6').style.backgroundColor = "#FFF";
			$("#categorylist6").stop().show();
			$("#category6").removeClass("active");
        });
        
        
        
        var hide77 = false;
		$("#category7").hover(function(){          
		   if (hide77) clearTimeout(hide77);
            $("#categorylist7").show();
            document.getElementById('category7').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide77 = setTimeout(function() {$("#categorylist7").hide();});
			document.getElementById('category7').style.backgroundColor = "#FFF";
			$("#category7").removeClass("active");
        });
        $("#categorylist7").hover(function(){
            if (hide77) clearTimeout(hide77);
            $("#category7").addClass("active");
        }, function() {
			hide77 = setTimeout(function() {$("#categorylist7").hide();});
			document.getElementById('category7').style.backgroundColor = "#FFF";
			$("#categorylist7").stop().show();
			$("#category7").removeClass("active");
        });
        
        
        
        var hide88 = false;
		$("#category8").hover(function(){          
		   if (hide88) clearTimeout(hide88);
            $("#categorylist8").show();
            document.getElementById('category8').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide88 = setTimeout(function() {$("#categorylist8").hide();});
			document.getElementById('category8').style.backgroundColor = "#FFF";
			$("#category8").removeClass("active");
        });
        $("#categorylist8").hover(function(){
            if (hide88) clearTimeout(hide88);
            $("#category8").addClass("active");
        }, function() {
			hide88 = setTimeout(function() {$("#categorylist8").hide();});
			document.getElementById('category8').style.backgroundColor = "#FFF";
			$("#categorylist8").stop().show();
			$("#category8").removeClass("active");
        });
        
        
        var hide99 = false;
		$("#category9").hover(function(){          
		   if (hide99) clearTimeout(hide99);
            $("#categorylist9").show();
            document.getElementById('category9').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide99 = setTimeout(function() {$("#categorylist9").hide();});
			document.getElementById('category9').style.backgroundColor = "#FFF";
			$("#category9").removeClass("active");
        });
        $("#categorylist9").hover(function(){
            if (hide99) clearTimeout(hide99);
            $("#category9").addClass("active");
        }, function() {
			hide99 = setTimeout(function() {$("#categorylist9").hide();});
			document.getElementById('category9').style.backgroundColor = "#FFF";
			$("#categorylist9").stop().show();
			$("#category9").removeClass("active");
        });
        
        
        var hide110 = false;
		$("#category10").hover(function(){          
		   if (hide110) clearTimeout(hide110);
            $("#categorylist10").show();
            document.getElementById('category10').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide110 = setTimeout(function() {$("#categorylist10").hide();});
			document.getElementById('category10').style.backgroundColor = "#FFF";
			$("#category10").removeClass("active");
        });
        $("#categorylist10").hover(function(){
            if (hide110) clearTimeout(hide110);
            $("#category10").addClass("active");
        }, function() {
			hide110 = setTimeout(function() {$("#categorylist10").hide();});
			document.getElementById('category10').style.backgroundColor = "#FFF";
			$("#categorylist10").stop().show();
			$("#category10").removeClass("active");
        });
        
        
        var hide111 = false;
		$("#category11").hover(function(){          
		   if (hide111) clearTimeout(hide111);
            $("#categorylist11").show();
            document.getElementById('category11').style.backgroundColor = "#FCF8DE";
			$(this).addClass("active");
        }, function() {
			hide111 = setTimeout(function() {$("#categorylist11").hide();});
			document.getElementById('category11').style.backgroundColor = "#FFF";
			$("#category11").removeClass("active");
        });
        $("#categorylist11").hover(function(){
            if (hide111) clearTimeout(hide111);
            $("#category11").addClass("active");
        }, function() {
			hide111 = setTimeout(function() {$("#categorylist11").hide();});
			document.getElementById('category11').style.backgroundColor = "#FFF";
			$("#categorylist11").stop().show();
			$("#category11").removeClass("active");
        });
 
 });
