$(document).ready(function(){
	$('a img').hover(function(){
		$(this).attr('src', $(this).attr('src').replace('_off', '_on'));
	}, function(){
		if (!$(this).hasClass('currentPage')) {
			$(this).attr('src', $(this).attr('src').replace('_on', '_off'));
		}
	});
	$("#PATH dl").clone().prependTo("#MOVE");
	$("#MAIN h2").wrap("<div class='headline'></div>");
	$("#MAIN h2").before("<div class='headtop'></div>");
	$(".box-jv").wrap("<div class='jv-wrap'></div>");
	$(".box-desk").wrap("<div class='desk-wrap'></div>");
	$(".box-blue").wrap("<div class='blue-wrap'></div>");
	$(".box-blue").before("<div class='blue-top'></div>");
	$(".box-green").wrap("<div class='green-wrap'></div>");
	$(".box-green").before("<div class='green-top'></div>");
	$(".box-yellow").wrap("<div class='yellow-wrap'></div>");
	$(".box-yellow").before("<div class='yellow-top'></div>");
	$(".box-white").wrap("<div class='white-wrap'></div>");
	$(".box-white").before("<div class='white-top'></div>");
	$("#CONTENT .half .column:nth-child(2n)").css("margin-right","0px");
	$("#CONTENT .trio .column:nth-child(3n)").css("margin-right","0px");
	$(".box :first-child").css("margin-top","0px");
	$(".box :last-child").css("margin-bottom","0px");
	$(".flow li:last-child").css("background-image","none");
	$(".tab li:first-child a").css("border-left","solid 1px #cccccc");
	$(".column > :header").css("margin-top","1em");
	$("a.pdf, a.xls, a.popup, a.link").attr("target","_blank");
	$("a.pdf:has(img), a.xls:has(img), a.popup:has(img), a.link:has(img)").addClass("noicon");
	$(".switch + div").css("display","none");
	$(".switch").hover(
		function(){
			$(this).addClass("switch-hover");
		},
		function(){
			$(this).removeClass("switch-hover");
		}
	);
	$(".switch").click(function(){
		if ($(this).next("div").is(":hidden")) {
			$(this).next("div").show();
			$(this).addClass("switch-show");
		} else {
			$(this).next("div").hide();
			$(this).removeClass("switch-show");
		}
	});
	$(".question + .answer").css("display","none");
	$(".question").hover(
		function(){
			$(this).addClass("question-hover");
		},
		function(){
			$(this).removeClass("question-hover");
		}
	);
	$(".question").click(function(){
		if ($(this).next(".answer").is(":hidden")) {
			$(".question").removeClass("question-show");
			$(".answer").slideUp();
			$(this).addClass("question-show");
			$(this).next(".answer").slideDown("fast");
		} else {
			$(this).next(".answer").slideUp();
			$(this).removeClass("question-show");
		}
	});
});
/** ================================================================================
 * jGlycy
 * (c) 2008 Semooh (http://semooh.jp/)
**/
(function($, prefix, jg){
	$[jg] = $({});
	$[jg].extend({
		invoke: function(nodes) {
			nodes.each(function(){
				var node = this;
				var funcs = $(node).attr(prefix).split(',');
				$(funcs).each(function(){
					var arg = $(node).attr(prefix + ":" + this);
					if(arg) {
						eval('var options = {' + arg + '}');
					}
					else {
						var options = {};
					}
					if($.fn[this]) {
						$(node)[this](options);
					}
				});
			});
		},
		invokeElement: function(node) {
			$[jg].invoke($("*[" + prefix + "]", node));
		}
	});
	$(document).ready(function(){
		$[jg].invokeElement(document);
	});
})(jQuery, "jg", "jg");
/**
 * jquery.popupt
 * (c) 2008 Semooh (http://semooh.jp/)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
**/
(function($){
	$.fn.extend({
		imghover: function(opt){
			return this.each(function() {
				opt = $.extend({
					prefix: '',
					suffix: '_over',
					src: '',
					btnOnly: true,
					fade: false,
					fadeSpeed: 500
				}, opt || {});
				var node = $(this);
				if(!node.is('img')&&!node.is(':image')){
					var sel = 'img,:image';
					if (opt.btnOnly) sel = 'a '+sel;
					node.find(sel).imghover(opt);
					return;
				}
				var orgImg = node.attr('src');
				var hoverImg;
				if(opt.src){
					hoverImg = opt.src;
				}
				else{
					hoverImg = orgImg;
					if(opt.prefix){
						var pos = hoverImg.lastIndexOf('/');
						if(pos>0){
							hoverImg = hoverImg.substr(0,pos-1)+opt.prefix+hoverImg.substr(pos-1);
						}
						else{
							hoverImg = opt.prefix+hoverImg;
						}
					}
					if(opt.suffix){
						var pos = hoverImg.lastIndexOf('.');
						if(pos>0){
							hoverImg = hoverImg.substr(0,pos)+opt.suffix+hoverImg.substr(pos);
						}
						else{
							hoverImg = hoverImg+opt.suffix;
						}
					}
				}
				if(opt.fade){
					var offset = node.offset();
					var hover = node.clone(true);
					hover.attr('src', hoverImg);
					hover.css({
						position: 'absolute',
						left: offset.left,
						top: offset.top,
						zIndex: 1000
					}).hide().insertAfter(node);
					node.mouseover(
						function(){
							var offset=node.offset();
							hover.css({left: offset.left, top: offset.top});
							hover.fadeIn(opt.fadeSpeed);
							node.fadeOut(opt.fadeSpeed,function(){node.show()});
						}
					);
					hover.mouseout(
						function(){
							node.fadeIn(opt.fadeSpeed);
							hover.fadeOut(opt.fadeSpeed);
						}
					);
				}
				else{
					node.hover(
						function(){node.attr('src', hoverImg)},
						function(){node.attr('src', orgImg)}
					);
				}
			});
		}
	});
})(jQuery);
/** ================================================================================
 * jQuery Page Scroller -version 3.0.8
 * http://coliss.com/articles/build-websites/operation/javascript/296.html
 * (c) 2011 coliss.com
**/
var virtualTopId = "TOP",
    virtualTop,
    adjTraverser,
    adjPosition,
    callExternal = "pSc",
    delayExternal= 200,
    adjSpeed = 0.2;
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,{}));

