﻿function highlight() {
/* 
  $('ul.highlighter li')
    .css('cursor','pointer')
    .hover(function(){$(this).addClass('highlight_item')},function(){$(this).removeClass('highlight_item')})
    .click(function(){location.href = "#";$(this).find('a').get(0).href;});
//  .click(function(){location.href = "#";$(this).find('a').get(0).href;});
*/

	var $ = window.$2; 
	$('ul.highlighter li')
	.live('hover',function(){$(this).css('cursor','pointer');$(this).toggleClass('highlight_item');})
	.live('click',function(){location.href = $(this).find('a').get(0).href;});
}

$(function(){

	$(".plan_type_reasonable > div").hide();
	$(".tabDefault").show();


	var tabIndex = $(".plan_type_reasonable > div");
	var tabNum = $(tabIndex).length-1;

	$(".tablist > li > a").click(function(){
		var targetID = $(this).attr("href");
		for(i=0;i<=tabNum;i++){
			$(tabIndex[i]).hide();
			$(".tablist > li").removeClass("current");
		}
		$(this).parent().addClass("current");
		$(targetID).show();
		return false;
	});

});

