jQuery(document).ready(function(){
 
		jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
			return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);  
      	};


		function insertFlash() {
				if (FlashReplace.checkForFlash(9)) {
                    FlashReplace.replace("flash-container", "Banner.swf", "flash-element", "800", "350", 9, { wmode: "transparent" });
					
				}
            }

			
		$(function(){
			$(".productsBtn").click(function(){		
				$(this).next("div").slideToggle('slow');
				$("#flash-container").load(insertFlash());
				$("#flash-container").slideFadeToggle();
				$("#apa").slideFadeToggle();
			});
		});

	var myFile = document.location.toString();
	if (myFile.match('#')){
  	// click the navigation item corresponding to the anchor
	var myAnchor = '#' + myFile.split('#')[1];
  
  	$('.productsBtn a[href="' + myAnchor + '"]').parent().click();
	}

 
});
