/* nvcl_rollover.js compiled from X 4.0 with XC 0.28b. Distributed under GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */
var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,xNN4,xUA=navigator.userAgent.toLowerCase();if(window.opera){var i=xUA.indexOf('opera');if(i!=-1){var v=parseInt(xUA.charAt(i+6));xOp7Up=v>=7;xOp6Dn=v<7;}}else if(navigator.vendor!='KDE' && document.all && xUA.indexOf('msie')!=-1){xIE4Up=parseFloat(navigator.appVersion)>=4;xIE4=xUA.indexOf('msie 4')!=-1;xIE5=xUA.indexOf('msie 5')!=-1;}else if(document.layers){xNN4=true;}xMac=xUA.indexOf('mac')!=-1;function xAddEventListener(e,eT,eL,cap){if(!(e=xGetElementById(e))) return;eT=eT.toLowerCase();if((!xIE4Up && !xOp7Up) && e==window) {if(eT=='resize') { window.xPCW=xClientWidth(); window.xPCH=xClientHeight(); window.xREL=eL; xResizeEvent(); return; }if(eT=='scroll') { window.xPSL=xScrollLeft(); window.xPST=xScrollTop(); window.xSEL=eL; xScrollEvent(); return; }}var eh='e.on'+eT+'=eL';if(e.addEventListener) e.addEventListener(eT,eL,cap);else if(e.attachEvent) e.attachEvent('on'+eT,eL);else eval(eh);}function xResizeEvent(){if (window.xREL) setTimeout('xResizeEvent()', 250);var cw = xClientWidth(), ch = xClientHeight();if (window.xPCW != cw || window.xPCH != ch) { window.xPCW = cw; window.xPCH = ch; if (window.xREL) window.xREL(); }}function xScrollEvent(){if (window.xSEL) setTimeout('xScrollEvent()', 250);var sl = xScrollLeft(), st = xScrollTop();if (window.xPSL != sl || window.xPST != st) { window.xPSL = sl; window.xPST = st; if (window.xSEL) window.xSEL(); }}function xClientHeight(){var h=0;if(xOp6Dn) h=window.innerHeight;else if(document.compatMode == 'CSS1Compat' && !window.opera && document.documentElement && document.documentElement.clientHeight)h=document.documentElement.clientHeight;else if(document.body && document.body.clientHeight)h=document.body.clientHeight;else if(xDef(window.innerWidth,window.innerHeight,document.width)) {h=window.innerHeight;if(document.width>window.innerWidth) h-=16;}return h;}function xClientWidth(){var w=0;if(xOp6Dn) w=window.innerWidth;else if(document.compatMode == 'CSS1Compat' && !window.opera && document.documentElement && document.documentElement.clientWidth)w=document.documentElement.clientWidth;else if(document.body && document.body.clientWidth)w=document.body.clientWidth;else if(xDef(window.innerWidth,window.innerHeight,document.height)) {w=window.innerWidth;if(document.height>window.innerHeight) w-=16;}return w;}function xDef(){for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}return true;}function xEvent(evt) {var e = evt || window.event;if(!e) return;if(e.type) this.type = e.type;if(e.target) this.target = e.target;else if(e.srcElement) this.target = e.srcElement;if (e.relatedTarget) this.relatedTarget = e.relatedTarget;else if (e.type == 'mouseover' && e.fromElement) this.relatedTarget = e.fromElement;else if (e.type == 'mouseout') this.relatedTarget = e.toElement;if(xOp6Dn) { this.pageX = e.clientX; this.pageY = e.clientY; }else if(xDef(e.pageX,e.pageY)) { this.pageX = e.pageX; this.pageY = e.pageY; }else if(xDef(e.clientX,e.clientY)) { this.pageX = e.clientX + xScrollLeft(); this.pageY = e.clientY + xScrollTop(); }if (xDef(e.offsetX,e.offsetY)) {this.offsetX = e.offsetX;this.offsetY = e.offsetY;}else if (xDef(e.layerX,e.layerY)) {this.offsetX = e.layerX;this.offsetY = e.layerY;}else {this.offsetX = this.pageX - xPageX(this.target);this.offsetY = this.pageY - xPageY(this.target);}if (e.keyCode) { this.keyCode = e.keyCode; } else if (xDef(e.which) && e.type.indexOf('key')!=-1) { this.keyCode = e.which; }this.shiftKey = e.shiftKey;this.ctrlKey = e.ctrlKey;this.altKey = e.altKey;}function xGetElementById(e){if(typeof(e)!='string') return e;if(document.getElementById) e=document.getElementById(e);else if(document.all) e=document.all[e];else e=null;return e;}function xGetElementsByClassName(c,p,t,f){var found = new Array();var re = new RegExp('\\b'+c+'\\b', 'i');var list = xGetElementsByTagName(t, p);for (var i = 0; i < list.length; ++i) {if (list[i].className && list[i].className.search(re) != -1) {found[found.length] = list[i];if (f) f(list[i]);}}return found;}function xGetElementsByTagName(t,p){var list = null;t = t || '*';p = p || document;if (xIE4 || xIE5) {if (t == '*') list = p.all;else list = p.all.tags(t);}else if (p.getElementsByTagName) list = p.getElementsByTagName(t);return list || new Array();}function xNum(){for(var i=0; i<arguments.length; ++i){if(isNaN(arguments[i]) || typeof(arguments[i])!='number') return false;}return true;}function xPageX(e){if (!(e=xGetElementById(e))) return 0;var x = 0;while (e) {if (xDef(e.offsetLeft)) x += e.offsetLeft;e = xDef(e.offsetParent) ? e.offsetParent : null;}return x;}function xPageY(e){if (!(e=xGetElementById(e))) return 0;var y = 0;while (e) {if (xDef(e.offsetTop)) y += e.offsetTop;e = xDef(e.offsetParent) ? e.offsetParent : null;}return y;}function xScrollLeft(e, bWin){var offset=0;if (!xDef(e) || bWin || e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') {var w = window;if (bWin && e) w = e;if(w.document.documentElement && w.document.documentElement.scrollLeft) offset=w.document.documentElement.scrollLeft;else if(w.document.body && xDef(w.document.body.scrollLeft)) offset=w.document.body.scrollLeft;}else {e = xGetElementById(e);if (e && xNum(e.scrollLeft)) offset = e.scrollLeft;}return offset;}function xScrollTop(e, bWin){var offset=0;if (!xDef(e) || bWin || e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') {var w = window;if (bWin && e) w = e;if(w.document.documentElement && w.document.documentElement.scrollTop) offset=w.document.documentElement.scrollTop;else if(w.document.body && xDef(w.document.body.scrollTop)) offset=w.document.body.scrollTop;}else {e = xGetElementById(e);if (e && xNum(e.scrollTop)) offset = e.scrollTop;}return offset;}xAddEventListener(window, 'load', nvcl_rollover);

function nvcl_rollover() {
	xGetElementsByClassName("rollover", null, "img", function(img) {
			img._nvcl_restore= new Image;
			img._nvcl_swap= new Image;
			img._nvcl_restore.src = img.src;
			img._nvcl_swap.src    = img.src.substring(0,img.src.length-4)+'_o'+img.src.slice(img.src.length-4);
			xAddEventListener(img, 'mouseover', function (e) {
				e = new xEvent(e);
				e.target.src = e.target._nvcl_swap.src
				});
			xAddEventListener(img, 'mouseout', function (e) {
				e = new xEvent(e);
				e.target.src = e.target._nvcl_restore.src
				});
			});
}



function wopen(url,w,h) {
	window.open(url,'','width='+w+',height='+h+',scrollbars=yes,resizable=yes');
	return false;
}








/*subNaviShow*/

	subNaviShow = function(){
		if (document.all&&document.getElementById) {
			subNaviNum = document.getElementById("menu");
			for ( i=0 ; i<subNaviNum.childNodes.length ; i++) {
				node = subNaviNum.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover = function(){this.className+="over";}
					node.onmouseout = function(){this.className=this.className.replace("over", "");}
				}
			}
		}
	}
	window.onload=subNaviShow;


	var home = '<a href="../../../../index.html" class="select"><img src="../../../../images/menu85_home.jpg" width="85" height="25" width="85" height="25" alt="ホーム" /></a>';
	var why = '<a href="../../../../why/benefit.html" class="select"><img src="../../../../images/menu85_why.jpg" width="85" height="25" alt="xfyとは？" /></a>';
	var products = '<a href="../../../../products/enterprise/index.html" class="select"><img src="../../../../images/menu_products.jpg" width="77" height="25" alt="製品情報" /></a>';
	var casestudy = '<a href="../../../../casestudy/chemicon1.html" class="select"><img src="../../../../images/menu_casestudy.jpg" width="77" height="25" alt="導入事例" /></a>';
	var espnr = '<a href="../../../../espnr/index.html" class="select"><img src="../../../../images/menu_espnr.jpg" width="77" height="25" alt="パートナー" /></a>';
	var tech = '<a href="../../../../tech/ee15guide/index.html" class="select"><img src="../../../../images/menu_tech.jpg" width="77" height="25" alt="技術情報" /></a>';
	var support = '<a href="../../../../support/index.html" class="select"><img src="../../../../images/menu_support.jpg" width="77" height="25" alt="サポート" /></a>';
	var seminar = '<a href="../../../../seminar/events/index.html" class="select"><img src="../../../../images/menu_seminar.jpg" width="77" height="25" alt="イベント" /></a>';
	var news = '<a href="../../../../press/index.html" class="select"><img src="../../../../images/menu_press.jpg" width="77" height="25" alt="ニュース" /></a>';
	var solution = '<a href="../../../../solution/sol_1.html" class="select"><img src="../../../../images/menu100_solutions.jpg" width="100" height="25" alt="ソリューション" /></a>';
	var download = '<a href="../../../../download/index.html" class="select"><img src="../../../../images/menu85_downloads.jpg" width="85" height="25" alt="ダウンロード" /></a>';

	switch (current_page) {
		case 'home':
			home = '<div class="select"><img src="../../../../images/menu85_home_s.jpg" width="85" height="25" alt="ホーム" /></div>';
			break;
		case 'why':
			why = '<div class="select"><img src="../../../../images/menu85_why_s.jpg" width="85" height="25" alt="xfyとは？" /></div>';
			break;
		case 'products':
			products = '<div class="select"><img src="../../../../images/menu_products_s.jpg" width="77" height="25" alt="製品情報" /></div>';
			break;
		case 'casestudy':
			casestudy = '<div class="select"><img src="../../../../images/menu_casestudy_s.jpg" width="77" height="25" alt="導入事例" /></div>';
			break;
		case 'espnr':
			espnr = '<div class="select"><img src="../../../../images/menu_espnr_s.jpg" width="77" height="25" alt="パートナー" /></div>';
			break;
		case 'tech':
			tech = '<div class="select"><img src="../../../../images/menu_tech_s.jpg" width="77" height="25" alt="技術情報" /></div>';
			break;
		case 'support':
			support = '<div class="select"><img src="../../../../images/menu_support_s.jpg" width="77" height="25" alt="サポート" /></div>';
			break;
		case 'seminar':
			seminar = '<div class="select"><img src="../../../../images/menu_seminar_s.jpg" width="77" height="25" alt="イベント" /></div>';
			break;
		case 'news':
			news = '<div class="select"><img src="../../../../images/menu_press_s.jpg" width="77" height="25" alt="ニュース" /></div>';
			break;
		case 'solution':
			solution = '<div class="select"><img src="../../../../images/menu100_solutions_s.jpg" width="100" height="25" alt="ソリューション" /></div>';
			break;
		case 'download':
			download = '<div class="select"><img src="../../../../images/menu85_downloads_s.jpg" width="85" height="25" alt="ダウンロード" /></div>';
			break;
	}


document.write('<div id="nav">');
document.write('<ul id="menu">');
//document.write('<li>'+home);
//document.write('</li>');

document.write('<li>'+why);
document.write('<ul id="subnav" class="menu_child">');
document.write('<li><a href="../../../../why/benefit.html">xfyで実現する新しい企業ITシステム</a></li>');
document.write('<li><a href="../../../../why/technology.html">xfyテクノロジー</a></li>');
document.write('</ul>');
document.write('</li>');

document.write('<li>'+products);
document.write('<ul id="subnav" class="menu_child">');
document.write('<li><a href="../../../../products/enterprise/index.html">xfy Enterprise Edition</a></li>');
document.write('<li><a href="../../../../products/enterprise/adapter.html">xfy Adapter</a></li>');
document.write('<li><a href="../../../../products/basic/index.html">xfy Basic Edition</a></li>');
document.write('</ul>');
document.write('</li>');

document.write('<li>'+solution);
document.write('<ul id="subnav" class="menu_child">');
document.write('<li><a href="../../../../solution/sol_1.html">内部統制関連ソリューション</a></li>');
document.write('<li><a href="../../../../solution/sol_2.html">営業組織力向上支援ソリューション</a></li>');
document.write('<li><a href="../../../../solution/sol_3.html">製造業向けソリューション</a></li>');
document.write('<li><a href="../../../../solution/sol_4.html">次世代経営可視化ソリューション</a></li>');
document.write('</ul>');
document.write('</li>');

document.write('<li>'+casestudy);
document.write('<ul id="subnav" class="menu_child">');
document.write('<li><a href="../../../../casestudy/chemicon1.html">日本ケミコン株式会社</a></li>');
document.write('</ul>');
document.write('</li>');

document.write('<li>'+espnr);
document.write('<ul id="subnav" class="menu_child">');
document.write('<li><a href="../../../../espnr/index.html">パートナープログラム</a></li>');
document.write('<li><a href="../../../../espnr/merit.html">プログラム参加のメリット</a></li>');
document.write('<li><a href="../../../../espnr/partner_event.html">パートナーイベント</a></li>');
document.write('<li><a href="../../../../espnr/download.html">セールスツール</a></li>');
document.write('</ul>');
document.write('</li>');

//document.write('<li>'+tech);
//document.write('<ul id="subnav" class="menu_child">');
//document.write('<li><a href="../../../../tech/ee15guide/index.html">プロダクトガイド</a></li>');
//document.write('<li><a href="../../../../tech/dl/pavilion.html">サンプルアプリケーション</a></li>');
//document.write('<li><a href="../../../../https://www.xfytec.com/community/">xfy コミュニティ</a></li>');
//document.write('<li><a href="../../../../tech/dl/index.html">ダウンロード</a></li>');
//document.write('</ul>');
//document.write('</li>');


document.write('<li>'+support);
document.write('<ul id="subnav" class="menu_child">');
document.write('<li><a href="../../../../support/index.html">お問い合せ</a></li>');
document.write('<li><a href="../../../../support/training.html">トレーニング</a></li>');
document.write('</ul>');
document.write('</li>');


document.write('<li>'+seminar);
document.write('<ul id="subnav" class="menu_child">');
document.write('<li><a href="../../../../seminar/events/index.html">イベント</a></li>');
document.write('<li><a href="../../../../seminar/seminar.html">セミナー</a></li>');
document.write('</ul>');
document.write('</li>');


document.write('<li>'+news);
document.write('<ul id="subnav" class="menu_child">');
document.write('<li><a href="../../../../press/index.html">プレスリリース</a></li>');
document.write('<li><a href="../../../../press/topix/index.html">掲載一覧</a></li>');
document.write('</ul>');
document.write('</li>');

document.write('<li>'+download);
document.write('<ul id="subnav" class="menu_child">');
document.write('<li><a href="../../../../download/index.html">ソフトウェアダウンロード</a></li>');
document.write('<li><a href="../../../../download/documents.html">ドキュメントダウンロード</a></li>');
document.write('</ul>');
document.write('</li>');

document.write('</ul>');
document.write('</div>');
document.write('<div class="clear"></div>');
