//jQuery.noConflict();
if(window.location.href.indexOf("wavemap") == -1){
	function imgsize(){
		if(jQuery(".img-unit").size()>0){
		var img = jQuery(".img-unit img").length;
		}
		if(img > 0){
			for (i=0;i<img;i++){	
					var imgbox = jQuery(".img-unit img:eq("+i+")").width()+4;
					jQuery(".img-unit:eq("+i+")").width(imgbox);
				}
			}
			
		}
		

try{
	window.addEventListener("load",imgsize,false);
}catch(e){
	window.attachEvent("onload",imgsize);
}


jQuery(function() {  
jQuery('a[href*=#]').click(
function() {  
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') &&　location.hostname == this.hostname) {  
var target = jQuery(this.hash);  
target = target.length && target;  
if (target.length) {  
var sclpos = 30;  
var scldurat = 1200;  
var targetOffset = target.offset().top - sclpos;  
jQuery('html,body').animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});  
return false;  
}  
}  
});
});
jQuery(function(){
		   jQuery(".contents-table td:empty").append("　");	   
		   })
}
function winopen(href){
	var brWidth = window.screen.width;
	var brHeight = window.screen.height;
	var winWidth = 500
	var winHeight = 350
	var	w = window.open(
					href,
					"win","left="+(brWidth-winWidth)/2+",top="+(brHeight-winHeight)/2+",width="+winWidth+",	height="+winHeight+",status=0,scrollbars=0,menubar=0,location=0,toolbar=0,resizable=0")
	w.focus()
	}
function wclose(){
	window.close();
	}
function videoWinOpen(href){
	var brWidth = window.screen.width;
	var brHeight = window.screen.height;
	var winWidth = 300
	var winHeight = 250
	var	w = window.open(
					"http://digisuppo.jp"+href,
					"win","left="+(brWidth-winWidth)/2+",top="+(brHeight-winHeight)/2+",width="+winWidth+",	height="+winHeight+",status=0,scrollbars=0,menubar=0,location=0,toolbar=0,resizable=0")
	w.focus()
}
/*jQuery(function(){
		if(jQuery("#form_address").val() == ""){
						jQuery("#form_address").val("※丁目・番地などをいれてください。").css("color","#999999").one("focus",function(){
					jQuery(this).val("").css("color","#121212")
		}).blur(function(){
			if(jQuery(this).val()==""){
            jQuery(this).val("※丁目・番地などをいれてください。").css("color","#999999").one("focus",function(){
                jQuery(this).val("").css("color","#121212");
            })
        }

			})
	}
})*/

