if(window.location.href.indexOf("wavemap") == -1 ){
	function imgsize(){
		if($(".img-unit").size()>0){
		var img = $(".img-unit img").length;
		}
		if(img > 0){
			for (i=0;i<img;i++){	
					var imgbox = $(".img-unit img:eq("+i+")").width()+4;
					$(".img-unit:eq("+i+")").width(imgbox);
				}
			}
			
		}
		

try{
	window.addEventListener("load",imgsize,false);
}catch(e){
	window.attachEvent("onload",imgsize);
}


$(function() {  
$('a[href*=#]').click(
function() {  
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') &&　location.hostname == this.hostname) {  
var target = $(this.hash);  
target = target.length && target;  
if (target.length) {  
var sclpos = 30;  
var scldurat = 1200;  
var targetOffset = target.offset().top - sclpos;  
$('html,body').animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});  
return false;  
}  
}  
});
});
}

function wclose(){
	window.close();
	}

