$(function(){

/*PHP初期設定
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
/*
 * エフェクト関数
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright 息 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright 息 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */

/*
 * 色関係のアクセス
 * jQuery Color Animations
 * Copyright 2007 John Resig
 * Released under the MIT and GPL licenses.
 */

(function(jQuery){

	// We override the animation for all of these color styles
	jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
		jQuery.fx.step[attr] = function(fx){
			if ( fx.state == 0 ) {
				fx.start = getColor( fx.elem, attr );
				fx.end = getRGB( fx.end );
			}

			fx.elem.style[attr] = "rgb(" + [
				Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
				Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
				Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
			].join(",") + ")";
		}
	});

	// Color Conversion functions from highlightFade
	// By Blair Mitchelmore
	// http://jquery.offput.ca/highlightFade/

	// Parse strings looking for color tuples [255,255,255]
	function getRGB(color) {
		var result;

		// Check if we're already dealing with an array of colors
		if ( color && color.constructor == Array && color.length == 3 )
			return color;

		// Look for rgb(num,num,num)
		if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
			return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];

		// Look for rgb(num%,num%,num%)
		if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
			return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];

		// Look for #a0b1c2
		if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
			return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];

		// Look for #fff
		if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
			return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];

		// Otherwise, we're most likely dealing with a named color
		return colors[jQuery.trim(color).toLowerCase()];
	}
	
	function getColor(elem, attr) {
		var color;

		do {
			color = jQuery.curCSS(elem, attr);

			// Keep going until we find an element that has color, or we hit the body
			if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
				break; 

			attr = "backgroundColor";
		} while ( elem = elem.parentNode );

		return getRGB(color);
	};
	
	// Some named colors to work with
	// From Interface by Stefan Petre
	// http://interface.eyecon.ro/

	var colors = {
		aqua:[0,255,255],
		azure:[240,255,255],
		beige:[245,245,220],
		black:[0,0,0],
		blue:[0,0,255],
		brown:[165,42,42],
		cyan:[0,255,255],
		darkblue:[0,0,139],
		darkcyan:[0,139,139],
		darkgrey:[169,169,169],
		darkgreen:[0,100,0],
		darkkhaki:[189,183,107],
		darkmagenta:[139,0,139],
		darkolivegreen:[85,107,47],
		darkorange:[255,140,0],
		darkorchid:[153,50,204],
		darkred:[139,0,0],
		darksalmon:[233,150,122],
		darkviolet:[148,0,211],
		fuchsia:[255,0,255],
		gold:[255,215,0],
		green:[0,128,0],
		indigo:[75,0,130],
		khaki:[240,230,140],
		lightblue:[173,216,230],
		lightcyan:[224,255,255],
		lightgreen:[144,238,144],
		lightgrey:[211,211,211],
		lightpink:[255,182,193],
		lightyellow:[255,255,224],
		lime:[0,255,0],
		magenta:[255,0,255],
		maroon:[128,0,0],
		navy:[0,0,128],
		olive:[128,128,0],
		orange:[255,165,0],
		pink:[255,192,203],
		purple:[128,0,128],
		violet:[128,0,128],
		red:[255,0,0],
		silver:[192,192,192],
		white:[255,255,255],
		yellow:[255,255,0]
	};
	
})(jQuery);


/*
 * 背景画像変更
 * jQuery Backstretch
 * Version 1.2.2
 * http://srobbin.com/jquery-plugins/jquery-backstretch/
 *
 * Add a dynamically-resized background image to the page
 *
 * Copyright (c) 2011 Scott Robbin (srobbin.com)
 * Dual licensed under the MIT and GPL licenses.
*/

(function($) {

    $.backstretch = function(src, options, callback) {
        var defaultSettings = {
            centeredX: true,         // Should we center the image on the X axis?
            centeredY: true,         // Should we center the image on the Y axis?
            speed: 0                 // fadeIn speed for background after image loads (e.g. "fast" or 500)
        },
        container = $("#backstretch"),
        settings = container.data("settings") || defaultSettings, // If this has been called once before, use the old settings as the default
        existingSettings = container.data('settings'),
        rootElement = ("onorientationchange" in window) ? $(document) : $(window), // hack to acccount for iOS position:fixed shortcomings
        imgRatio, bgImg, bgWidth, bgHeight, bgOffset, bgCSS;
                
        // Extend the settings with those the user has provided
        if(options && typeof options == "object") $.extend(settings, options);
    
        // Initialize
        $(document).ready(_init);
  
        // For chaining
        return this;
    
        function _init() {
            // Prepend image, wrapped in a DIV, with some positioning and zIndex voodoo
            if(src) {
                var img;
                
                // If this is the first time that backstretch is being called
                if(container.length == 0) {
                    container = $("<div />").attr("id", "backstretch")
                                            .css({left: 0, top: 0, position: "fixed", overflow: "hidden", zIndex: -999999, margin: 0, padding: 0, height: "100%", width: "100%"});
                } else {
                    // Prepare to delete any old images
                    container.find("img").addClass("deleteable");
                }
                
                img = $("<img />").css({position: "absolute", display: "none", margin: 0, padding: 0, border: "none", zIndex: -999999})
                                  .bind("load", function(e) {                                          
                                      var self = $(this),
                                          imgWidth, imgHeight;
                                          
                                      self.css({width: "auto", height: "auto"});
                                      imgWidth = this.width || $(e.target).width();
                                      imgHeight = this.height || $(e.target).height();
                                      imgRatio = imgWidth / imgHeight;

                                      _adjustBG(function() {
                                          self.fadeIn(settings.speed, function(){
                                              // Remove the old images, if necessary.
                                              container.find('.deleteable').remove();
                                              // Callback
                                              if(typeof callback == "function") callback();
                                          });
                                      });
                                      
                                  })
                                  .appendTo(container);
                 
                // Append the container to the body, if it's not already there
                if($("body #backstretch").length == 0) {
                    $("body").append(container);
                }
                
                // Attach the settings
                container.data("settings", settings);
                    
                img.attr("src", src); // Hack for IE img onload event
                // Adjust the background size when the window is resized or orientation has changed (iOS)
                $(window).resize(_adjustBG);
            }
        }
            
        function _adjustBG(fn) {
            try {
                bgCSS = {left: 0, top: 0}
                bgWidth = rootElement.width();
                bgHeight = bgWidth / imgRatio;
                
                // Make adjustments based on image ratio
                // Note: Offset code provided by Peter Baker (http://ptrbkr.com/). Thanks, Peter!
                if(bgHeight >= rootElement.height()) {
                    bgOffset = (bgHeight - rootElement.height()) /2;
                    if(settings.centeredY) $.extend(bgCSS, {top: "-" + bgOffset + "px"});
                } else {
                    bgHeight = rootElement.height();
                    bgWidth = bgHeight * imgRatio;
                    bgOffset = (bgWidth - rootElement.width()) / 2;
                    if(settings.centeredX) $.extend(bgCSS, {left: "-" + bgOffset + "px"});
                }

                $("#backstretch, #backstretch img:last").width( bgWidth ).height( bgHeight )
                                                        .filter("img").css(bgCSS);
            } catch(err) {
                // IE7 seems to trigger _adjustBG before the image is loaded.
                // This try/catch block is a hack to let it fail gracefully.
            }
      
            // Executed the passed in function, if necessary
            if (typeof fn == "function") fn();
        }
    };
  
})(jQuery);

function startupAnimation(){
	if(!$.browser.msie && !$.browser.version<8){
		$('body').animate({opacity:0},100,function(){
			$(this).animate({opacity:1},500);
		});
	}
}


function navControler(obj,lv){

	/*座標取得
	■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
	var here		= getCoordinate(obj);
	
	/*ページロード＆エフェクト
	■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
	//★★★ナビゲーションへのエフェクト
	scroll('top');
	$(obj).animate({color:'#68a'},200);
	$(obj).delay(200).animate({color:'#4682b4'},200);
	
	/*末端ディレクトリ判定
	■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
	var dir = 'index["directory"]';
	for(i=0;i<here.length;i++){
		dir += '['+here[i]['num']+']';
	}
	dir		= eval(dir);
	
	if(dir['body']==0){
		var current_receptor	= receptor;
		var determination		= 0;
	}
	else{
		var current_receptor	= eval('sub_receptor'+lv);
		var determ		= 1;
	}
	
	/*レセプターの未定義判定
	■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
	if(typeof current_receptor == "undefined"){
		err('表示するレセプターが定義されていません。');
	}
	else{
		navEffect(current_receptor,determination,here,dir);
	}
	
	/*ビフォアエフェクト
	■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
	function navEffect(rec,determ,here,dir){
	
		//★★★フェイドインエフェクト
		$(rec).fadeOut(200,function(){
		$('#pan_inside').fadeOut(function(){
		
			//ロード画像表示
			$(rec).parent().prepend(loading);
			
			//サブメニューが存在しない時ページロード
			if(determ==0){
				$(rec).load(here['end']['url'], function(){
					navEffect2(rec,determ);
				});
			}
			
			//サブメニューが存在する時メニューロード
			else{
				//サブメニューまでのパン屑番号取得
				var num			= makeNum(here);
				
				//var there		= getCoordinate($(rec).parent());
				
				//メニュー生成
				var insertMenu	= '<ul>';
				for(i=0;i<dir["body"];i++){
					insertMenu	+= '<li name="'+num+'_'+i+'" class="'+'n'+i+' '+here['parent']["float"]+'" title="'+dir[i]['name']+'">&nbsp;</li>';
				}
				insertMenu		+= '</ul>';
				
				//メニュー表示
				if($(rec).html(insertMenu)){
					navEffect2(rec,determ);
				}
			}
			
			/*アフターエフェクト
			■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
			function navEffect2(rec,determ){
				//★★★ロード画像へのエフェクト
				$('.loading').fadeOut(function(){
				
					//★★★レセプターへのエフェクト
					$(rec).fadeIn(1000);
					$('.loading').remove();
					
					//★★★ナビゲーションへのエフェクト
					$(obj).animate({color:'#366485'},1000);
					
					//各パラメータ取得
					var num			= makeNum(here);
					var title		= makeTitle(here,'off');
					var pan			= makePan(here,'off');
					
					//★★★パン屑リストへのエフェクト
					$('#pan_inside').html(pan).fadeIn();
					
					//ヘッダータイトルへのエフェクト(IEでバグ確認)
					//$('title').html(title);
					
					/*サブメニュークリック時エフェクト
					■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
					if(determ==0){}
					else{
						//再帰的処理
						$(rec+' ul li').click(function(){
							navControler(this,lv+1);
						});
					}
				});
			}
		});
		});
	}
}

function mailform(){
	$('.mailform .confirmation').live('click',function(){
		scroll('#cont');
		var p				= '<p>下記の内容でよろしいですか？よろしければ送信ボタンを押して下さい。</p>';
		var name			= $('input[name=name]').val();
		var kana			= $('input[name=kana]').val();
		var Pname			= $('input[name=Pname]').val();
		var Pkana			= $('input[name=Pkana]').val();
		var mail			= $('input[name=mail]').val();
		var requirements	= $('input[name=requirements]:checked').val();
		var text			= $('textarea[name=text]').val();
		
		//空欄チェック
		var err				= '';
		var flag			= '';
		var mailerr			= '';
		if(name==''){
			err += '「企業名またはご氏名」';
			flag = 'false';
		}
		if(kana==''){
			err += '「企業名またはご氏名(カナ)」';
			flag = 'false';
		}
		if(mail==''){
			err += '「メールアドレス」';
			flag = 'false';
		}
		if(typeof(requirements) == "undefined"){
			err += '「お問い合わせ概要」';
			flag = 'false';
		}
		if(text==''){
			err += '「お問い合わせ内容」';
			flag = 'false';
		}
		
		//メールアドレスチェック
		if(!mail.match(/.+@.+\..+/)){
			mailerr = 'メールアドレスを正しく記入して下さい。';
		}
		
		//エラー表示
		if(flag=='false'){
			alert(err+'を入力して下さい。');
		}
		else if(mailerr!=''){
			alert(mailerr);
		}
		else{
			var conf_text =
				'<div class="conf">'+p+'<table style="width:640px;">'+
				'<tr><th style="width:170px;">企業名またはご氏名</th><td>'+htmlEscape(name)+'</td></tr>'+
				'<tr><th>企業名またはご氏名(カナ)</th><td>'+htmlEscape(kana)+'</td></tr>'+
				'<tr><th>代表者名</th><td>'+htmlEscape(Pname)+'</td></tr>'+
				'<tr><th>代表者名(カナ)</th><td>'+htmlEscape(Pkana)+'</td></tr>'+
				'<tr><th>メールアドレス</th><td>'+htmlEscape(mail)+'</td></tr>'+
				'<tr><th>お問い合わせ概要</th><td>'+htmlEscape(requirements)+'</td></tr>'+
				'<tr><th>お問い合わせ内容</th><td>'+htmlEscape(text)+'</td></tr>'+
				'</table><div class="send button">送信</div><div class="return button">再入力</div></div>';
			
			$('.default').hide();
			$('.mailform').append(conf_text);
			
			/*確認画面
			■■■■■■■■■■■■■■■■■■■■■■*/
			$('.return').click(function(){
				scroll('#cont');
				$('.conf').remove();
				$('.default').show();
			});
			
			$('.send').click(function(){
				scroll('#cont');
				$('.conf').remove();
				$('.mailform').html('<div id="res" style="display:none;"></div><div class="sending"></div><div class="complete"></div>');
				$.post(
					"program/php.mailform/sendmail.php",
					{
						'name':name,
						'kana':kana,
						'Pname':Pname,
						'Pkana':Pkana,
						'mail':mail,
						'requirements':requirements,
						'text':text
					},
					function(data){
						$('#res').append(data);
						$('.sending').delay(2000).animate({height:'hide'},1000,'easeOutBounce',function(){
							$('#res').show();
						});
					}
				);
			});
		}
	});
}

/*HTMLエスケープ
----------------------------------------*/
function htmlEscape(s){
	if(typeof(s) == "undefined"){
		return '(未記入)';
	}
	else if(s == ''){
		return '(未記入)';
	}
	else{
		s=s.replace(/&/g,'&amp;');
		s=s.replace(/>/g,'&gt;');
		s=s.replace(/</g,'&lt;');
		return s;
	}
}


/*ナビゲーション番号生成(name版)
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
function makeNum(here){
	var num			= 'directory';
	
	for(i=0;i<here.length;i++){
		if(i==0){num += here[i]['num'];}
		else{num += '_'+here[i]['num'];}
	}
	return num;
}

/*ナビゲーション番号生成(配列版)
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
function makeNumArray(here,navFlag){
	var num			= new Array();
	
	//ナビゲーションの番号も挿入するかどうかの条件分岐
	navFlag = (navFlag=='on') ? 0:1;
	
	for(i=navFlag;i<here.length;i++){
		num[i]		= here[i]['num'];
	}
	return num;
}

/*パン屑リスト生成
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
function makePan(here,navFlag){
	var num			= makeNum(here);
	var pan			= '<div class="left"><a href="" title="TOPページへ">有限会社ステージ</a></div>';
		
	//ナビゲーションの番号も挿入するかどうかの条件分岐
	navFlag = (navFlag=='on') ? 0:1;
	
	for(i=navFlag;i<here.length;i++){
		pan			+= '<h'+(i+2)+' class="left navLink" name="'+num+'">'+here[i]['name']+'</h'+(i+2)+'>';
	}
	return pan;
}

/*タイトル生成
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
function makeTitle(here,navFlag){
	var title		= '有限会社ステージ';
	
	//ナビゲーションの番号も挿入するかどうかの条件分岐
	navFlag = (navFlag=='on') ? 0:1;
	
	for(i=navFlag;i<here.length;i++){
		title		+= ' - '+here[i]['name'];
	}
	return title;
}


function ieChecker(){
	if($.browser.msie && $.browser.version<8){
		var ieMsg=
			'<div id="ieMsg" style="font-size:15px;line-height:25px;font-weight:bold;background-color:#fff;border:3px solid #ddd;width:700px;height:270px;padding:20px;position:absolute;left:50%;top:50%;margin-left:-373px;margin-top:-158px;z-index:300;">'+
			'<div style="text-indent:1em;">あなたは旧式ブラウザをご利用中です。このウェブサイトを快適に閲覧するには最新のブラウザにアップグレードする事を強くお勧めします。</div>'+
			'<div style="text-indent:1em;">あなたのブラウザ情報：CCBot/1.0 (+http://www.commoncrawl.org/bot.html)</div>'+
			'<ul style="margin-left:2em;background-color:#f0f8ff;padding:10px 20px;">'+
			'<li><a style="color:#4682b4;" href="http://windows.microsoft.com/ja-JP/internet-explorer/products/ie/home" target="_blank">Microsoft / Internet Explorer 最新版</a></li>'+
			'<li><a style="color:#4682b4;" href="http://mozilla.jp/firefox/" target="_blank">Mozilla / Firefox 最新版</a></li>'+
			'<li><a style="color:#4682b4;" href="http://www.google.co.jp/chrome/intl/ja/landing_ff.html" target="_blank">Google / Google Chrome 最新版</a></li>'+
			'<li><a style="color:#4682b4;" href="http://www.apple.com/jp/safari/" target="_blank">Apple / Safari 最新版</a></li>'+
			'<li><a style="color:#4682b4;" href="http://jp.opera.com/" target="_blank">Opera Software / Opera 最新版</a></li>'+
			'</ul>'+
			'<button>閉じる</button>'+
			'</div>';
		$('body').prepend(ieMsg);
		$('#ieMsg').click(function(){$(this).animate({height:0,opacity:0},500,function(){$(this).hide();});});
		$('#ieMsg').mouseover(function(){$(this).css({backgroundColor:'#f5f5f5',borderColor:'#aaa'});});
		$('#ieMsg').mouseout(function(){$(this).css({backgroundColor:'#fff',borderColor:'#ddd'});});
		$('#ieMsg .nothanks').click(function(){$(this).hide();});
		$('#ieMsg ul li a').mouseover(function(){$(this).css('color','#6495ed');});
		$('#ieMsg ul li a').mouseout(function(){$(this).css('color','#4682b4');});
	}
}


/*メニュー座標取得
----------------------------------------*/
function getCoordinate(dom){
	//メニュー座標を取得
	var Coordinate = $(dom).attr('name').toString().replace('directory','').split('_');
	
	//hereに並列にデータを代入
	var here = new Array();
	var prev = index['directory'];
	for(i=0;i<Coordinate.length;i++){
		here[i]				= new Array();
		here[i]['name']		= prev[Coordinate[i]]['name'];
		here[i]['nameE']	= prev[Coordinate[i]]['nameE'];
		here[i]['id']		= prev[Coordinate[i]]['id'];
		here[i]['url']		= prev[Coordinate[i]]['url'];
		here[i]['num']		= Coordinate[i];
		prev				= prev[Coordinate[i]];
	}
	
	//ショートカット変数作成
	here['end']			= here[here.length-1];
	
	if(here.length==0){
	}
	else{
		here['parent']	= here[here.length-2];
	}
	
	return here;
}





//ページ内スクロール
function scroll(tar){
	//最上部へスクロールしたい時
	if(tar=='top'){ var position = 0; }
	
	//アンカーリンクへスクロールしたい時
	else{ var position = $(tar).offset().top; }
	
	//処理
	$('html,body').animate({ scrollTop: position }, 'fast');
	return false;
}


var index = {
		"initialization":{
			"key":{
				"name":"設定ファイル",
				"nameE":"英設定ファイル",
				"id":"ID",
				"type":"変数定数",
				"url":"URL",
				"body":"0",
				"head":"7"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"type":"type",
				"url":"url",
				"body":"0",
				"head":"7"
			},
			"0":{
				"name":"サイト変数",
				"nameE":"Variable",
				"id":"variable",
				"type":"variable",
				"url":"initialization/variable.ini",
				"body":"0",
				"num":"0",
				"head":"8"
			},
			"1":{
				"name":"レイアウト",
				"nameE":"Layout",
				"id":"layout",
				"type":"variable",
				"url":"initialization/layout.ini",
				"body":"0",
				"num":"1",
				"head":"8"
			},
			"body":"2",
			"head":"4"
		},
		"directory":{
			"key":{
				"name":"メニュー名",
				"nameE":"英メニュー名",
				"id":"ID",
				"active":"有効",
				"view":"表示(j/e/img/both)",
				"float":"フロート",
				"url":"URL",
				"body":"0",
				"head":"9"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"active":"active",
				"view":"view",
				"float":"float",
				"url":"url",
				"body":"0",
				"head":"9"
			},
			"0":{
				"name":"グローバルナビゲーション",
				"nameE":"Global Navigation",
				"id":"globnav",
				"active":"on",
				"view":"img",
				"float":"left",
				"url":"directory/globnav/",
				"0":{
					"name":"会社概要",
					"nameE":"Company Profile",
					"id":"profile",
					"url":"directory/globnav/profile.php",
					"body":"0",
					"num":"0",
					"head":"7"
				},
				"1":{
					"name":"各種清掃業務",
					"nameE":"Cleaning Services",
					"id":"cleaning",
					"url":"directory/globnav/cleaning.php",
					"body":"0",
					"num":"1",
					"head":"7"
				},
				"2":{
					"name":"ビルメンテナンス",
					"nameE":"Building Maintenance",
					"id":"building",
					"url":"directory/globnav/building.php",
					"body":"0",
					"num":"2",
					"head":"7"
				},
				"3":{
					"name":"リフォーム",
					"nameE":"Renovation",
					"id":"renovation",
					"url":"directory/globnav/renovation.php",
					"body":"0",
					"num":"3",
					"head":"7"
				},
				"4":{
					"name":"省エネエコ事業",
					"nameE":"Eco",
					"id":"eco",
					"url":"directory/globnav/eco.php",
					"body":"0",
					"num":"4",
					"head":"7"
				},
				"5":{
					"name":"お問い合わせ",
					"nameE":"Contact",
					"id":"contact",
					"url":"directory/globnav/contact.php",
					"body":"0",
					"num":"5",
					"head":"7"
				},
				"body":"6",
				"num":"0",
				"head":"10"
			},
			"1":{
				"name":"プライマリナビゲーション",
				"nameE":"Primary Navigation",
				"id":"primnav",
				"active":"on",
				"view":"j",
				"float":"left",
				"url":"directory/primnav/",
				"0":{
					"name":"アクセス",
					"nameE":"Access",
					"id":"access",
					"url":"directory/primnav/access.php",
					"body":"0",
					"num":"0",
					"head":"7"
				},
				"body":"1",
				"num":"1",
				"head":"10"
			},
			"body":"2",
			"head":"4"
		},
		"object":{
			"key":{
				"name":"オブジェクト名",
				"nameE":"英オブジェクト名",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"0":{
				"name":"タイトルテキスト",
				"nameE":"Title",
				"id":"title",
				"url":"object/title.php",
				"body":"0",
				"num":"0",
				"head":"7"
			},
			"1":{
				"name":"タイトルロゴ",
				"nameE":"Title Logo",
				"id":"logo",
				"url":"object/logo.php",
				"body":"0",
				"num":"1",
				"head":"7"
			},
			"2":{
				"name":"電話番号ロゴ",
				"nameE":"Telephone Logo",
				"id":"tel",
				"url":"object/tel.php",
				"body":"0",
				"num":"2",
				"head":"7"
			},
			"3":{
				"name":"お問い合わせボタン",
				"nameE":"Contact",
				"id":"tocontact",
				"url":"object/tocontact.php",
				"body":"0",
				"num":"3",
				"head":"7"
			},
			"4":{
				"name":"リロードボタン",
				"nameE":"Reload Button",
				"id":"reload",
				"url":"object/reload.php",
				"body":"0",
				"num":"4",
				"head":"7"
			},
			"5":{
				"name":"プライマリナビゲーション",
				"nameE":"Primary Navigation",
				"id":"primnav",
				"url":"object/primnav.php",
				"body":"0",
				"num":"5",
				"head":"7"
			},
			"6":{
				"name":"サブプライマリナビゲーション",
				"nameE":"Sub Primary Navigation",
				"id":"primsubnav",
				"url":"object/primsubnav.php",
				"body":"0",
				"num":"6",
				"head":"7"
			},
			"7":{
				"name":"グローバルナビゲーション",
				"nameE":"Global Navigation",
				"id":"globnav",
				"url":"object/globnav.php",
				"body":"0",
				"num":"7",
				"head":"7"
			},
			"8":{
				"name":"サブグローバルナビゲーション",
				"nameE":"Sub Global Navigation",
				"id":"globsubnav",
				"url":"object/globsubnav.php",
				"body":"0",
				"num":"8",
				"head":"7"
			},
			"9":{
				"name":"サイドナビゲーション",
				"nameE":"Side Navigation",
				"id":"sidenav",
				"url":"object/sidenav.php",
				"body":"0",
				"num":"9",
				"head":"7"
			},
			"10":{
				"name":"サブサイドナビゲーション",
				"nameE":"Sub Side Navigation",
				"id":"sidesubnav",
				"url":"object/sidesubnav.php",
				"body":"0",
				"num":"10",
				"head":"7"
			},
			"11":{
				"name":"サイトナビゲーション",
				"nameE":"Site Navigation",
				"id":"sitenav",
				"url":"object/sitenav.php",
				"body":"0",
				"num":"11",
				"head":"7"
			},
			"12":{
				"name":"メインビジュアル",
				"nameE":"Main Visual",
				"id":"mainvis",
				"url":"object/mainvis.php",
				"body":"0",
				"num":"12",
				"head":"7"
			},
			"13":{
				"name":"メインコンテンツ",
				"nameE":"Main Contents",
				"id":"maincont",
				"url":"object/maincont.php",
				"body":"0",
				"num":"13",
				"head":"7"
			},
			"14":{
				"name":"パン屑リスト",
				"nameE":"Topic Path",
				"id":"pan",
				"url":"object/pan.php",
				"body":"0",
				"num":"14",
				"head":"7"
			},
			"15":{
				"name":"特集バナー・外部リンク",
				"nameE":"Bunners",
				"id":"bunner",
				"url":"object/bunner.php",
				"body":"0",
				"num":"15",
				"head":"7"
			},
			"16":{
				"name":"アイコン",
				"nameE":"Icons",
				"id":"icon",
				"url":"object/icon.php",
				"body":"0",
				"num":"16",
				"head":"7"
			},
			"17":{
				"name":"地図",
				"nameE":"Map",
				"id":"map",
				"url":"object/map.php",
				"body":"0",
				"num":"17",
				"head":"7"
			},
			"18":{
				"name":"ポケット地図",
				"nameE":"Pocket Map",
				"id":"pocketmap",
				"url":"object/pocketmap.php",
				"body":"0",
				"num":"18",
				"head":"7"
			},
			"19":{
				"name":"メールフォーム",
				"nameE":"Mail Form",
				"id":"mailform",
				"url":"object/mailform.php",
				"body":"0",
				"num":"19",
				"head":"7"
			},
			"20":{
				"name":"検索フォーム",
				"nameE":"Search Form",
				"id":"search",
				"url":"object/search.php",
				"body":"0",
				"num":"20",
				"head":"7"
			},
			"21":{
				"name":"ログインフォーム",
				"nameE":"Login Form",
				"id":"login",
				"url":"object/login.php",
				"body":"0",
				"num":"21",
				"head":"7"
			},
			"22":{
				"name":"コメントフォーム",
				"nameE":"Comment Form",
				"id":"comment",
				"url":"object/comment.php",
				"body":"0",
				"num":"22",
				"head":"7"
			},
			"23":{
				"name":"インフォメーション",
				"nameE":"Information",
				"id":"info",
				"url":"object/info.php",
				"body":"0",
				"num":"23",
				"head":"7"
			},
			"24":{
				"name":"サイトリンク",
				"nameE":"Links",
				"id":"link",
				"url":"object/link.php",
				"body":"0",
				"num":"24",
				"head":"7"
			},
			"25":{
				"name":"タブ",
				"nameE":"Tabs",
				"id":"tab",
				"url":"object/tab.php",
				"body":"0",
				"num":"25",
				"head":"7"
			},
			"26":{
				"name":"著作権表記",
				"nameE":"Copyright",
				"id":"copyright",
				"url":"object/copyright.php",
				"body":"0",
				"num":"26",
				"head":"7"
			},
			"body":"27",
			"head":"4"
		},
		"design":{
			"key":{
				"name":"スタイル名",
				"nameE":"英スタイル名",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"0":{
				"name":"初期化",
				"nameE":"Reset",
				"id":"reset",
				"url":"design/reset.php",
				"body":"0",
				"num":"0",
				"head":"7"
			},
			"1":{
				"name":"共有",
				"nameE":"Common",
				"id":"common",
				"url":"design/common.php",
				"body":"0",
				"num":"1",
				"head":"7"
			},
			"2":{
				"name":"レイアウト",
				"nameE":"Layout",
				"id":"layout",
				"url":"design/layout.php",
				"body":"0",
				"num":"2",
				"head":"7"
			},
			"3":{
				"name":"ホスト",
				"nameE":"Main",
				"id":"main",
				"url":"design/main.php",
				"body":"0",
				"num":"3",
				"head":"7"
			},
			"4":{
				"name":"パーツ",
				"nameE":"Parts",
				"id":"parts",
				"url":"design/parts.php",
				"body":"0",
				"num":"4",
				"head":"7"
			},
			"5":{
				"name":"カスタム",
				"nameE":"Custom",
				"id":"custom",
				"url":"design/custom.php",
				"body":"0",
				"num":"5",
				"head":"7"
			},
			"body":"6",
			"head":"4"
		},
		"effect":{
			"key":{
				"name":"スクリプト名",
				"nameE":"英スクリプト名",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"0":{
				"name":"プラグイン：エフェクト関数",
				"nameE":"Easing",
				"id":"jquery.easing",
				"url":"effect/jquery.easing.js",
				"body":"0",
				"num":"0",
				"head":"7"
			},
			"1":{
				"name":"プラグイン：色操作",
				"nameE":"Color",
				"id":"jquery.color",
				"url":"effect/jquery.color.js",
				"body":"0",
				"num":"1",
				"head":"7"
			},
			"2":{
				"name":"プラグイン：背景画像自動リサイズ",
				"nameE":"Backstretch",
				"id":"jquery.backstretch",
				"url":"effect/jquery.backstretch.js",
				"body":"0",
				"num":"2",
				"head":"7"
			},
			"3":{
				"name":"起動アニメーション",
				"nameE":"Start-up Animation",
				"id":"startupAnimation",
				"url":"effect/startupAnimation.php",
				"body":"0",
				"num":"3",
				"head":"7"
			},
			"4":{
				"name":"ナビゲーションコントローラー",
				"nameE":"Navigation Controler",
				"id":"navControler",
				"url":"effect/navControler.php",
				"body":"0",
				"num":"4",
				"head":"7"
			},
			"5":{
				"name":"メールフォーム",
				"nameE":"Mail Form",
				"id":"mailform",
				"url":"effect/mailform.php",
				"body":"0",
				"num":"5",
				"head":"7"
			},
			"6":{
				"name":"ツール",
				"nameE":"Tools",
				"id":"tool",
				"url":"effect/tool.php",
				"body":"0",
				"num":"6",
				"head":"7"
			},
			"7":{
				"name":"ＩＥチェッカー",
				"nameE":"Internet Explorer Checker",
				"id":"ieChecker",
				"url":"effect/ieChecker.php",
				"body":"0",
				"num":"7",
				"head":"7"
			},
			"8":{
				"name":"メニュー座標取得",
				"nameE":"Get Coordinate",
				"id":"getCoordinate",
				"url":"effect/getCoordinate.php",
				"body":"0",
				"num":"8",
				"head":"7"
			},
			"9":{
				"name":"背景色変化",
				"nameE":"Change Color",
				"id":"changeColor",
				"url":"effect/changeColor.php",
				"body":"0",
				"num":"9",
				"head":"7"
			},
			"10":{
				"name":"エフェクト",
				"nameE":"Effects",
				"id":"effect",
				"url":"effect/effect.php",
				"body":"0",
				"num":"10",
				"head":"7"
			},
			"11":{
				"name":"スクロール",
				"nameE":"Scroll",
				"id":"scroll",
				"url":"effect/scroll.php",
				"body":"0",
				"num":"11",
				"head":"7"
			},
			"body":"12",
			"head":"4"
		},
		"image":{
			"key":{
				"name":"画像カテゴリ名",
				"nameE":"英画像カテゴリ",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"body":"0",
			"head":"4"
		},
		"sound":{
			"key":{
				"name":"画像カテゴリ名",
				"nameE":"英画像カテゴリ",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"body":"0",
			"head":"4"
		},
		"program":{
			"key":{
				"name":"プログラム名",
				"nameE":"英プログラム名",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"0":{
				"name":"メールフォーム",
				"nameE":"Mailform",
				"id":"php.mailform",
				"url":"program/php.mailform/",
				"body":"0",
				"num":"0",
				"head":"7"
			},
			"1":{
				"name":"コメント投稿フォーム",
				"nameE":"Post Comment Form",
				"id":"php.commentform",
				"url":"program/php.commentform/",
				"body":"0",
				"num":"1",
				"head":"7"
			},
			"2":{
				"name":"ログインフォーム",
				"nameE":"Login Form",
				"id":"php.loginform",
				"url":"program/php.loginform/",
				"body":"0",
				"num":"2",
				"head":"7"
			},
			"3":{
				"name":"検索フォーム",
				"nameE":"Search Form",
				"id":"php.searchform",
				"url":"program/php.searchform/",
				"body":"0",
				"num":"3",
				"head":"7"
			},
			"body":"4",
			"head":"4"
		},
		"body":"0",
		"head":"10"
	};
var ini = {
		"initialization":{
			"key":{
				"name":"設定ファイル",
				"nameE":"英設定ファイル",
				"id":"ID",
				"type":"変数定数",
				"url":"URL",
				"body":"0",
				"head":"7"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"type":"type",
				"url":"url",
				"body":"0",
				"head":"7"
			},
			"0":{
				"name":"サイト変数",
				"nameE":"Variable",
				"id":"variable",
				"type":"variable",
				"url":"initialization/variable.ini",
				"body":"0",
				"num":"0",
				"head":"8"
			},
			"1":{
				"name":"レイアウト",
				"nameE":"Layout",
				"id":"layout",
				"type":"variable",
				"url":"initialization/layout.ini",
				"body":"0",
				"num":"1",
				"head":"8"
			},
			"body":"2",
			"head":"4"
		},
		"directory":{
			"key":{
				"name":"メニュー名",
				"nameE":"英メニュー名",
				"id":"ID",
				"active":"有効",
				"view":"表示(j/e/img/both)",
				"float":"フロート",
				"url":"URL",
				"body":"0",
				"head":"9"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"active":"active",
				"view":"view",
				"float":"float",
				"url":"url",
				"body":"0",
				"head":"9"
			},
			"0":{
				"name":"グローバルナビゲーション",
				"nameE":"Global Navigation",
				"id":"globnav",
				"active":"on",
				"view":"img",
				"float":"left",
				"url":"directory/globnav/",
				"0":{
					"name":"会社概要",
					"nameE":"Company Profile",
					"id":"profile",
					"url":"directory/globnav/profile.php",
					"body":"0",
					"num":"0",
					"head":"7"
				},
				"1":{
					"name":"各種清掃業務",
					"nameE":"Cleaning Services",
					"id":"cleaning",
					"url":"directory/globnav/cleaning.php",
					"body":"0",
					"num":"1",
					"head":"7"
				},
				"2":{
					"name":"ビルメンテナンス",
					"nameE":"Building Maintenance",
					"id":"building",
					"url":"directory/globnav/building.php",
					"body":"0",
					"num":"2",
					"head":"7"
				},
				"3":{
					"name":"リフォーム",
					"nameE":"Renovation",
					"id":"renovation",
					"url":"directory/globnav/renovation.php",
					"body":"0",
					"num":"3",
					"head":"7"
				},
				"4":{
					"name":"省エネエコ事業",
					"nameE":"Eco",
					"id":"eco",
					"url":"directory/globnav/eco.php",
					"body":"0",
					"num":"4",
					"head":"7"
				},
				"5":{
					"name":"お問い合わせ",
					"nameE":"Contact",
					"id":"contact",
					"url":"directory/globnav/contact.php",
					"body":"0",
					"num":"5",
					"head":"7"
				},
				"body":"6",
				"num":"0",
				"head":"10"
			},
			"1":{
				"name":"プライマリナビゲーション",
				"nameE":"Primary Navigation",
				"id":"primnav",
				"active":"on",
				"view":"j",
				"float":"left",
				"url":"directory/primnav/",
				"0":{
					"name":"アクセス",
					"nameE":"Access",
					"id":"access",
					"url":"directory/primnav/access.php",
					"body":"0",
					"num":"0",
					"head":"7"
				},
				"body":"1",
				"num":"1",
				"head":"10"
			},
			"body":"2",
			"head":"4"
		},
		"object":{
			"key":{
				"name":"オブジェクト名",
				"nameE":"英オブジェクト名",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"0":{
				"name":"タイトルテキスト",
				"nameE":"Title",
				"id":"title",
				"url":"object/title.php",
				"body":"0",
				"num":"0",
				"head":"7"
			},
			"1":{
				"name":"タイトルロゴ",
				"nameE":"Title Logo",
				"id":"logo",
				"url":"object/logo.php",
				"body":"0",
				"num":"1",
				"head":"7"
			},
			"2":{
				"name":"電話番号ロゴ",
				"nameE":"Telephone Logo",
				"id":"tel",
				"url":"object/tel.php",
				"body":"0",
				"num":"2",
				"head":"7"
			},
			"3":{
				"name":"お問い合わせボタン",
				"nameE":"Contact",
				"id":"tocontact",
				"url":"object/tocontact.php",
				"body":"0",
				"num":"3",
				"head":"7"
			},
			"4":{
				"name":"リロードボタン",
				"nameE":"Reload Button",
				"id":"reload",
				"url":"object/reload.php",
				"body":"0",
				"num":"4",
				"head":"7"
			},
			"5":{
				"name":"プライマリナビゲーション",
				"nameE":"Primary Navigation",
				"id":"primnav",
				"url":"object/primnav.php",
				"body":"0",
				"num":"5",
				"head":"7"
			},
			"6":{
				"name":"サブプライマリナビゲーション",
				"nameE":"Sub Primary Navigation",
				"id":"primsubnav",
				"url":"object/primsubnav.php",
				"body":"0",
				"num":"6",
				"head":"7"
			},
			"7":{
				"name":"グローバルナビゲーション",
				"nameE":"Global Navigation",
				"id":"globnav",
				"url":"object/globnav.php",
				"body":"0",
				"num":"7",
				"head":"7"
			},
			"8":{
				"name":"サブグローバルナビゲーション",
				"nameE":"Sub Global Navigation",
				"id":"globsubnav",
				"url":"object/globsubnav.php",
				"body":"0",
				"num":"8",
				"head":"7"
			},
			"9":{
				"name":"サイドナビゲーション",
				"nameE":"Side Navigation",
				"id":"sidenav",
				"url":"object/sidenav.php",
				"body":"0",
				"num":"9",
				"head":"7"
			},
			"10":{
				"name":"サブサイドナビゲーション",
				"nameE":"Sub Side Navigation",
				"id":"sidesubnav",
				"url":"object/sidesubnav.php",
				"body":"0",
				"num":"10",
				"head":"7"
			},
			"11":{
				"name":"サイトナビゲーション",
				"nameE":"Site Navigation",
				"id":"sitenav",
				"url":"object/sitenav.php",
				"body":"0",
				"num":"11",
				"head":"7"
			},
			"12":{
				"name":"メインビジュアル",
				"nameE":"Main Visual",
				"id":"mainvis",
				"url":"object/mainvis.php",
				"body":"0",
				"num":"12",
				"head":"7"
			},
			"13":{
				"name":"メインコンテンツ",
				"nameE":"Main Contents",
				"id":"maincont",
				"url":"object/maincont.php",
				"body":"0",
				"num":"13",
				"head":"7"
			},
			"14":{
				"name":"パン屑リスト",
				"nameE":"Topic Path",
				"id":"pan",
				"url":"object/pan.php",
				"body":"0",
				"num":"14",
				"head":"7"
			},
			"15":{
				"name":"特集バナー・外部リンク",
				"nameE":"Bunners",
				"id":"bunner",
				"url":"object/bunner.php",
				"body":"0",
				"num":"15",
				"head":"7"
			},
			"16":{
				"name":"アイコン",
				"nameE":"Icons",
				"id":"icon",
				"url":"object/icon.php",
				"body":"0",
				"num":"16",
				"head":"7"
			},
			"17":{
				"name":"地図",
				"nameE":"Map",
				"id":"map",
				"url":"object/map.php",
				"body":"0",
				"num":"17",
				"head":"7"
			},
			"18":{
				"name":"ポケット地図",
				"nameE":"Pocket Map",
				"id":"pocketmap",
				"url":"object/pocketmap.php",
				"body":"0",
				"num":"18",
				"head":"7"
			},
			"19":{
				"name":"メールフォーム",
				"nameE":"Mail Form",
				"id":"mailform",
				"url":"object/mailform.php",
				"body":"0",
				"num":"19",
				"head":"7"
			},
			"20":{
				"name":"検索フォーム",
				"nameE":"Search Form",
				"id":"search",
				"url":"object/search.php",
				"body":"0",
				"num":"20",
				"head":"7"
			},
			"21":{
				"name":"ログインフォーム",
				"nameE":"Login Form",
				"id":"login",
				"url":"object/login.php",
				"body":"0",
				"num":"21",
				"head":"7"
			},
			"22":{
				"name":"コメントフォーム",
				"nameE":"Comment Form",
				"id":"comment",
				"url":"object/comment.php",
				"body":"0",
				"num":"22",
				"head":"7"
			},
			"23":{
				"name":"インフォメーション",
				"nameE":"Information",
				"id":"info",
				"url":"object/info.php",
				"body":"0",
				"num":"23",
				"head":"7"
			},
			"24":{
				"name":"サイトリンク",
				"nameE":"Links",
				"id":"link",
				"url":"object/link.php",
				"body":"0",
				"num":"24",
				"head":"7"
			},
			"25":{
				"name":"タブ",
				"nameE":"Tabs",
				"id":"tab",
				"url":"object/tab.php",
				"body":"0",
				"num":"25",
				"head":"7"
			},
			"26":{
				"name":"著作権表記",
				"nameE":"Copyright",
				"id":"copyright",
				"url":"object/copyright.php",
				"body":"0",
				"num":"26",
				"head":"7"
			},
			"body":"27",
			"head":"4"
		},
		"design":{
			"key":{
				"name":"スタイル名",
				"nameE":"英スタイル名",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"0":{
				"name":"初期化",
				"nameE":"Reset",
				"id":"reset",
				"url":"design/reset.php",
				"body":"0",
				"num":"0",
				"head":"7"
			},
			"1":{
				"name":"共有",
				"nameE":"Common",
				"id":"common",
				"url":"design/common.php",
				"body":"0",
				"num":"1",
				"head":"7"
			},
			"2":{
				"name":"レイアウト",
				"nameE":"Layout",
				"id":"layout",
				"url":"design/layout.php",
				"body":"0",
				"num":"2",
				"head":"7"
			},
			"3":{
				"name":"ホスト",
				"nameE":"Main",
				"id":"main",
				"url":"design/main.php",
				"body":"0",
				"num":"3",
				"head":"7"
			},
			"4":{
				"name":"パーツ",
				"nameE":"Parts",
				"id":"parts",
				"url":"design/parts.php",
				"body":"0",
				"num":"4",
				"head":"7"
			},
			"5":{
				"name":"カスタム",
				"nameE":"Custom",
				"id":"custom",
				"url":"design/custom.php",
				"body":"0",
				"num":"5",
				"head":"7"
			},
			"body":"6",
			"head":"4"
		},
		"effect":{
			"key":{
				"name":"スクリプト名",
				"nameE":"英スクリプト名",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"0":{
				"name":"プラグイン：エフェクト関数",
				"nameE":"Easing",
				"id":"jquery.easing",
				"url":"effect/jquery.easing.js",
				"body":"0",
				"num":"0",
				"head":"7"
			},
			"1":{
				"name":"プラグイン：色操作",
				"nameE":"Color",
				"id":"jquery.color",
				"url":"effect/jquery.color.js",
				"body":"0",
				"num":"1",
				"head":"7"
			},
			"2":{
				"name":"プラグイン：背景画像自動リサイズ",
				"nameE":"Backstretch",
				"id":"jquery.backstretch",
				"url":"effect/jquery.backstretch.js",
				"body":"0",
				"num":"2",
				"head":"7"
			},
			"3":{
				"name":"起動アニメーション",
				"nameE":"Start-up Animation",
				"id":"startupAnimation",
				"url":"effect/startupAnimation.php",
				"body":"0",
				"num":"3",
				"head":"7"
			},
			"4":{
				"name":"ナビゲーションコントローラー",
				"nameE":"Navigation Controler",
				"id":"navControler",
				"url":"effect/navControler.php",
				"body":"0",
				"num":"4",
				"head":"7"
			},
			"5":{
				"name":"メールフォーム",
				"nameE":"Mail Form",
				"id":"mailform",
				"url":"effect/mailform.php",
				"body":"0",
				"num":"5",
				"head":"7"
			},
			"6":{
				"name":"ツール",
				"nameE":"Tools",
				"id":"tool",
				"url":"effect/tool.php",
				"body":"0",
				"num":"6",
				"head":"7"
			},
			"7":{
				"name":"ＩＥチェッカー",
				"nameE":"Internet Explorer Checker",
				"id":"ieChecker",
				"url":"effect/ieChecker.php",
				"body":"0",
				"num":"7",
				"head":"7"
			},
			"8":{
				"name":"メニュー座標取得",
				"nameE":"Get Coordinate",
				"id":"getCoordinate",
				"url":"effect/getCoordinate.php",
				"body":"0",
				"num":"8",
				"head":"7"
			},
			"9":{
				"name":"背景色変化",
				"nameE":"Change Color",
				"id":"changeColor",
				"url":"effect/changeColor.php",
				"body":"0",
				"num":"9",
				"head":"7"
			},
			"10":{
				"name":"エフェクト",
				"nameE":"Effects",
				"id":"effect",
				"url":"effect/effect.php",
				"body":"0",
				"num":"10",
				"head":"7"
			},
			"11":{
				"name":"スクロール",
				"nameE":"Scroll",
				"id":"scroll",
				"url":"effect/scroll.php",
				"body":"0",
				"num":"11",
				"head":"7"
			},
			"body":"12",
			"head":"4"
		},
		"image":{
			"key":{
				"name":"画像カテゴリ名",
				"nameE":"英画像カテゴリ",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"body":"0",
			"head":"4"
		},
		"sound":{
			"key":{
				"name":"画像カテゴリ名",
				"nameE":"英画像カテゴリ",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"body":"0",
			"head":"4"
		},
		"program":{
			"key":{
				"name":"プログラム名",
				"nameE":"英プログラム名",
				"id":"ID",
				"url":"URL",
				"body":"0",
				"head":"6"
			},
			"keyE":{
				"name":"name",
				"nameE":"nameE",
				"id":"id",
				"url":"url",
				"body":"0",
				"head":"6"
			},
			"0":{
				"name":"メールフォーム",
				"nameE":"Mailform",
				"id":"php.mailform",
				"url":"program/php.mailform/",
				"body":"0",
				"num":"0",
				"head":"7"
			},
			"1":{
				"name":"コメント投稿フォーム",
				"nameE":"Post Comment Form",
				"id":"php.commentform",
				"url":"program/php.commentform/",
				"body":"0",
				"num":"1",
				"head":"7"
			},
			"2":{
				"name":"ログインフォーム",
				"nameE":"Login Form",
				"id":"php.loginform",
				"url":"program/php.loginform/",
				"body":"0",
				"num":"2",
				"head":"7"
			},
			"3":{
				"name":"検索フォーム",
				"nameE":"Search Form",
				"id":"php.searchform",
				"url":"program/php.searchform/",
				"body":"0",
				"num":"3",
				"head":"7"
			},
			"body":"4",
			"head":"4"
		},
		"body":"0",
		"head":"10"
	};

/*JS初期設定
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
$('.left').parent().addClass('clear');		//左float解除クラス自動挿入
$('.right').parent().addClass('clear');		//右float解除クラス自動挿入
ieChecker();								//IEチェック＆ポップアップ表示
startupAnimation();							//初期アニメーション実行

//ロードデータ表示場所
receptor		= "#cont_inside";
sub_receptor1	= "#globsubnav_inside";

//GIFアニメーション画像
loading			= '<div class="loading"></div>';
sending			= '<div class="sending"></div>';


/*メインUI
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
$('#globnav ul li').click(function(){navControler(this,1);});			//グローバルナビゲーションクリック時エフェクト
$('#primnav ul li').click(function(){navControler(this,1);});			//プライマリーナビゲーションクリック時エフェクト
$('#sidenav ul li').click(function(){navControler(this,1);});			//サイドナビゲーションクリック時エフェクト
$('.navLink').live('click',function(){navControler(this,1);});			//ナビゲーション以外のリンク付きオブジェクトクリック時エフェクト

/*オプションパーツ
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
mailform();

/*スクロール
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
//ロード時
scroll('top');

//アンカーリンククリック時スクロール
$('a[href^=#]').live('click',function(){
	var id	= $(this).attr('href');
	scroll(id);
});

//リロードボタンクリック時スクロール
$('.reload').live('click',function(){
	scroll('top');
	return false;
});

});

