﻿scrolltotop.controlHTML = '<div id="scr_navi"><img src="./images/rolltop.gif" alt="ページ上部へ戻る" /></div>';
$(function(){
	$('a[rel=imglink]').children().hover(function(){
		$(this).stop().fadeTo(80,0.6);
		//$(this).animate({"margin-top": "-=4px"}, 100);
	}, function(){  
		$(this).stop().fadeTo(300,1);
		//$(this).animate({"margin-top": "+=4px"}, 100);
	});

	$("a[rel='blank']").click(function(){
		window.open($(this).get(0).href);
		return false;
	});

	$("a[href=#*]").click(function(){
		var URL = $(this).get(0).href;
		var ID = (URL.match(/#(.+)/)||[])[1];
		var targetOffset = $("#" + ID).offset().top;
		$('html,body').animate({scrollTop: targetOffset}, 1000);
		//return false;
	});

	if (typeof document.documentElement.style.maxHeight == "undefined") {
		$(document).pngFix();
	}
});

function loadImage(flashconf, flashvars){
	var params = {
		quality:"high",
		allowfullscreen:"false",
		allowscriptaccess:"always",
		wmode:"transparent"
	};
	swfobject.embedSWF(flashconf.swfPath,"swfarea", flashconf.w, flashconf.h, "9.0.0","./js/expressInstall.swf",flashvars,params);
}
