var conf = null;

$(function(){
	 /**/
	 $("#explain-require").hide();
	 $("#explain-about").hide();
	 $("#explain-policy").hide();
	 //
	 $("#mbtn01").click(function(){
	 	$("#explain-require").toggle("slow");
	 	return false;
	 });
	 //
	 $("#mbtn02").click(function(){
		 $("#explain-about").toggle("slow");
	 	return false;
 	});
	 //
	 $("#mbtn03").click(function(){
		 //$("#explain-policy").toggle("slow");
		 return false;
	 });
	
  /**/
	 $(".jqir-png-common").jQIR("png", "/img/common/");
	 $(".jqir-gif-common").jQIR("gif", "/img/common/");
	 $(".jqir-jpg-common").jQIR("jpg", "/img/common/");
	
	 $(".jqir-png").jQIR("png", "img/");
	 $(".jqir-gif").jQIR("gif", "img/");
	 $(".jqir-jpg").jQIR("jpg", "img/");
	
	 /* PageTop */
   $('a.btn-pagetop').click(function() {
       $('#wrap').ScrollTo(1000, 'easeout'); return false;
   });
			
		/* RolloverIMG */
		var conf = {
					className : "btn",
					postfix : 'o'
		};
		
		$('.'+conf.className).each(function(){
					this.orgSrc = this.src;
					this.overSrc = this.orgSrc.replace(/(\.gif|\.jpg|\.png)/, conf.postfix+"$1");
					preloadImage(this.overSrc);
		}).hover(function(){
					this.src = this.overSrc;
		},function(){
					this.src = this.orgSrc;
		});
		
});

/* Preload IMG Fnc */
preloadImages = [];
var l = null;
function preloadImage(url){
			var p = preloadImages;
			var l = p.length;
			p[l] = new Image();
			p[l].src = url;
}

function click_require(){
		$("#explain-require").toggle("slow");
		return false;
}

function click_about(){
		$("#explain-about").toggle("slow");
		return false;
}

