printCommonStyle (Path + "common/style/");
printUserAgentSpecificStyle (Path + "common/style/");

addPreloadImage (
	Path + "common/image/globalnavigation/01_o.gif",
	Path + "common/image/globalnavigation/02_o.gif",
	Path + "common/image/globalnavigation/03_o.gif",
	Path + "common/image/globalnavigation/04_o.gif",
	Path + "common/image/globalnavigation/05_o.gif",
	Path + "common/image/globalnavigation/06_o.gif",
	Path + "common/image/globalnavigation/07_o.gif",
	Path + "common/image/globalnavigation/08_o.gif",
	Path + "common/image/globalnavigation/09_o.gif",
	Path + "common/image/globalnavigation/10_o.gif"
);

function synchronizeNavigationImage (name) { addWindowListener ("load", "synchronizeNavigationImageExecute ('" + name + "')"); }
function synchronizeNavigationImageExecute (name) {
	var image = document.images [name];
	changeImage (image, image.src.replace (/_o\.gif/, ".gif").replace (/\.gif/, "_o.gif"));
	deleteRestoreImage (image);
}
function changeNavigationImage (name) {
	var url = document.images [name].src;
	if ((/(\d{2})(\.gif)/).test (url)) changeImage (name, url.replace (/(\d{2})(\.gif)/, RegExp.$1 + "_o" + RegExp.$2));
}
//
// For Debug
//
function debugImageSource () {
	var images = document.images;
	for (var i = 0; i < images.length; i++) {
		var image = images [i];
		if (!image.complete) {
			image.style.backgroundColor = "red";
			image.style.filter = "progid:DXImageTransform.Microsoft.Glow(Color=red,Strength=5)";
		}
	}
}
if (document.all) addWindowListener ("load", debugImageSource);
