/*
  foundation.js
  for Bridgestone GlobalWebSite
*/

(function(){

	$(document).ready( function(){
		 

		if( !$("#nav").slideDown ){
			$.fn.slideDown = function(speed,callback){
				return this.css("display","block");
			}
			$.fn.slideUp = function(speed,callback){
				return this.css("display","none");
			}
			$.fn.stop = function(clearQueue,gotoEnd){
				return this;
			}
		}


		$("#nav > ul > li > a")
			.bind( "mouseenter", function(myEv){
				var targetElm = $( this ).parent();
				targetElm.addClass( 'selecting' );
				$( "> div", targetElm ).stop(false,true).slideDown( 'fast' );
			} );
		
		$("#nav > ul > li")
			.bind( "mouseleave", function(){
				$( this ).removeClass( 'selecting' );
				$( "> div", this ).stop(false,true).slideUp( 'fast' );
			} )
		
	});

	
})();
