//
//
//
var Manager;
var menu_items = new Array;
menu_items[menu_items.length] = new Array("index.html", "Home", "Welcome to the Ferryman, Southsea");
menu_items[menu_items.length] = new Array("rooms.html", "Our Rooms", null);
menu_items[menu_items.length] = new Array("album.cgi", "More Pictures", null);
menu_items[menu_items.length] = new Array("tariffs.html", "Tariffs", null);
menu_items[menu_items.length] = new Array("contact.html", "Contact/Reservations", null);
menu_items[menu_items.length] = new Array("location.html", "Finding Us", null);
menu_items[menu_items.length] = new Array("maps.html", "Maps", null);
menu_items[menu_items.length] = new Array("transport.html", "Transport Connections", null);
menu_items[menu_items.length] = new Array("attractions.html", "Nearby Attractions", null);
menu_items[menu_items.length] = new Array("whatson.html", "What's On?", null);
var Images = new Array;

var y_loc = 200;
var y_gap = 23;
var x_loc = 50;

function p (str) {document.write(str);}

function ShowImage (imgNum,align) {
	if (imgNum > Images.length-1) {return;}
	var width = Images[imgNum][1] ? Images[imgNum][1] : 0;
	var border = Manager ? 0 : 0;
	document.write('<img id="Image'+imgNum+'" src="'+Images[imgNum][0]+'"');
	if (width) {
		document.write(' width='+width);
	}
	document.write(' border='+border);
	if (align) {
		document.write(' align='+align);
	}
	document.write('>');
	if (Images[imgNum][1]) {
		document.write('</a>');
	}
	if (Manager) {
//		document.write('<div "style=\"position:absolute; top:125; left:50; width:'+width+'; height:50; z-index:2;">');
		document.write('<form name=Upload'+imgNum+' ACTION="manage.cgi" METHOD="post" ENCTYPE="multipart/form-data">');
		document.write('<INPUT style="font-size:8pt;" TYPE="file" size=1 NAME="image">');
		document.write('<INPUT style="font-size:8pt;" TYPE=text size=1 name=width value='+width+'>');
		document.write('<INPUT style="font-size:8pt;" TYPE="submit" NAME="Submit" VALUE="Upload">');
		document.write('<input type=hidden name=file value="'+ThisFileName+'">');
		document.write('<input type=hidden name=imgNum value="'+imgNum+'">');
		document.write('<input type=hidden name=oldWid value="'+width+'">');
		document.write('</FORM>');
//		document.write('</div>');

	}
}

function MsIn (divobj) {
	divobj.style.backgroundImage='url(images/menu_in.gif)';
}
function MsOut (divobj) {
	divobj.style.backgroundImage='url(images/menu_out.gif)';
}
function print_menu () {
	for (var i=0;i<menu_items.length;i++) {
		document.write("<div id=\"" + menu_items[i][0] + "\" ");
		document.write("onMouseOver=\"MsIn(this);\" onMouseOut=\"MsOut(this);\" ");
		document.write("onClick=\"window.open('http://www.ferryman-southsea.co.uk/");
		if (Manager == 1) {
			document.write('manage.cgi?file=');
		}
		document.write(menu_items[i][0] + "','_top');\" ");
		document.write("style=\"background-image:url(images/menu_out.gif); ");
		document.write("width:180; height:18; z-index:2; padding:0px; border: #000000 0px solid;");
		document.write("position:absolute; top:"+y_loc+"; left:"+x_loc+";\""); 
		document.write("><a class=\"menu\" href=http://www.ferryman-southsea.co.uk/");
		if (Manager == 1) {
			document.write('manage.cgi?file=');
		}
		document.write(menu_items[i][0]);
		if (menu_items[i][2]) {document.write(" title=\"" + menu_items[i][2] + "\" ");}
		document.write(">" + menu_items[i][1]);
//		document.write("<img src=images/spacer.gif height=0 border=0 width=" + (160-7*menu_items[i][1].length) + ">");
 		document.write("</a></div>");
		y_loc = y_loc + y_gap;
	}
}
function print_logo () {
	document.write("<div style=\"position:absolute; top:30;  left:50; width:180; height:120; z-index:0; ");
	document.write("background-image:url(images/logo.gif);\" onClick=\"window.open('http://www.ferryman-southsea.co.uk/index.html','_top');\" ></div>");
	document.write("<div style=\"position:absolute; top:93;  left:192; width:38; height:35; z-index:3; ");
	document.write("background-image:url(images/oar.gif);\" onClick=\"window.open('http://www.ferryman-southsea.co.uk/index.html','_top');\" ></div>");

}
function print_name () {
	document.write("<div style=\"position:absolute; top:125;  left:50; width:170; height:50; z-index:2; ");
	document.write("background-image:url(images/name.gif);\" onClick=\"window.open('http://www.ferryman-southsea.co.uk/index.html','_top');\" ></div>");
}
function print_address () {
	y_loc = y_loc + y_gap;
	document.write("<div style=\"background-image:url(images/menu_out.gif); position:absolute; width:165; z-index:2; top:430; left:"+x_loc+";\">"); 
	document.write("<span class=menu><b>The Ferryman</b><br></span>");
	document.write("<span class=menu>16 Victoria Road South<br></span>");
	document.write("<span class=menu>Southsea, PO5 2BZ<br><br></span>");
	document.write("<span class=menu>Tel: 023 9287 5824<br></span>");
	document.write("<span class=\"menu\"><a href=\"mailto:theferrymanhotel@hotmail.com?subject=Website Enquiry\">email the ferryman</a></span>");
	document.write("</div>");
}
function print_logger () {
	document.write("<img src=../axs/ax.pl?trans.gif height=1 width=1 alt=\"\" />");
}

function print_albatross () {
	y_loc = y_loc + y_gap;
	document.write("<div style=\"background-image:url(images/menu_out.gif); position:absolute; width:165; z-index:2; top:550; left:"+x_loc+";\">"); 
	document.write("<span class=menu><a href=http://www.albatrossguesthouse.co.uk target=_blank>Albatross Guest House</a></span>");
	document.write("</div>");
}

function print_check_avail() {
	if (window.location.pathname.substring(window.location.pathname.lastIndexOf('/')+1) != 'contact.html') {
		document.write("<div style=\"position:absolute; z-index:3; top:29; left:650; width:200; height:45; border-color:black; border-style:solid;");
		document.write("background-color:red;text-indent:10;\" >");
		document.write("<center><a href=http://www.ferryman-southsea.co.uk/contact.html ");
		document.write("style=text-decoration:none;color:white;font-weight:bold;\">");
		document.write("Click Here Now to <br>Check Availability </a></center></div>");
	}
}

function print_email_address() {
	document.write('<div class=menu style="position:absolute; z-index:3; top:10; left:50;">');
	document.write('Email: <a style="text-decoration:none;" href="mailto:theferrymanhotel@hotmail.com?subject=Website Enquiry">');
	document.write('theferrymanhotel@hotmail.com</a></div>');
}
function print_selfserve() {
	y_loc = y_loc + y_gap;
	document.write("<div style=\"background-image:url(images/menu_out.gif); position:absolute; width:165; z-index:2; top:550; left:"+x_loc+";\">"); 
	document.write("<span class=menu><a href=http://www.ferryman-southsea.co.uk/selfservice target=_top>Selfservice</a></span>");
	document.write("</div>");
}
print_menu();
print_logo();
print_name();
print_address();
print_albatross();
print_logger();
print_check_avail();
print_email_address();
if (Manager) {print_selfserve();}

