$j = jQuery.noConflict();
$j(document).ready(function(){
		$j("div.section img").each(function(){
				var imgSrcValue = $j(this).attr("src") ;
				 $j(this).hover(
			   function () {
					   var valueInput = $j(this).parent("a").find("input").val();
					   $j(this).attr("src",valueInput);
			   }
			   ,
			   function(){
					   $j(this).attr("src",imgSrcValue);
			   }
			   )
		});

			$j("div.section1 img").each(function(){
				var imgSrcValue = $j(this).attr("src") ;
				 $j(this).hover(
			   function () {
					   var valueInput = $j(this).parent("a").find("input").val();
					   $j(this).attr("src",valueInput);
			   }
			   ,
			   function(){
					   $j(this).attr("src",imgSrcValue);
			   }
			   )
		});
		
		if($j('#slides').size() > 0){	
				$j(function() {
				// Set starting slide to 1
						var startSlide = 1;
						// Get slide number if it exists
						if (window.location.hash) {
								startSlide = window.location.hash.replace('#', '');
						}
			
						// Initialize Slides
						$j('#slides').slides({
								preload: true,
								preloadImage: 'img/loading.gif',
								generateNextPrev: true,
								start: 1,
								pagination: true,
								prependPagination:false,
								play: 3500,
								pause: 2500,
								crossfade: true,
								hoverPause: true,
								animationComplete: function(current){
									// Set the slide number as a hash
									window.location.hash = '#' + current;
								}
						});
				});
		}
});
