$(function(){
	// rollover
	$('.imgover').each(function(){
		this.osrc = $(this).attr('src');
		this.rollover = new Image();
		this.rollover.src = this.osrc.replace(/(\.gif|\.jpg|\.png)/, "_o$1");
	}).hover(function(){
		$(this).attr('src',this.rollover.src);
	},function(){
		$(this).attr('src',this.osrc);
	});
   
   $(".list #list").toggle(
      function () {
         $(".list #listContent").slideUp(280);
		 $(this).css("background","url(/common/img/ico_arrow02_o.gif) no-repeat 0 12px");
      },
      function () {
		  $(".list #listContent").slideDown(270);
		  var targetOffset = $("#footer").offset().top;
			$('html,body').animate({scrollTop: targetOffset});
			$(this).css("background","url(/common/img/ico_arrow02.gif) no-repeat 0 12px");
      }
    );

   
   $(".listSection li a").click(function() {
		var id=$(this).attr("rel");
		switch (id) {
			case "transfer":	$("#rational").fadeOut("slow");
			                    $("#cmt").fadeOut("slow");
								$("#strengthen").fadeOut("slow");
								$("#payment").fadeOut("slow");
								$("#price").fadeOut("slow");
								$("#convenience").fadeOut("slow");
								$("#clerical").fadeOut("slow");
								$("#reduce").fadeOut("slow");
								$("#approach").fadeOut("slow");
								$("#transfer").fadeIn("slow");
								break;
								
			case "rational":	$("#transfer").fadeOut("slow");
			                    $("#cmt").fadeOut("slow");
								$("#strengthen").fadeOut("slow");
								$("#payment").fadeOut("slow");
								$("#price").fadeOut("slow");
								$("#convenience").fadeOut("slow");
								$("#clerical").fadeOut("slow");
								$("#reduce").fadeOut("slow");
								$("#approach").fadeOut("slow");
								$("#rational").fadeIn("slow");
								break;
								
			case "cmt":			$("#transfer").fadeOut("slow");
			                    $("#rational").fadeOut("slow");
								$("#strengthen").fadeOut("slow");
								$("#payment").fadeOut("slow");
								$("#price").fadeOut("slow");
								$("#convenience").fadeOut("slow");
								$("#clerical").fadeOut("slow");
								$("#reduce").fadeOut("slow");
								$("#approach").fadeOut("slow");
								$("#cmt").fadeIn("slow");
								break;
								
			case "strengthen":	$("#transfer").fadeOut("slow");
			                    $("#rational").fadeOut("slow");
								$("#cmt").fadeOut("slow");
								$("#payment").fadeOut("slow");
								$("#price").fadeOut("slow");
								$("#convenience").fadeOut("slow");
								$("#clerical").fadeOut("slow");
								$("#reduce").fadeOut("slow");
								$("#approach").fadeOut("slow");
								$("#strengthen").fadeIn("slow");
								break;
								
			case "price":		$("#transfer").fadeOut("slow");
			                    $("#rational").fadeOut("slow");
								$("#cmt").fadeOut("slow");
								$("#payment").fadeOut("slow");
								$("#strengthen").fadeOut("slow");
								$("#convenience").fadeOut("slow");
								$("#clerical").fadeOut("slow");
								$("#reduce").fadeOut("slow");
								$("#approach").fadeOut("slow");
								$("#price").fadeIn("slow");
								break;
								
			case "payment":		$("#transfer").fadeOut("slow");
			                    $("#rational").fadeOut("slow");
								$("#cmt").fadeOut("slow");
								$("#price").fadeOut("slow");
								$("#strengthen").fadeOut("slow");
								$("#convenience").fadeOut("slow");
								$("#clerical").fadeOut("slow");
								$("#reduce").fadeOut("slow");
								$("#approach").fadeOut("slow");
								$("#payment").fadeIn("slow");
								break;
								
			case "convenience":	$("#transfer").fadeOut("slow");
			                    $("#rational").fadeOut("slow");
								$("#cmt").fadeOut("slow");
								$("#price").fadeOut("slow");
								$("#strengthen").fadeOut("slow");
								$("#payment").fadeOut("slow");
								$("#clerical").fadeOut("slow");
								$("#reduce").fadeOut("slow");
								$("#approach").fadeOut("slow");
								$("#convenience").fadeIn("slow");
								break;
								
			case "clerical":	$("#transfer").fadeOut("slow");
			                    $("#rational").fadeOut("slow");
								$("#cmt").fadeOut("slow");
								$("#price").fadeOut("slow");
								$("#strengthen").fadeOut("slow");
								$("#payment").fadeOut("slow");
								$("#convenience").fadeOut("slow");
								$("#reduce").fadeOut("slow");
								$("#approach").fadeOut("slow");
								$("#clerical").fadeIn("slow");
								break;
								
			case "reduce":		$("#transfer").fadeOut("slow");
			                    $("#rational").fadeOut("slow");
								$("#cmt").fadeOut("slow");
								$("#price").fadeOut("slow");
								$("#strengthen").fadeOut("slow");
								$("#payment").fadeOut("slow");
								$("#clerical").fadeOut("slow");
								$("#convenience").fadeOut("slow");
								$("#approach").fadeOut("slow");
								$("#reduce").fadeIn("slow");
								break;
								
			case "approach":	$("#transfer").fadeOut("slow");
			                    $("#rational").fadeOut("slow");
								$("#cmt").fadeOut("slow");
								$("#price").fadeOut("slow");
								$("#strengthen").fadeOut("slow");
								$("#payment").fadeOut("slow");
								$("#clerical").fadeOut("slow");
								$("#convenience").fadeOut("slow");
								$("#reduce").fadeOut("slow");
								$("#approach").fadeIn("slow");
								break;
		}
	});
   
   $("#transfer .close").click(function() {
		$("#transfer").fadeOut("slow");											  
	});
   
   $("#rational .close").click(function() {
		$("#rational").fadeOut("slow");											  
	});
   
   $("#cmt .close").click(function() {
		$("#cmt").fadeOut("slow");											  
	});
   
   $("#strengthen .close").click(function() {
		$("#strengthen").fadeOut("slow");											  
	});
   
   $("#price .close").click(function() {
		$("#price").fadeOut("slow");											  
	});
   
   $("#payment .close").click(function() {
		$("#payment").fadeOut("slow");											  
	});
   
   $("#convenience .close").click(function() {
		$("#convenience").fadeOut("slow");											  
	});
   
   $("#clerical .close").click(function() {
		$("#clerical").fadeOut("slow");											  
	});
   
   $("#reduce .close").click(function() {
		$("#reduce").fadeOut("slow");											  
	});
   
   $("#approach .close").click(function() {
		$("#approach").fadeOut("slow");											  
	});
   
   $(".history tr:odd").addClass("odd");
   $(".history tr:even").addClass("even");
   
});

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
