var __navi_init_done__ = false;
function swapImage(img) {
if (__navi_init_done__&& document.images[img])document.images[img].src = eval(img + '_hi.src');
}
function reSwapImage(img) {
if (__navi_init_done__&& document.images[img])document.images[img].src = eval(img + '_no.src');
}

function __moveToParent() {
	var currentId = '401';
	var parent = theSitetree.getParentById(currentId);
	if (parent != null)
		document.location.href = __path_prefix__ + parent[POS_HREF] + "?" + URL.getSessionString();
}
if (typeof(moveToParent) != "function") {
	moveToParent = __moveToParent;
}

for(var i=0; i<document.images.length; i++) {
if (document.images[i].name.indexOf("CM4all_") == 0) {
eval(document.images[i].name + "_hi = new Image()");
eval(document.images[i].name + "_no = new Image()");
eval(document.images[i].name + "_an = new Image()");
var thenormsrc;
var thenormsrcUrl;
var savedCC = "";
if (typeof(URL) != "undefined") {
thenormsrcUrl = new URL(document.images[i].src, true, true);
} else if (typeof(window.top.URL) != "undefined") {
thenormsrcUrl = new window.top.URL(document.images[i].src, true, true);
}
if (thenormsrcUrl) {
savedCC = thenormsrcUrl.getParameter("cc", "");
thenormsrcUrl.removeAllParams();
thenormsrc = thenormsrcUrl.toString();
} else {
thenormsrc = document.images[i].src;
}
var fileext = thenormsrc.substring(thenormsrc.length-4);
eval(document.images[i].name + "_hi.src = '" + thenormsrc.substring(0,thenormsrc.length-6) + "_m" + fileext + "?cc=" + savedCC  + "'");
eval(document.images[i].name + "_no.src = '" + thenormsrc.substring(0,thenormsrc.length-6) + "_n" + fileext + "?cc=" + savedCC  + "'");
eval(document.images[i].name + "_an.src = '" + thenormsrc.substring(0,thenormsrc.length-6) + "_h" + fileext + "?cc=" + savedCC  + "'");
}
}
__navi_init_done__ = true;



function setCompanyName() {
}
//setTimeout("setCompanyName()", 1);
new function() {
	if (typeof(theTemplate) != 'undefined' && theTemplate.hasFlashNavigation == "true") {
		var anchors = document.links;
		var url;
		var base = new URL(document.location.href, true, true);
		if (anchors) {
			for (var i = 0 ; i < anchors.length ; i++) {
				if (!anchors[i].target) {
					url = new URL(anchors[i].href, true, true);
					if (url.getParameter("*session*id*key*") != "*session*id*val*") {
						if (url.protocol != "javascript"
						 && (base.authority != url.authority || base.port != url.port))
						{
							anchors[i].target = "_top";
						}
					}
				}
			}
		}
	}
}();

if (typeof(URL) != "undefined") URL.processLinkz();
