//Req.baseUrl = Req.baseUrl || '//static.domain.com/js/';
Req.charset = 'utf-8';
Req(
  'libs/jquery-1.3.2.min.js',
  'libs/jquery-ui-1.7.2.custom.min.js',
  'libs/jquery.carousel.js', 
  'libs/jquery.validate.min.js', 
  'libs/validation_localization/message_is.js',   
  'libs/jquery.input-hint.js', 
  'libs/jquery.autogrow-textarea.js', 
  'libs/jquery.eqheight.js', 
  'libs/jquery.tablesorter.min.js',
  'libs/jquery.tipsy.js',    
      function(){
      	//let's focus on the first input that's visible & enabled.
      	$(":text:visible:enabled:first").focus();
      	
      	//Add hints to all inputs with the 'title' attribute set.
	    		$('input[title],textarea[title]').inputHint();
	      
	    		//autogrow textarea's facebook style.
	    		$('textarea').TextAreaExpander();
      	
      	//client side form validation
      	jQuery.validator.addClassRules({
	      		req: {
								 required: true
										},
										zip: {
											required: true,
											digits: true
										},
										email: {
											required: true,
											email:true
											}
							});

      	
      	$('form').validate();

       
       //equal height for columns
       $(".station").setEqualHeight();
	      	
			   //odd class on odd table rows
			   $("tr:nth-child(even)").addClass("even");	
		
			   // Carousel
			   $("div.newsitems").carousel( { 
			        autoSlide: true, 
			        autoSlideInterval: 5000,
			        delayAutoSlide: 3000,
			        loop: false
			   });
	   
			   //tooltips
			   $('.station_accepts li').tipsy({
			   	fade: true,
			   	gravity: 's',
			   	html:true,
			   	opacity:1
			   	});

		
        }); // end Req()
