/*  ================================================================================
 *
 * popup
 *
================================================================================  */


//width520 windowopen
	function w550_open(set_url)
		{window.open(set_url,"pop1","scrollbars=yes,resizable=yes,width=555,height=650");}
		
//width535 windowopen
	function rnk_open(set_url)
		{window.open(set_url,"pop1","scrollbars=yes,resizable=yes,width=570,height=650");}
		
//width440 Movie windowopen
	function mov_open(set_url)
		{window.open(set_url,"mov","scrollbars=no,resizable=no,width=550,height=550");}
		
//width440 Movie windowopen
	function iv_open(set_url)
		{window.open(set_url,"mov","scrollbars=no,resizable=no,width=440,height=400");}
		
		
//width550 Enqete windowopen
	function enq_open(set_url)
		{window.open(set_url,"enq","scrollbars=yes,resizable=yes,width=555,height=650");}
		
		
//width760 AccessMap windowopen
	function map_open(set_url)
		{window.open(set_url,"map","scrollbars=yes,resizable=yes,width=760,height=650");}
		



/*  ================================================================================
 *
 * smartRollover
 *
================================================================================  */

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);
}


/*  ================================================================================
 *
 * smoothRollOver
 *
================================================================================  */

var rollOverInit = function(){
	
	var smoothItem = $(".smoothRo a span");

	var mouseOverFunc = function(){
		smoothItem.mouseover(function(){
				$(this).fadeTo("fast", 0);
		});
	}();
	var mouseOutFunc = function(){
		smoothItem.mouseout(function(){
				$(this).fadeTo("fast", 1);
		});
	}();

};
$(function(){
		 rollOverInit();
});


/*  ================================================================================
 *
 * iepngfix
 *
================================================================================  */
// IE5.5+ PNG Alpha Fix v2.0 Alpha: Background Tiling Support

// (c) 2008-2009 Angus Turnbull http://www.twinhelix.com



// This is licensed under the GNU LGPL, version 2.1 or later.

// For details, see: http://creativecommons.org/licenses/LGPL/2.1/



var IEPNGFix = window.IEPNGFix || {};



IEPNGFix.tileBG = function(elm, pngSrc, ready) {

	// Params: A reference to a DOM element, the PNG src file pathname, and a

	// hidden "ready-to-run" passed when called back after image preloading.



	var data = this.data[elm.uniqueID],

		elmW = Math.max(elm.clientWidth, elm.scrollWidth),

		elmH = Math.max(elm.clientHeight, elm.scrollHeight),

		bgX = elm.currentStyle.backgroundPositionX,

		bgY = elm.currentStyle.backgroundPositionY,

		bgR = elm.currentStyle.backgroundRepeat;



	// Cache of DIVs created per element, and image preloader/data.

	if (!data.tiles) {

		data.tiles = {

			elm: elm,

			src: '',

			cache: [],

			img: new Image(),

			old: {}

		};

	}

	var tiles = data.tiles,

		pngW = tiles.img.width,

		pngH = tiles.img.height;



	if (pngSrc) {

		if (!ready && pngSrc != tiles.src) {

			// New image? Preload it with a callback to detect dimensions.

			tiles.img.onload = function() {

				this.onload = null;

				IEPNGFix.tileBG(elm, pngSrc, 1);

			};

			return tiles.img.src = pngSrc;

		}

	} else {

		// No image?

		if (tiles.src) ready = 1;

		pngW = pngH = 0;

	}

	tiles.src = pngSrc;



	if (!ready && elmW == tiles.old.w && elmH == tiles.old.h &&

		bgX == tiles.old.x && bgY == tiles.old.y && bgR == tiles.old.r) {

		return;

	}



	// Convert English and percentage positions to pixels.

	var pos = {

			top: '0%',

			left: '0%',

			center: '50%',

			bottom: '100%',

			right: '100%'

		},

		x,

		y,

		pc;

	x = pos[bgX] || bgX;

	y = pos[bgY] || bgY;

	if (pc = x.match(/(¥d+)%/)) {

		x = Math.round((elmW - pngW) * (parseInt(pc[1]) / 100));

	}

	if (pc = y.match(/(¥d+)%/)) {

		y = Math.round((elmH - pngH) * (parseInt(pc[1]) / 100));

	}

	x = parseInt(x);

	y = parseInt(y);



	// Handle backgroundRepeat.

	var repeatX = { 'repeat': 1, 'repeat-x': 1 }[bgR],

		repeatY = { 'repeat': 1, 'repeat-y': 1 }[bgR];

	if (repeatX) {

		x %= pngW;

		if (x > 0) x -= pngW;

	}

	if (repeatY) {

		y %= pngH;

		if (y > 0) y -= pngH;

	}



	// Go!

	this.hook.enabled = 0;

	if (!({ relative: 1, absolute: 1 }[elm.currentStyle.position])) {

		elm.style.position = 'relative';

	}

	var count = 0,

		xPos,

		maxX = repeatX ? elmW : x + 0.1,

		yPos,

		maxY = repeatY ? elmH : y + 0.1,

		d,

		s,

		isNew;

	if (pngW && pngH) {

		for (xPos = x; xPos < maxX; xPos += pngW) {

			for (yPos = y; yPos < maxY; yPos += pngH) {

				isNew = 0;

				if (!tiles.cache[count]) {

					tiles.cache[count] = document.createElement('div');

					isNew = 1;

				}

				var clipR = Math.max(0, xPos + pngW > elmW ? elmW - xPos : pngW),

					clipB = Math.max(0, yPos + pngH > elmH ? elmH - yPos : pngH);

				d = tiles.cache[count];

				s = d.style;

				s.behavior = 'none';

				s.left = (xPos - parseInt(elm.currentStyle.paddingLeft)) + 'px';

				s.top = yPos + 'px';

				s.width = clipR + 'px';

				s.height = clipB + 'px';

				s.clip = 'rect(' +

					(yPos < 0 ? 0 - yPos : 0) + 'px,' +

					clipR + 'px,' +

					clipB + 'px,' +

					(xPos < 0 ? 0 - xPos : 0) + 'px)';

				s.display = 'block';

				if (isNew) {

					s.position = 'absolute';

					s.zIndex = -999;

					if (elm.firstChild) {

						elm.insertBefore(d, elm.firstChild);

					} else {

						elm.appendChild(d);

					}

				}

				this.fix(d, pngSrc, 0);

				count++;

			}

		}

	}

	while (count < tiles.cache.length) {

		this.fix(tiles.cache[count], '', 0);

		tiles.cache[count++].style.display = 'none';

	}



	this.hook.enabled = 1;



	// Cache so updates are infrequent.

	tiles.old = {

		w: elmW,

		h: elmH,

		x: bgX,

		y: bgY,

		r: bgR

	};

};





IEPNGFix.update = function() {

	// Update all PNG backgrounds.

	for (var i in IEPNGFix.data) {

		var t = IEPNGFix.data[i].tiles;

		if (t && t.elm && t.src) {

			IEPNGFix.tileBG(t.elm, t.src);

		}

	}

};

IEPNGFix.update.timer = 0;



if (window.attachEvent && !window.opera) {

	window.attachEvent('onresize', function() {

		clearTimeout(IEPNGFix.update.timer);

		IEPNGFix.update.timer = setTimeout(IEPNGFix.update, 100);

	});

}



/*  ================================================================================
 *
 *  jQuery Page Scroller -version 3.0.8
 *  http://coliss.com/articles/build-websites/operation/javascript/296.html
 *  (c)2011 coliss.com
 *
 *  この作品は、クリエイティブ・コモンズの表示 2.1 日本ライセンスの下で
 *  ライセンスされています。
 *  この使用許諾条件を見るには、http://creativecommons.org/licenses/by-sa/2.1/jp/を
 *  チェックするか、クリエイティブ･コモンズに郵便にてお問い合わせください。
 *  住所は：559 Nathan Abbott Way, Stanford, California 94305, USA です。
 *
================================================================================  */


/*  ================================================================================
TOC
============================================================
Ooption
Page Scroller
============================================================
this script requires jQuery 1.3-1.4.4(http://jquery.com/)
================================================================================  */


/*  ================================================================================
Ooption
================================================================================  */
var virtualTopId = "top",
    virtualTop,
    adjTraverser,
    adjPosition,
    callExternal = "pSc",
    delayExternal= 200,
    adjSpeed = 1;

/* option example
======================================================================  */
//  virtualTop = 0;    // virtual top's left position = 0
//  virtualTop = 1;    // virtual top's left position = vertical movement
//  adjTraverser = 0;  // left position = 0
//  adjTraverser = 1;  // horizontal movement.
//  adjPosition = -26;

/*  ================================================================================
Page Scroller
================================================================================  */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('(c($){7 C=$.H.C,w=$.H.w,F=$.H.F,A=$.H.A;$.H.1P({w:c(){3(!6[0])1H();3(6[0]==h)b 1K.1O||$.1D&&5.z.1x||5.f.1x;3(6[0]==5)b((5.z&&5.1G=="1s")?5.z.1u:5.f.1u);b w.1e(6,1f)},C:c(){3(!6[0])1H();3(6[0]==h)b 1K.1N||$.1D&&5.z.1F||5.f.1F;3(6[0]==5)b((5.z&&5.1G=="1s")?5.z.1d:5.f.1d);b C.1e(6,1f)},F:c(){3(!6[0])b 17;7 j=5.M?5.M(6[0].u):5.1h(6[0].u);7 k=1o 1r();k.x=j.19;1q((j=j.1j)!=V){k.x+=j.19}3((k.x*0)==0)b(k.x);g b(6[0].u)},A:c(){3(!6[0])b 17;7 j=5.M?5.M(6[0].u):5.1h(6[0].u);7 k=1o 1r();k.y=j.1m;1q((j=j.1j)!=V){k.y+=j.1m}3((k.y*0)==0)b(k.y);g b(6[0].u)}})})(1Q);$(c(){$(\'a[q^="#"], 20[q^="#"]\').22(\'.1k a[q^="#"], a[q^="#"].1k\').1a(c(){7 i=Q.21+Q.1Z;7 I=((6.q).25(0,(((6.q).13)-((6.15).13)))).R((6.q).1C("//")+2);3(i.G("?")!=-1)Y=i.R(0,(i.G("?")));g Y=i;3(I.G("?")!=-1)X=I.R(0,(I.G("?")));g X=I;3(X==Y){d.12((6.15).23(1));b 1T}});$("f").1a(c(){d.L()})});6.r=V;7 d={14:c(B){3(B=="x")b(($(5).w())-($(h).w()));g 3(B=="y")b(($(5).C())-($(h).C()))},W:c(B){3(B=="x")b(h.18||5.f.v||5.f.N.v);g 3(B=="y")b(h.1S||5.f.1c||5.f.N.1c)},P:c(l,m,D,p,o){7 r;3(r)J(r);7 1A=16*1X;7 S=d.W(\'x\');7 O=d.W(\'y\');3(!l||l<0)l=0;3(!m||m<0)m=0;3(!D)D=$.1E.1Y?10:$.1E.1W?8:9;3(!p)p=0+S;3(!o)o=0+O;p+=(l-S)/D;3(p<0)p=0;o+=(m-O)/D;3(o<0)o=0;7 U=E.1J(p);7 T=E.1J(o);h.1U(U,T);3((E.1I(E.1v(S-l))<1)&&(E.1I(E.1v(O-m))<1)){J(6.r);h.1i(l,m)}g 3((U!=l)||(T!=m))6.r=1n("d.P("+l+","+m+","+D+","+p+","+o+")",1A);g J(6.r)},L:c(){J(6.r)},24:c(e){d.L()},12:c(n){d.L();7 s,t;3(!!n){3(n==1M){s=(K==0)?0:(K==1)?h.18||5.f.v||5.f.N.v:$(\'#\'+n).F();t=((K==0)||(K==1))?0:$(\'#\'+n).A()}g{s=(1y==0)?0:(1y==1)?($(\'#\'+n).F()):h.18||5.f.v||5.f.N.v;t=1B?($(\'#\'+n).A())+1B:($(\'#\'+n).A())}7 11=d.14(\'x\');7 Z=d.14(\'y\');3(((s*0)==0)||((t*0)==0)){7 1t=(s<1)?0:(s>11)?11:s;7 1w=(t<1)?0:(t>Z)?Z:t;d.P(1t,1w)}g Q.15=n}g d.P(0,0)},1z:c(){7 i=Q.q;7 1l=i.1C("#",0);7 1b=i.1V(1g);3(!!1b){1p=i.R(i.G("?"+1g)+4,i.13);1R=1n("d.12(1p)",1L)}3(!1l)h.1i(0,0);g b 17}};$(d.1z);',62,130,'|||if||document|this|var||||return|function|coliss||body|else|window|usrUrl|obj|tagCoords|toX|toY|idName|frY|frX|href|pageScrollTimer|anchorX|anchorY|id|scrollLeft|width|||documentElement|top|type|height|frms|Math|left|lastIndexOf|fn|anchorPath|clearTimeout|virtualTop|stopScroll|getElementById|parentNode|actY|pageScroll|location|slice|actX|posY|posX|null|getWindowOffset|anchorPathOmitQ|usrUrlOmitQ|dMaxY||dMaxX|toAnchor|length|getScrollRange|hash||true|pageXOffset|offsetLeft|click|checkPageScroller|scrollTop|scrollHeight|apply|arguments|callExternal|all|scroll|offsetParent|nopscr|checkAnchor|offsetTop|setTimeout|new|anchorId|while|Object|CSS1Compat|setX|scrollWidth|abs|setY|clientWidth|adjTraverser|initPageScroller|spd|adjPosition|indexOf|boxModel|browser|clientHeight|compatMode|error|floor|ceil|self|delayExternal|virtualTopId|innerHeight|innerWidth|extend|jQuery|timerID|pageYOffset|false|scrollTo|match|opera|adjSpeed|mozilla|pathname|area|hostname|not|substr|cancelScroll|substring'.split('|'),0,{}));
