$(function(){
	(function($){
		// for Err : jQuery.dequeue is not a function
		$.dequeue = function(a,b){
			return $(a).dequeue(b);
		};
	})(jQuery);

	//Set Scroll
	$('#navi_top a').click(function(){
		$('#content').ScrollTo(500, 'easeout');
		return false;
	});


	//Set RollOver
	$.each($("img.rollover"), function(){
		var imgPass = $(this).attr("src");
		var imgType = imgPass.substring(imgPass.lastIndexOf('.'), imgPass.length);
		var loadImgPass = imgPass.replace(imgType, '_over' + imgType);
		new Image().src = loadImgPass;
		$(this).attr({oversrc:loadImgPass});
	});
	$("img.rollover").hover(
		function(){
			$(this).attr({src:$(this).attr("oversrc")});
		},
		function(){
			$(this).attr({src:$(this).attr("src").replace("_over","")});
		}
	);

	//Set ToolTip
	$("#navigation img, .memoSection dt span").ToolTip({
		className: 'naviTips',
		position: 'mouse',
		delay: 200}
	);

	//Set Margin
	$(".memoSection dt img[height='300'], .memoSection dt img[height='400'], .memoSection dt img[height='450'], .memoSection dt img[height='460']").css({marginTop:"30px", marginBottom:"20px"});
});