adjTraverser = 1;
adjPosition = -91;

$(function(){

	$('#header').exFixed(); // for IE6
	//$('#footer').exFixed(); // for IE6

	$(".sub").hide();
	
	$(".tab1").hover(function(){
		$(".sub1:not(:animated)").slideDown("normal"); 
		$(".sub2:not(:animated)").slideUp("fast");
		$(".sub3:not(:animated)").slideUp("fast");
		},function(){
		$(".sub1:not(:animated)").slideUp("fast");
		$(".sub2:not(:animated)").slideUp("fast");
		$(".sub3:not(:animated)").slideUp("fast");
	});
	
	$(".tab2").hover(function(){
		$(".sub2:not(:animated)").slideDown("normal"); 
		$(".sub1:not(:animated)").slideUp("fast");
		$(".sub3:not(:animated)").slideUp("fast");
		},function(){
		$(".sub1:not(:animated)").slideUp("fast");
		$(".sub2:not(:animated)").slideUp("fast");
		$(".sub3:not(:animated)").slideUp("fast");
	});
	
	$(".tab3").hover(function(){
		$(".sub3:not(:animated)").slideDown("normal"); 
		$(".sub1:not(:animated)").slideUp("fast");
		$(".sub2:not(:animated)").slideUp("fast");
		},function(){
		$(".sub1:not(:animated)").slideUp("fast");
		$(".sub2:not(:animated)").slideUp("fast");
		$(".sub3:not(:animated)").slideUp("fast");
	});

	//-----[画像リンクフェード]
	$(document).ready(
		function(){
			$("a img").hover(function(){
			$(this).fadeTo(100, 0.3);
		},function(){
			$(this).fadeTo(200, 1.0);
		});
	});
	
	$(document).ready(
		function(){
			$("#slide_navi img").hover(function(){
			$(this).fadeTo(100, 0.3);
		},function(){
			$(this).fadeTo(200, 1.0);
		});
	});		
						
});

function m_win(url,windowname,width,height) {
	var features="location=no, menubar=no, status=yes, scrollbars=yes, resizable=yes, toolbar=no";
	if (width) {
		if (window.screen.width > width)
		features+=", left="+(window.screen.width-width)/2;
	else width=window.screen.width;
		features+=", width="+width;
	}
	if (height) {
		if (window.screen.height > height)
		features+=", top="+(window.screen.height-height)/2;
	else height=window.screen.height;
		features+=", height="+height;
	}
	window.open(url,windowname,features);
}

try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}


