if (self.location.href.indexOf('english') >= 0 || self.location.href.indexOf('alstom') >= 0) {
	var path = '../';
} else {
	var path = '';
}
if (self.location.href.indexOf('alstom') >= 0) {
	var imgPath = '../images/';
} else {
	var imgPath = 'images/';
}

if (NC) {
	if (parent.frames.length == 0 && window.outerHeight != 0) {
		self.location.replace('index.html?'+escape(self.location.href));
	}
} else {
	if (parent.frames.length == 0) {
		self.location.replace('index.html?'+escape(self.location.href));
	}
}

var TO = 0;
function setMenu() {
if (parent.frames['topFrame'].location.href.indexOf('navigation.php') >= 0) {
	var folderNo = menuNo.substring(0,1);
	if (parent.frames['topFrame'].document.images.length > 0 && parent.frames['bottomFrame'].document.images.length > 0) {
		var tFrame = parent.frames['topFrame'];
		var bFrame = parent.frames['bottomFrame'];
		if (navigator.userAgent.indexOf('Opera') == -1 && macIE4 == false) {
			if (menuNo != '0') {
				if (self.location.href.indexOf('alstom') >= 0) {
					var bgTop = 'images/bg_top'+menuNo+'.jpg';
				} else {
					var bgTop = path+'images/bg_top'+menuNo+'.jpg';
				}
				var bgBottom = 'images/bg_bottom'+menuNo+'.gif';
				if (NC) {
					var theImg = eval('tFrame.document.layers["block'+folderNo+'NS4"].document.images["menu'+menuNo+'"]');
				} else {
					var theImg = eval('tFrame.document.images["menu'+menuNo+'"]');
				}
				tFrame.document.images['bg_top'].src = bgTop;
				bFrame.document.images['bg_bottom'].src = bgBottom;
				theImg.src = 'images/menu'+menuNo+'_active.gif';;

			} else {
				tFrame.document.images['bg_top'].src = path+'images/blank.gif';
				bFrame.document.images['bg_bottom'].src = imgPath+'bg_bottom_home.gif';
//				tFrame.setImgs();
			}
		}
		tFrame.setImgs();
	} else {
		clearTimeout(TO);
		TO = setTimeout('setMenu()',500);
	}
}
}

var scrollWin = null;
function openWinScroll(location,winWidth,winHeight) {
	if (scrollWin == null || scrollWin.closed) {
		scrollWin = window.open(location,'winScroll',
			'dependent=no,resizable=no,toolbar=no,menubar=no,directories=no,scrollbars=yes,status=no,location=no,width='+winWidth+',height='+winHeight+',screenX=0,screenY=0,left=0,top=0');
	} else {
		scrollWin.resizeTo(winWidth,winHeight);
		scrollWin.location.href = location;
	}
	scrollWin.focus();
}

function rollOver(imgname,state,imgname1) {
	var img = eval('document.images["'+imgname+'"]');
	if (imgname1) {
		var img1 = eval('document.images["'+imgname1+'"]');
	}
	if (state == 'on') {
		img.src = path+imgPath+imgname+'_active.gif';
		if (imgname1) {
			img1.src = path+imgPath+imgname1+'.gif';
		}
	} else {
		img.src = path+imgPath+imgname+'.gif';
		if (imgname1) {
			img1.src = path+imgPath+imgname1+'_active.gif';
		}
	}
}