
$(document).ready(function(){ // wait for the document to load
		   
	  var globals = {
	  	session_id:		session_id,
            	az_cart_fetch_file:	'',
            	az_cart_fetch: 		false,
            	az_loading_image: 	'<center>loading ...</center>',
		az_cart_image_width: 	image_width,
		az_cart_image_height: 	image_height,
		az_cart_opacity: 	0.8,
		az_box_status: 		false,
		az_timer: 		"",
		az_speed: 		"fast",
		text_cart_quantity: 	text_cart_quantity,
		text_cart_subtotal: 	text_cart_subtotal,
		text_cart_empty:	text_cart_empty,
		cart_text:		cart_text,
		cart_link:		cart_link
        };
	  $("#btn_animBoxCart829").hover(					
					function(){						
						if(globals.az_cart_fetch == false){
							$("#animBoxCart829").html(globals.az_loading_image);
							retrievecart829();							
						}
						clearTimeout(globals.az_timer);
						animatedbox829("show");	   					
	 				},
					function(){							
	   					globals.az_timer = setTimeout('animatedbox829("hide")',300);
	 				}
		);	  


          $("#btn_animBoxCart836").hover(
                                        function(){
                                                if(globals.az_cart_fetch == false){
                                                        $("#animBoxCart836").html(globals.az_loading_image);
                                                        retrievecart836();
                                                }
                                                clearTimeout(globals.az_timer);
                                                animatedbox836("show");
                                        },
                                        function(){
                                                globals.az_timer = setTimeout('animatedbox836("hide")',300);
                                        }
                );



          $("#btn_animBoxCart837").hover(
                                        function(){
                                                if(globals.az_cart_fetch == false){
                                                        $("#animBoxCart837").html(globals.az_loading_image);
                                                        retrievecart837();
                                                }
                                                clearTimeout(globals.az_timer);
                                                animatedbox837("show");
                                        },
                                        function(){
                                                globals.az_timer = setTimeout('animatedbox837("hide")',300);
                                        }
                );


          $("#btn_animBoxCart838").hover(
                                        function(){
                                                if(globals.az_cart_fetch == false){
                                                        $("#animBoxCart838").html(globals.az_loading_image);
                                                        retrievecart838();
                                                }
                                                clearTimeout(globals.az_timer);
                                                animatedbox838("show");
                                        },
                                        function(){
                                                globals.az_timer = setTimeout('animatedbox838("hide")',300);
                                        }
                );


	  $("#animBoxCart829").hover(					
					function(){clearTimeout(globals.az_timer);animatedbox829("show");},
					function(){globals.az_timer = setTimeout('animatedbox829("hide")',300);
	 				}
		);	

          $("#animBoxCart836").hover(
                                        function(){clearTimeout(globals.az_timer);animatedbox836("show");},
                                        function(){globals.az_timer = setTimeout('animatedbox836("hide")',300);
                                        }
                );

          $("#animBoxCart837").hover(
                                        function(){clearTimeout(globals.az_timer);animatedbox837("show");},
                                        function(){globals.az_timer = setTimeout('animatedbox837("hide")',300);
                                        }
                );

          $("#animBoxCart838").hover(
                                        function(){clearTimeout(globals.az_timer);animatedbox838("show");},
                                        function(){globals.az_timer = setTimeout('animatedbox838("hide")',300);
                                        }
                );

  
  	animatedbox829 = function(action){		  
			if(action=="show") {
				$("#animBoxCart829").animate({height: "show", opacity: "show"}).animate({opacity:globals.az_cart_opacity});	
				$("#animBoxCart836").animate({height: "hide", opacity: "hide"});
				$("#animBoxCart837").animate({height: "hide", opacity: "hide"});
				$("#animBoxCart838").animate({height: "hide", opacity: "hide"});

			} else $("#animBoxCart829").animate({height: "hide", opacity: "hide"});		

	}

        animatedbox836 = function(action){  
                        if(action=="show") {
				$("#animBoxCart836").animate({height: "show", opacity: "show"}).animate({opacity:globals.az_cart_opacity});
				$("#animBoxCart829").animate({height: "hide", opacity: "hide"});
                                $("#animBoxCart837").animate({height: "hide", opacity: "hide"});
                                $("#animBoxCart838").animate({height: "hide", opacity: "hide"});

                        } else $("#animBoxCart836").animate({height: "hide", opacity: "hide"});

        }

        animatedbox837 = function(action){  
                        if(action=="show") {
				$("#animBoxCart837").animate({height: "show", opacity: "show"}).animate({opacity:globals.az_cart_opacity});
			        $("#animBoxCart836").animate({height: "hide", opacity: "hide"});
                                $("#animBoxCart829").animate({height: "hide", opacity: "hide"});
                                $("#animBoxCart838").animate({height: "hide", opacity: "hide"});
                        } else $("#animBoxCart837").animate({height: "hide", opacity: "hide"});

        }

        animatedbox838 = function(action){  
                        if(action=="show") {
				$("#animBoxCart838").animate({height: "show", opacity: "show"}).animate({opacity:globals.az_cart_opacity});
		                $("#animBoxCart836").animate({height: "hide", opacity: "hide"});
                                $("#animBoxCart837").animate({height: "hide", opacity: "hide"});
                                $("#animBoxCart829").animate({height: "hide", opacity: "hide"});

                        } else $("#animBoxCart838").animate({height: "hide", opacity: "hide"});

        }

      retrievecart829 = function(){
              $.ajax({
                        url: "osc_az_fetch829.php",
                        type: "POST",
                        cache: false,
                        success: function(msg){
                                        $("#animBoxCart829").html(msg);
                                }
                    });
      }	  
     
      retrievecart836 = function(){
              $.ajax({
                        url: "osc_az_fetch836.php",
                        type: "POST",
                        cache: false,
                        success: function(msg){
                                        $("#animBoxCart836").html(msg);
                                }
                    });
      } 

      retrievecart837 = function(){
              $.ajax({
                        url: "osc_az_fetch837.php",
                        type: "POST",
                        cache: false,
                        success: function(msg){
                                        $("#animBoxCart837").html(msg);
                                }
                    });
      }

      retrievecart838 = function(){
              $.ajax({
                        url: "osc_az_fetch838.php",
                        type: "POST",
                        cache: false,
                        success: function(msg){
                                        $("#animBoxCart838").html(msg);
                                }
                    });
      }
});

