printCommonStyle (Path + "common/style/");
printUserAgentSpecificStyle (Path + "common/style/");

//

addPreloadImage (
	Path + "common/image/header/text_01_over.gif",
	Path + "common/image/header/text_02_over.gif",
	Path + "common/image/global_navigation/text_04_over.gif",
	Path + "common/image/global_navigation/text_05_over.gif"
);

//

function setLinkListener () {
	var links = document.links;
	for (var i = 0; i < links.length; i++) {
		var link = links [i];
		if (link.linkees) {
			link.onmouseover = function () {
				for (var i = 0; i < this.linkees.length; i++) {
					var linkee = this.linkees [i];
					// changePseudoLinkClassName (linkee);
					if (linkee.tagName == "IMG") changeImage (linkee, linkee.src.replace ("_over.gif", ".gif").replace (".gif", "_over.gif"));
					if (linkee.tagName == "TD") {
						var image = linkee.getElementsByTagName ("img")[2];
						changeImage (image, image.src.replace ("_over.gif", ".gif").replace (".gif", "_over.gif"));
					}
				}
			};
			link.onmouseout = function () {
				for (var i = 0; i < this.linkees.length; i++) {
					var linkee = this.linkees [i];
					// restorePseudoLinkClassName (linkee);
					if (linkee.tagName == "IMG") restoreImage (linkee);
					if (linkee.tagName == "TD") restoreImage (linkee.getElementsByTagName ("img")[2]);
				}
			};
		}
	}
}
if (document.getElementById) {
	addWindowListener ("load", setLinkListener);
	addPreloadImage (
		Path + "common/image/arrow_01_over.gif",
		Path + "common/image/arrow_02_over.gif",
		Path + "common/image/arrow_03_over.gif",
		Path + "common/image/arrow_04_over.gif",
		Path + "common/image/arrow_popup_01_over.gif",
		Path + "common/image/arrow_pdf_01_over.gif"
	);
}

//

var GlobalNavigationTimer = null;
function expandGlobalNavigation (index) {
	clearTimeout (GlobalNavigationTimer);
	document.getElementById ("GlobalNavigation" + index + "Child").style.display = "block";
	if (index == 4) {
		changeImage ("GlobalNavigationText4", Path + "common/image/global_navigation/text_07_expanded.gif");
		changeImage ("GlobalNavigationBottom", Path + "common/image/_.gif");
	}
}
function collapseGlobalNavigation () {
	GlobalNavigationTimer = setTimeout (collapseGlobalNavigationExecute, 1000);
}
function collapseGlobalNavigationExecute () {
	changeImage ("GlobalNavigationText4", Path + "common/image/global_navigation/text_07.gif");
	changeImage ("GlobalNavigationBottom", Path + "common/image/global_navigation/box_02.gif");
	for (var i = 1; i <= 4; i++) {
		document.getElementById ("GlobalNavigation" + i + "Child").style.display = "none";
	}
}
if (document.getElementById) {
	addPreloadImage (
		Path + "common/image/global_navigation/text_07_expanded.gif"
	);
	document.write (
		'<style type="text/css">\n' +
		'<!--\n' +
		'.GlobalNavigationChild { display:none; }\n' +
		'-->\n' +
		'</style>'
	);
}
