/*!
 * jQuery tips for Junichi USUI's personal website1.3.1
 * http://www.myspace.com/junusui
 *
 * Copyright (c) 2010 Junichi USUI
 *
 * Date: 2010-01-06 
 * Revision: 0001
 */
 
$(document).ready(function() {
//page skin
	$(".yui-b:eq(0)").addClass("rightcont");
	$(".yui-b:eq(1)").addClass("leftnavi");
});


 $(function() {//TreeView
  $("#tree").treeview({
    collapsed: true,
    unique:true,
    animated: "fast",
    persist: "location"
  });
  
});

// current, currentsub, currentfly
$(function() {
  $("#menu li").click(function() {
    $("#menu li").removeClass("current");
    $(this).addClass("current");
    $("#h2left").html($(this).children("a").html());
  });    
});

$(function() {
  $("#iconDock").addDockEffect({
    iconMinSide: 35,
    iconMaxSide: 70,
    distAttDock: 100,
    coefAttDock: 2,
    veloOutDock: 500,
    valign: "bottom"
  });
}); 

$(function() {//external link tips
	$("#contwrap a[href^='http:'], .tablesorter a[href^='http:']")
	.not($("a[href^='http://']").find('img').parents('a'))
	.addClass("externallink")
	.attr("target","_blank");
});
 
$(function() {//tablesorter css
//	$("#2009live > tbody td:nth-child(1)").css({"white-space":"nowrap","width":"100px"});
//	$("#2010live > tbody td:nth-child(1)").css({"white-space":"nowrap","width":"100px"});
});


