j$(function(){
  // rollover
  j$('.imgover').each(function(){
    this.osrc = j$(this).attr('src');    
    this.rollover = new Image();
    this.rollover.src = this.osrc.replace(/(\.gif|\.jpg|\.png)/, "_o$1");
  }).hover(function(){
    j$(this).attr('src',this.rollover.src);
  },function(){
    j$(this).attr('src',this.osrc);
  });
});

// f size change
j$(document).ready(function(){
  
  j$('#smallFont').bind('click', function(){
    j$('body').addClass('small').removeClass('large');
    j$.cookie('stylefont','smallFont',{path: "/", expires:7});
  });

  j$('#mediumFont').bind('click', function(){
    j$('body').removeClass('small').removeClass('large');
    j$.cookie('stylefont','mediumFont',{path: "/", expires:7});
  });
  
  j$('#largeFont').bind('click', function(){
    j$('body').addClass('large').removeClass('small');
    j$.cookie('stylefont','largeFont',{path: "/", expires:7});
  });  
});

j$(document).ready(function(){
  j$('.haikuAbout .alignCenter .show').hover(function(){
    j$(this).addClass('on');
  }, function(){
    j$(this).removeClass('on');
    });  
  
  j$('.haikuSection .haikuText').hide();
  j$('.haikuAbout .alignCenter .show').click(function(){
    j$('.haikuSection .haikuText').slideDown('normal');
  });
  
  j$('.haikuSection .closeButton').click(function(){
    j$('.haikuSection .haikuText').slideUp('normal');
  });
})
