printCommonStyle ("/common/style/");
printUserAgentSpecificStyle ("/common/style/");

addPreloadImage (
	"/common/image/header/utility/text_01_over.gif",
	"/common/image/header/utility/text_02_over.gif",
	"/common/image/header/utility/text_03_over.gif",
	"/common/image/header/utility/text_04_over.gif",
	"/common/image/header/utility/text_05_over.gif",
	"/common/image/header/utility/text_06_over.gif",

	"/common/image/header/global_navigation/text_01_over.gif",
	"/common/image/header/global_navigation/text_02_over.gif",
	"/common/image/header/global_navigation/text_03_over.gif",
	"/common/image/header/global_navigation/text_04_over.gif",
	

	"/common/image/listmarker_arrow_01_over.gif",

	"/common/image/text_back_01_over.gif",
	"/common/image/text_next_01_over.gif",

	"/common/image/button_color_01_over.gif"
);

function synchronizeNavigation () {
	for (var i = 0; i < arguments.length; i++) {
		addWindowListener ("load", "synchronizeNavigationExecute ('" + arguments [i] + "')");
	}
}
function synchronizeNavigationExecute (name) {
	var image = document.images [name];
	if (image) {
		changeImage (image, image.src.replace ("_over.gif", ".gif").replace (".gif", "_over.gif"));
		deleteRestoreImage (image);
	}
}

// DEBUG

function createPreloadedImageList () {
	var s = "";
	for (var i = 0; i < PreloadImages.length; i++) {
		s += '<img src="' + PreloadImages [i] + '"><br>';
	}
	var o = window.open ("", "PreloadImageListWindow");
	o.document.open ();
	o.document.write ("<html><head><title>Preloaded Images<\/title><\/head><body>" + s + "<\/body><\/html>");
	o.document.close ();
}
if (/petshop/.test (location.hostname)) addWindowListener ("load", createPreloadedImageList);
