 
		$(
			function(){
 
				// Get all of the gradient images and loop
				// over them using jQuery implicit iteration.
				$( "img.gradient_divider_bottom" ).each(
					function( intIndex ){
						var jImg = $( this );
						var jParent = null;
						var jDiv = null;
						var intStep = 0;
                                                var intStepLim = 20;
                                                var mult = 5;
                                                var mult_max = 100;
                                                var img_height = 5; 
						// Get the parent
						jParent = jImg.parent();
 
						// Make sure the parent is position
						// relatively so that the graident steps
						// can be positioned absolutely within it.
						jParent
							.css( "position", "relative" )
							.width( jImg.width() )
							.height( jImg.height() )
						;
 
						// Create the gradient elements. Here, we
						// are hard-coding the number of steps,
						// but this could be abstracted out.
                                                if(jImg.height() < 100) {
                                                 intStepLim = 20;
                                                 mult = 1;
                                                 mult_max = 20;
                                                 img_height = 2;
                                                }
						for (
							intStep = 0 ;
							intStep <= intStepLim ;
							intStep++
							){
 
							// Create a fade level.
							jDiv = $( "<div></div>" );
 
							// Set the properties on the fade level.
							jDiv
								.css (
									{
										backgroundColor: "#FFFFFF",
										opacity: (intStep * mult / mult_max),
										bottom: ((mult_max - (intStep * mult) ) + "px"),
										left: "0px",
										position: "absolute"
									}
									)
								.width( jImg.width() )
								.height( img_height )
							;
 
							// Add the fade level to the
							// containing parent.
							jParent.append( jDiv );
 
						}
 
					}
					);
 
			}
			);

$(
			function(){
 
				// Get all of the gradient images and loop
				// over them using jQuery implicit iteration.
				$( "img.gradient_divider_top" ).each(
					function( intIndex ){
						var jImg = $( this );
						var jParent = null;
						var jDiv = null;
						var intStep = 0;
                                                var intStepLim = 20;
                                                var mult = 5;
                                                var mult_max = 100;
                                                var img_height = 5;
 
						// Get the parent
						jParent = jImg.parent();
 
						// Make sure the parent is position
						// relatively so that the graident steps
						// can be positioned absolutely within it.
						jParent
							.css( "position", "relative" )
							.width( jImg.width() )
							.height( jImg.height() )
						;
 
						// Create the gradient elements. Here, we
						// are hard-coding the number of steps,
						// but this could be abstracted out.
                                                if(jImg.height() < 100) {
                                                 intStepLim = 20;
                                                 mult = 1;
                                                 mult_max = 20;
                                                 img_height = 3;
                                                }
						for (
							intStep = 0 ;
							intStep <= intStepLim ;
							intStep++
							){
 
							// Create a fade level.
							jDiv = $( "<div></div>" );
 
							// Set the properties on the fade level.
							jDiv
								.css (
									{
										backgroundColor: "#FFFFFF",
										opacity: (intStep * mult / mult_max),
										top: ((mult_max - (intStep * mult) ) + "px"),
										left: "0px",
										position: "absolute"
									}
									)
								.width( jImg.width() )
								.height( img_height )
							;
 
							// Add the fade level to the
							// containing parent.
							jParent.append( jDiv );
 
						}
 
					}
					);
 
			}
			); 

