//フラッシュを配置するスクリプト　(flash_prot.js) ↓

var flash_Flag;
var pluginspageURL = "http://www.macromedia.com/go/getflashplayer";
var codebaseURL = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";

function playerCheck(versionNum){
	ContentVersion = versionNum;
	
	plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i){
			if (isNaN(parseInt(words[i])))continue; PluginVersion = words[i];
		}
		flash_Flag = PluginVersion >= ContentVersion;
	}else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n'); 
		document.write('on error resume next \n');
		document.write('flash_Flag = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & ContentVersion)))\n');
		document.write('</SCRIPT\> \n');
	}
	
}

function load_player(FlashObject){
	playerCheck(FlashObject.contentVersion);
	if (FlashObject.codebaseVersion) codebaseURL += '#version=' + FlashObject.codebaseVersion;
	if (flash_Flag){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="' + codebaseURL + '" width="100%" height="100%">');
		document.write('<param name="allowScriptAccess" value="' + FlashObject.allowScriptAccess + '"' + '>');
		document.write('<param name="movie" value="' + FlashObject.src + '"' + '>');
		if (FlashObject.FlashVars) document.write('<param name="FlashVars" value="' + FlashObject.FlashVars + '">');
		if (FlashObject.quality) document.write('<param name="quality" value="high">');
		if (FlashObject.bgcolor) document.write('<param name="bgcolor" value="' + FlashObject.bgcolor + '">');
		if (FlashObject.base)    document.write('<param name="base" value="' + FlashObject.base + '"' + '>');
		if (FlashObject.menu)    document.write('<param name="menu" value="false"' + '>');
		if (FlashObject.align)   document.write('<param name="align" value="middle"' + '>');
		if (FlashObject.scale)   document.write('<param name="scale" value="SHOWALL"' + '>');
		if (FlashObject.wmode)   document.write('<param name="wmode" value="' + FlashObject.wmode + '"' + '>');
		document.write('<embed src="' + FlashObject.src + '" width="100%" height="100%"');
		if (FlashObject.allowScriptAccess) document.write(' allowScriptAccess="' + FlashObject.allowScriptAccess + '"');
		if (FlashObject.FlashVars) document.write(' FlashVars="' + FlashObject.FlashVars + '"');
		if (FlashObject.quality) document.write(' quality="high"');
		if (FlashObject.bgcolor) document.write(' bgcolor="' + FlashObject.bgcolor + '"');
		if (FlashObject.base)    document.write(' base="' + FlashObject.base + '"');
		if (FlashObject.menu)    document.write(' menu="false"');
		if (FlashObject.align)   document.write(' align="middle"');
		if (FlashObject.scale)   document.write(' scale="SHOWALL"');
		if (FlashObject.wmode)    document.write(' wmode="' + FlashObject.wmode + '"');
		document.write(' type="application/x-shockwave-flash"');
		document.write(' pluginspage="'+ pluginspageURL +'">');
		document.write(' </embed>');
		document.write('</object>');
	}else{
		document.write(FlashObject.noPlugin);
	}
}


function loadFlash(swfSrc,no_plugin) {
	var mcObj = new Object();
	mcObj.src = swfSrc;
	mcObj.allowScriptAccess = 'sameDomain';
	mcObj.base = '.';
	mcObj.wmode = "transparent";
	
	mcObj.codebaseVersion = 8,0,0,0;
	mcObj.contentVersion = 8,0,0,0;
	
	mcObj.noPlugin = no_plugin;

	load_player(mcObj);
}






//フラッシュを配置するスクリプト　↑




//サイズ指定で小窓を開くスクリプト　↓
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//サイズ指定で小窓を開くスクリプト　↑




//透過PINGを使用するスクリプト  ↓

/*
 * IE PNG Fix v1.4
 *
 * Copyright (c) 2006 Takashi Aida http://www.isella.com/aod2/
 *
 */

// IE5.5+ PNG Alpha Fix v1.0RC4
// (c) 2004-2005 Angus Turnbull http://www.twinhelix.com

// This is licensed under the CC-GNU LGPL, version 2.1 or later.
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/

if (typeof IEPNGFIX == 'undefined') {
//--============================================================================

var IEPNGFIX = {
	blank:  'http://www.isella.com/aod2/images/blank.gif',
	filter: 'DXImageTransform.Microsoft.AlphaImageLoader',

	fixit: function (elem, src, method) {
		if (elem.filters[this.filter]) {
			var filter = elem.filters[this.filter];
			filter.enabled = true;
			filter.src = src;
			filter.sizingMethod = method;
		}
		else {
			elem.style.filter = 'progid:' + this.filter +
				'(src="' + src + '",sizingMethod="' + method + '")';
		}
	},

	fixwidth: function(elem) {
		if (elem.currentStyle.width == 'auto' &&
			elem.currentStyle.height == 'auto') {
			elem.style.width = elem.offsetWidth + 'px';
		}
	},

	fixchild: function(elem, recursive) {
		if (!/MSIE (5\.5|6\.|7\.)/.test(navigator.userAgent)) return;

		for (var i = 0, n = elem.childNodes.length; i < n; i++) {
			var childNode = elem.childNodes[i];
			if (childNode.style) {
				if (childNode.style.position) {
					childNode.style.position = childNode.style.position;
				}
				else {
					childNode.style.position = 'relative';
				}
			}
			if (recursive && childNode.hasChildNodes()) {
				this.fixchild(childNode, recursive);
			}
		}
	},

	fix: function(elem) {
		if (!/MSIE (5\.5|6\.|7\.)/.test(navigator.userAgent)) return;

		var bgImg =
			elem.currentStyle.backgroundImage || elem.style.backgroundImage;

		if (elem.tagName == 'IMG') {
			if ((/\.png$/i).test(elem.src)) {
				this.fixwidth(elem);
				this.fixit(elem, elem.src, 'scale');
				elem.src = this.blank;
				elem.runtimeStyle.behavior = 'none';
			}
		}
		else if (bgImg && bgImg != 'none') {
			if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i)) {
				var s = RegExp.$1;
				this.fixwidth(elem);
				elem.style.backgroundImage = 'none';
				this.fixit(elem, s, 'scale'); // crop | image | scale

				if (elem.tagName == 'A' && elem.style) {
					if (!elem.style.cursor) {
						elem.style.cursor = 'pointer';
					}
				}

				this.fixchild(elem);
				elem.runtimeStyle.behavior = 'none';
			}
		}
	},

	hover: function(elem, hvImg) {
		var bgImg = elem.style.backgroundImage;

		if (!bgImg && elem.currentStyle) bgImg = elem.currentStyle.backgroundImage;

		if (elem.tagName == 'IMG' && hvImg) {
			var image = elem.src;
			elem.onmouseover = function() {
				elem.src = hvImg;
				IEPNGFIX.fix(elem);
			};
			elem.onmouseout = function() {
				elem.src = image;
				IEPNGFIX.fix(elem);
			};
		}
		else if (bgImg && bgImg != 'none' && hvImg) {
			elem.onmouseover = function() {
				elem.style.backgroundImage = 'url(' + hvImg + ')';
				IEPNGFIX.fix(elem);
			};
			elem.onmouseout = function() {
				elem.style.backgroundImage = bgImg;
				IEPNGFIX.fix(elem);
			};
		}

		IEPNGFIX.fix(elem);
	}
};

//--============================================================================
} // end if (typeof IEPNGFIX == 'undefined')

//透過PINGを使用するスクリプト   ↑




//ロールオーバー　smartRollover.js   
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);
}

//ロールオーバー　smartRollover.js   ↑



//ページ内スクロール　smooth.pack.js   ↑
eval((function(){a="Scroller={speed:10,8dC.;d.while(dC.+C.}} J8N;d=5;&&M4M}d&&dM4dM}%4%} 0J8a,F4(F,fa@7a.4a.LP+F7Jend8e66.cancelBubble=true;6.Value=fa@;}&&(E(7J8di=Hner3||5.G3;hN.3;a=(Ed>ah-d>i7e@{-(h-d)7}e@{a=a+(d-a}To(0,aEa==a}=aJHit8KwHdow,A,A7,A82P;l=9;d=locatiP;D&&D.HdexOfL#)!=-1&&(l/+l=C)Kl,Gck,endEl.PGck=2l=this.hash.substr(1E9.name==l;i=setILL+(9)+),107}}}}}};Hit()",b=48;while(b>=0)a=a.replace(new RegExp("%23456789@ACDEFGHJKLMNP".charAt(b),"g"),("\042Scroller.entfunction(offsetParscrollwindow.returndocumattachEvntervala=.getElemsByTagName(a);if(offsetTop){for(i=0;i<a.length;i++.pathnamea+=Math.ceil((d-ae.stopPropagationTopa.addEvListenerbody)/speede.prevDefaultclearI(i)pageYOffsetend(this);Height .Elemev)}:a[i]lseload=dl.href);b,dcliin},((.=.=C||on".split(""))[b--]);return a})())
//ページ内スクロール　smooth.pack.js   ↑																																																																																																																																																																																																																																																										   
