/*Icon ウィンク*/
$(document).ready(
	function(){
/*	$("").each(function(){
		$(this)	.css({
			opacity: 0.5,
			filter: "alpha(opacity=50)"
		}).hover(function(){
			$(this).css({
				opacity: 0.2,
				filter: "alpha(opacity=20)"
			});
			$(this).fadeTo("slow", 1.0);
		},function(){
			$(this).css({
				opacity: 0.5,
				filter: "alpha(opacity=50)"
			});
			$(this).fadeTo("slow", 0.5);
		})
	});*/
	$(".banner img, #f-arrow img, .plmap img, .picture img").each(function(){
		$(this)	.css({
				opacity: 1.0,
				filter: "alpha(opacity=100)"
			}).hover(function(){
			$(this).css({
				opacity: 0.2,
				filter: "alpha(opacity=20)"
			});
			$(this).fadeTo("slow", 1.0);
		},function(){
			$(this).css({
				opacity: 1.0,
				filter: "alpha(opacity=100)"
			});
		})
	});
});

function scr_Up() {
   if(window.pageYOffset){
      scr_top = window.pageYOffset;
   } else if (document.all && document.getElementById && (document.compatMode=='CSS1Compat')) {
      scr_top = document.documentElement.scrollTop;
   } else {
      scr_top = document.body.scrollTop;
   }
   if(scr_top){
      scr_now = Math.ceil(scr_top*.15);
      scrollBy(0,-scr_now);
      if (scr_top-scr_now) setTimeout("scr_Up()",0);
   }
}
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}
