/* jQuery */

/* onMouseOver */
$(function(){
		   $('a img').hover(function(){
									 $(this).attr('src', $(this).attr('src').replace('_off', '_on'));
									 }, function(){
										 if (!$(this).hasClass('currentPage')) {
											 $(this).attr('src', $(this).attr('src').replace('_on', '_off'));
										 }
									 });
		   });

/* smoothScroll*/
$(function(){
		   $("a.smooth").click(function(){
										$('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top },'slow','swing');
										return false;
										})
		   });

/* targetBlank */
$(function(){
		   $("a[href^='http://']").attr("target","_blank");
		   });

/* imageFade */
$(document).ready(function(){
						   $("img.hover").fadeTo(0,1.0);
						   $("img.hover").hover(function(){
																$(this).fadeTo(200,0.6);
																},
																function(){
																	$(this).fadeTo(200,1.0);
																});
						   });

/* superBox */
$(function(){
		   $.superbox.settings = {
			   closeTxt: "Close",
			   loadTxt: "Loading...",
			   nextTxt: "Next",
			   prevTxt: "Previous"
		   };
		   $.superbox();
		   });

/* Twitter */
$(function(){
		   $('.tweet').tweet({
							 username: "takatakawori"
							 });
		   });
