function init() {
	$('#select_product_form .submit').hide();
	$('#select_product_form select').change(function() {
		$('#select_product_form').submit();
	});
	
	
	
	$('a[href*=#]').click(function() {

	   // duration in ms
	   var duration=1000;

	   // easing values: swing | linear
	   var easing='swing';

	   // get / set parameters
	   var newHash=this.hash;
	   var target=$(this.hash).offset().top;
	   var oldLocation=window.location.href.replace(window.location.hash, '');
	   var newLocation=this;

	   // make sure it's the same location      
	   if(oldLocation+newHash==newLocation)
	   {
	      // animate to target and set the hash to the window.location after the animation
	      $('html:not(:animated),body:not(:animated)').animate({ scrollTop: target }, duration, easing, function() {

	         // add new hash to the browser location
	         window.location.href=newLocation;
	      });

	      // cancel default click action
	      return false;
	   }
	});
	
	if ($('#home_grid').size() > 0) {
		if ($('#home_grid .pos-y-4').size() > 0) {
			$('#home_grid').css({height : (189*5) + 'px'})	
		} else if ($('#home_grid .pos-y-5').size() > 0) {
			$('#home_grid').css({height : (189*6) + 'px'})	
		}
	}
	
	
}








$(document).ready(init);
