//$(document).ready(function() {
// $("body").ScrollToAnchors(750, 'easein');
//});

/*
function GetDivWidth(lay){
	if (Navi==1) {
		return lay.offsetWidth;
	}
	if (Navi==2) return lay.clip.width;
	if (Navi==3) {
		lay.style.pixelWidth=lay.offsetWidth;
		return lay.offsetWidth;
	}
	if (Navi==4) {
		return lay.offsetWidth;
	}
}	
*/
var isIE = false;
var ua = navigator.userAgent;
if(ua.indexOf("MSIE") > 0) {
	isIE = true;
	}
//alert(isIE);

$(function(){


		$('#trigger_quake a').click(function(){
			$('#quake').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#retuner_q a').click(function(){
			$('#cardinal').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#trigger_wind a').click(function(){
			$('#wind').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#retuner_w a').click(function(){
			$('#cardinal').ScrollTo(1000, 'easeout');
			return false;
			});


		$('#trigger_d a').click(function(){
			$('#dura').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#retuner_d a').click(function(){
			$('#cardinal').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#trigger_f a').click(function(){
			$('#fire').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#retuner_f a').click(function(){
			$('#cardinal').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#trigger_s a').click(function(){
			$('#sound').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#retuner_s a').click(function(){
			$('#cardinal').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#trigger_e a').click(function(){
			$('#energy').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#retuner_e a').click(function(){
			$('#cardinal').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#trigger_de a').click(function(){
			$('#designed').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#retuner_de a').click(function(){
			$('#cardinal').ScrollTo(1000, 'easeout');
			return false;
			});
/*
		$('#trigger_v a').click(function(){
			$('#variety').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#retuner_v a').click(function(){
			$('#cardinal').ScrollTo(1000, 'easeout');
			return false;
			});
*/


		$('#pager_p_q a').click(function(){
			$('#cardinal').ScrollTo(1000, 'easeout');
			return false;
			});
		$('#pager_n_q a').click(function(){
			$('#wind').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#pager_p_w a').click(function(){
			$('#quake').ScrollTo(1000, 'easeout');
			return false;
			});
		$('#pager_n_w a').click(function(){
			$('#dura').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#pager_p_d a').click(function(){
			$('#wind').ScrollTo(1000, 'easeout');
			return false;
			});
		$('#pager_n_d a').click(function(){
			$('#fire').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#pager_p_f a').click(function(){
			$('#dura').ScrollTo(1000, 'easeout');
			return false;
			});
		$('#pager_n_f a').click(function(){
			$('#sound').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#pager_p_s a').click(function(){
			$('#fire').ScrollTo(1000, 'easeout');
			return false;
			});
		$('#pager_n_s a').click(function(){
			$('#energy').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#pager_p_e a').click(function(){
			$('#sound').ScrollTo(1000, 'easeout');
			return false;
			});
		$('#pager_n_e a').click(function(){
			$('#designed').ScrollTo(1000, 'easeout');
			return false;
			});

		$('#pager_p_de a').click(function(){
			$('#energy').ScrollTo(1000, 'easeout');
			return false;
			});
		$('#pager_n_de a').click(function(){
			$('#variety').ScrollTo(1000, 'easeout');
			return false;
			});

/*
		$('#pager_p_v a').click(function(){
			$('#designed').ScrollTo(1000, 'easeout');
			return false;
			});
*/

	})

onload = function() {


	if(isIE) {

		//alert("ie");

		d01 = document.getElementById("dt01");
		b01 = document.getElementById("dtb01");
		b01.style.pixelHeight=d01.offsetHeight;
		if(d01.offsetHeight < 300) { b01.style.pixelHeight=300; }


		d02 = document.getElementById("dt02");
		b02 = document.getElementById("dtb02");
		b02.style.pixelHeight=d02.offsetHeight;
		if(d02.offsetHeight < 300) { b02.style.pixelHeight=300; }

		d03 = document.getElementById("dt03");
		b03 = document.getElementById("dtb03");
		b03.style.pixelHeight=d03.offsetHeight;
		if(d03.offsetHeight < 300) { b03.style.pixelHeight=300; }

		d04 = document.getElementById("dt04");
		b04 = document.getElementById("dtb04");
		b04.style.pixelHeight=d04.offsetHeight;
		if(d04.offsetHeight < 300) { b04.style.pixelHeight=300; }

		d05 = document.getElementById("dt05");
		b05 = document.getElementById("dtb05");
		b05.style.pixelHeight=d05.offsetHeight;
		if(d05.offsetHeight < 300) { b05.style.pixelHeight=300; }

		d06 = document.getElementById("dt06");
		b06 = document.getElementById("dtb06");
		b06.style.pixelHeight=d06.offsetHeight;
		if(d06.offsetHeight < 300) { b06.style.pixelHeight=300; }

		d07 = document.getElementById("dt07");
		b07 = document.getElementById("dtb07");
		b07.style.pixelHeight=d07.offsetHeight;
		if(d07.offsetHeight < 300) { b07.style.pixelHeight=300; }

/*
		d08 = document.getElementById("dt08");
		b08 = document.getElementById("dtb08");
		b08.style.pixelHeight=d08.offsetHeight;
		if(d08.offsetHeight < 300) { b08.style.pixelHeight=300; }
*/
		}

	}

isIe = (document.all) ? 1 : 0;
isNS6 = navigator.appVersion.charAt(0) == 5 && navigator.appName.charAt(0) == "N";




