/*
Phil Renaud the mad scientist behind this.
phil@rhinointernet.com
http://rhinointernet.com
*/



$(document).ready(function(){

hoverstates();
activestates();


});






/*==( Promo Hover )======================================================*/

function hoverstates() {

   $('.promos').find('a').hover(function(){
      $(this).stop().animate({'backgroundColor': '#262d46'}, 350);
   }, function(){
      $(this).stop().animate({'backgroundColor': '#f68426'}, 350);
   }); //hover

   $('.navigation').find('a').hover(function(){
      $(this).parent('li').siblings('li').stop().animate({'opacity': '0.3'}, 200);
   }, function(){
      $(this).parent('li').siblings('li').stop().animate({'opacity': '1'}, 200);
   }); //hover


}; //hoverstates


/*==( Active States )======================================================*/

function activestates() {
   var urlpath = window.location.pathname;
   $('.minor').find('a').each(function(){
      if ($(this).attr('href') == urlpath) {
         $(this).addClass('active');
      }; //if
   }); //each link in .minor
}; //activetates

