document.write('<script type="text/javascript" src="/fullsize/jquery.fullsize.js"></script>');
document.write('<link href="/fullsize/fullsize.css" media="screen" rel="stylesheet" type="text/css" />');

document.write('<style type="text/css">');

document.write('img.favicon { height: 11px; border: none; margin-right: 3px;}');
document.write('a:link { color: royalblue }');
document.write('a:visited { color: darkorchid }');
document.write('a:hover { text-decoration: underline; color: lightblue }');

document.write('</style>');

$(function(){

	$("a").each(function(){
		// maps.googleのurlのみ
		var href = $(this).attr("href");
		var pattern = new RegExp('maps.google');
		if (pattern.test(href)) $(this).addFavicon();
	});

	//
	// <a class="linkimage" icon="5" href="test_image/002.jpg" id=a1><img id=i1 border=0 src="test_image/002.jpg" width=200></a>
	//
	$("a.linkimage").each(function(){
		if (typeof($(this).attr("icon"))!='undefined'){
			$(this).append('<img class=linkicon src="/power/cli'+$(this).attr("icon")+'.png" height="13" width="50" border="0" style="margin-left:-60; margin-right:10; margin-bottom:10;" />');
		} else {
			$(this).append('<img class=linkicon src="/power/cli.png" height="13" width="50" border="0" style="margin-left:-60; margin-right:10; margin-bottom:10;" />');
		}
		$(this).mouseover(function(){
			$(this).css("filter", "alpha(opacity=70)");
			$(this).css("-moz-opacity", "0.70");
			$(this).css("opacity", "0.70");
		});
		$(this).mouseout(function(){
			$(this).css("filter", "");
			$(this).css("-moz-opacity", "");
			$(this).css("opacity", "");
		});
	});
	$("a.linktext").append('<img class=linkicon src="/power/arrow_medium_upper_right.png" height="12" width="12" border="0" style="margin-bottom: -2" />');
	$("a.linktext").wrap("<nobr></nobr>");

	$("img").each(function(){
		$(this).fullsize();
	});
});
