if (typeof(theTemplate) != 'undefined' && theTemplate.hasFlashNavigation == "true") {
if (window == window.top || parent.document.location.href.indexOf("main.html") == -1) {
document.body.style.backgroundColor='#' +theTemplate.contentBGColor ;
document.location.replace( __path_prefix__ + "/main.html?src=" + jencode(document.location.pathname + document.location.search));
} else {
document.body.style.backgroundColor='#' +theTemplate.contentBGColor ;
}
}

if (typeof(__path_prefix__) == 'undefined')
    __path_prefix__ = '.';
if (typeof(URL) == 'function') {
var appLoaderUrl = new URL('http://cgi.webaporter.com:80/cgi-bin/AppLoader/AARS20INL31I/5000//20091227-000724?cc=1263218882237&modified=20091227-000724');
if (appLoaderUrl.setSession())
appLoaderUrl.setParameter("foo", Math.random(), true);
document.write("<SCRIPT src='" + appLoaderUrl.toExternalForm() + "'></"+"SCRIPT>");
}

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() {
}

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();
