var MessageText = "Federated Railways - Leasing Passenger Cars has never been this easy!"
window.status = MessageText;

var strNav = '';
var imgPath = "";
var imgCount = 1;
var lastTitle = false;

function openMenu(){
	strNav = '<TABLE width="80%" border="0" cellspacing="0" cellpadding="0">';

}

function addbookmark(){
if (document.all)
window.external.AddFavorite(location.href, document.title);
}

function closeMenu(){

	strNav +='<TR>'+ 
                '<TD colspan="2"><img src="' + imgPath +'images/imgDotLine.GIF"></TD>'+
              '</TR>'+
			'</TABLE>';
	document.write(strNav);
}

function addMenuHead(strHead,strLink){

strNav += '<TR>' + '<TD colspan="2" class="topic"><A href='+ strLink + ' style="text-decoration: none">'+ strHead +'</A></TD>' + '</TR>' +'<TR>' +	 '<TD colspan="2" class="font3px">&nbsp;</TD>' +'</TR>'
}

function addMainTitle(mtTitle,mlLink){
	
			   strNav += '<TR>' +
				 '<TD colspan="2"><img src="' + imgPath +'images/imgDotLine.GIF"></TD>' +
			   '</TR>'+
			   '<TR>'+
				 '<TD height="20" valign="top" width="8%"><img name="bul'+imgCount+'" src="' + imgPath +'images/imgar.gif" ></TD>'+
				 '<TD width="92%" class="navLink1" ><A href="#" style="disply:none"></A><A href="'+ mlLink +'" class="navLink1" style="text-decoration: none" onMouseOver="mOver(\'bul'+ imgCount +'\',\'images/imgarOver.gif\')" onMouseOut="mOut(\'bul'+ imgCount +'\',\'images/imgar.gif\')">' + mtTitle + '</A></TD>'+
			   '</TR>';

	imgCount++;
}


function addSubTitle(stTitle,slLink,lastTitle){

if(!lastTitle){

	strNav +=	'<TR>'+ 
                      '<TD valign="top" width="10%">&nbsp;<img name="bul'+imgCount+'" src="' + imgPath +'images/imgRedBlocks.gif" ></TD>'+
                      '<TD  class="navLink2" valign="top" width="90%"><font color="#000000"><A href="'+ slLink +'" class="navLink2" style="text-decoration: none" onMouseOver="mOver(\'bul'+ imgCount +'\',\'images/imgRedBlocksOver.gif\')" onMouseOut="mOut(\'bul'+ imgCount +'\',\'images/imgRedBlocks.gif\')">'+ stTitle +'</A></font></TD>'+
                '</TR>'+
              '<TR>' +
                      '<TD colspan="2" valign="top"><img  src="' + imgPath +'images/imgBlackDots.gif" width="122" height="3"></TD>'+
              '</TR>';
			  
	}else{
	strNav +=	'<TR>'+ 
                      '<TD valign="top" width="10%"><img name="bul'+imgCount+'" src="' + imgPath +'images/imgRedBlocks.gif" ></TD>'+
                      '<TD  class="navLink2" valign="top" width="90%"><font color="#000000"><A href="'+ slLink +'" class="navLink2" style="text-decoration: none" onMouseOver="mOver(\'bul'+ imgCount +'\',\'images/imgRedBlocksOver.gif\')" onMouseOut="mOut(\'bul'+ imgCount +'\',\'images/imgRedBlocks.gif\')">'+ stTitle +'</A></font></TD>'+
                '</TR>';
	
	}
	
	imgCount++;
}


function openSubMenu(){
	lastTitle = false;
	strNav +='<TR>'+
                '<TD colspan="2" ><img src="' + imgPath +'images/imgDotLine.GIF"></TD>'+
              '</TR>'+
              '<TR>'+
                '<TD >&nbsp;</TD>'+
                '<TD width="100%">'+
				  '<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">'+
					'<TR>'+
                      '<TD colspan="2"><img src="' + imgPath +'images/BLANK.GIF" width="10" height="4"></TD>'+
                    '</TR>';/*+
					'<TR>' +
                      '<TD colspan="2" ><img src="' + imgPath +'images/imgBlackDots.gif" width="122" height="3"></TD>'+
                    '</TR>';*/
					
}


function closeSubMenu(){

strNav += '<TR>'+
              '<TD colspan="2"><img src="' + imgPath +'images/BLANK.GIF" width="10" height="4"></TD>'+
              '</TR>'+
		'</TABLE></TD></TR>';
}

function myalert(myVar)
{
alert(myVar);

}

function mOver(name,image){

var rPath=imgPath + image;
	document.images[name].src = rPath;
	
}

function mOut(name,image){
var rPath=imgPath + image;
	document.images[name].src = rPath;;

}




function header()
{
document.writeln('<img src="images/Top1.jpg" width="770">'); 
}


function footer()
{
document.write('© Federated Railways.  All rights reserved. Feedback to ');
document.write('<a href=mailto:railwebmaster@federatedrailways.com>');
document.write('Rail Webmaster at Federated Railways'); 
document.write('</a>');
}

function gotop()
{
document.writeln('<a href="#top"><img src="images/top.gif" border="0" class=imgst></a>');
}



function magpdf()
{
document.writeln('<table><tr><tD bgcolor=454545 height=1></td></tr><tr><td align="center"><a href=Federated.pdf target=_blank><img class=imgst src="images/magpdf.jpg" width="112" height="87" vspace="5" border=0></a></td></tr><tr><td align="center"><a href=RailTravel.htm><img src="images/RailTravel.jpg" width="115" height="80" vspace="5" class=imgst border=0></a></td></tr></table>'); 
}

