$(document).ready(function() {				
				$("ul.sf-menu").superfish({animation: {height:'show'},   // slide-down effect without fade-in 
            delay:     600}).find('ul').bgIframe({opacity:false}); 
				$("#featured").tabs({fx:{opacity: "toggle", speed: 1000}}).tabs("rotate", 8000, true);
		
				

				$("#login_block").mouseup(function(){
					return false;
				});
				$("#support_block").mouseup(function(){
					return false;
				});
				$("#cart_block").mouseup(function() {
					return false				
				});   

				$("#search_block").mouseup(function() {
					return false				
				}); 				
				
			  $('#login').mouseup(function (e) {			  	
			  	e.preventDefault();
					$('#login_block').slideToggle('fast');
    				$("#cart_block").hide();
    				$("#support_block").hide();					
    		});
    		
    		$('#cart').mouseup(function (e) {			  	
			  	e.preventDefault();
					$('#cart_block').slideToggle('fast');
					$("#login_block").hide();
					$("#search_block").hide();
    			$("#support_block").hide();
    		});

    		$('#support').mouseup(function (e) {			  	
			  	e.preventDefault();
					$('#support_block').slideToggle('fast');
					$("#login_block").hide();			
					$("#search_block").hide();		
					$("#cart_block").hide();8
    		});
    		$('#search').mouseup(function (e) {			  	
			  	e.preventDefault();
					$('#search_block').slideToggle('fast');
					$("#support_block").hide();					
					$("#login_block").hide();					
					$("#cart_block").hide();8
    		});
 		
 				$('.closeall').mouseup(function (e) {
 					e.preventDefault();
    				$("#login_block").hide();
    				$("#cart_block").hide();
    				$("#search_block").hide();
    				$("#support_block").hide();    				
    		});
    		
    		$('.jqhandle').click(function(e){
    			e.preventDefault();
    		});
    		 	    		
    		$(document).mouseup(function(e) { 			
    			if($(e.target).parent("a.button").length==0) {
    				$("#login_block").hide();
    				$("#cart_block").hide();
    				$("#search_block").hide();
    				$("#support_block").hide();    				
    			}
    			
    		});    		
    		
    		$("#MoreImageLink").tooltip({
    			tip: "#MagicThumb",
    			offset: [220, 2]
    		}).dynamic({
        	// customized configuration on bottom edge 
        	bottom: { 
            direction: 'down',  
            bounce: true 
      	  } 
  		  });  
  		  
    		    		
			});
			
			