var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var curPage = 0;
switch (sPage)
{
	case "index.php":
		curPage = 0;
	break;
	case "the_issues.php":
	case "carbon_emission.php":
	case "location.php":
	case "rpm.php":
		curPage = 2;
	break;
	
	case "responsible_building.php":
	case "the_construction_process.php":
	case "life_building.php":
	case "health_occupants.php":
		curPage = 4;
	break;
	case "pdp.php":
	case "th.php":
		curPage = 6;
	break;
	case "developments.php":
	case "have_site.php":
	case "bladon.php":
	case "faringdon.php":
		curPage = 8;
	break;
	case "investor_information.php":
	case "our_investors.php":
	case "prospectus.php":
	case "taxation.php":
	case "dividendPolicy.php":
	case "financial.php":
	case "legal.php":
	case "development_budget.php":
	case "professional_team.php":
	case "important_notice.php":
		curPage = 10;
	break;
	case "buy_a_house.php":
	case "register_your_interest.php":
		curPage = 12;
	break;
	case "press.php":
		curPage = 14;
	break;
	case "links.php":
		curPage = 16;
	break;
	case "siteMap.php":
	case "copyright.php":
		curPage = 15;
	break;
}
var isHorizontal=1;
var pressedItem = curPage;
var blankImage="_";
var fontStyle="bold 8pt Arial";
var fontColor=["#FFFFFF","#037abc"];
var fontDecoration=["none","none"];

var itemBackColor=["#000000","#000000"];
var itemBorderWidth=0;
var itemAlign="left";
var itemBorderColor=["#000000","#cccccc"];
var itemBorderStyle=["solid","solid"];
var itemBackImage=["",""];
var menuBackImage="-";
var menuBackColor="#000000";
var menuBorderColor="#000000";
var menuBorderStyle="solid";
var menuBorderWidth=0;
var transparency=100;
var transition=24;
var transDuration=500;
var shadowColor="#037abc";
var shadowLen=0;
var menuWidth="947px";

var itemCursor="hand";
var itemTarget="";
var statusString="text";
var subMenuAlign = "left";
var iconTopWidth  = 0;
var iconTopHeight = 0;
var iconWidth=0;
var iconHeight=0;
var arrowImageMain=["images/sep.jpg","../images/sep.jpg"];
var arrowImageSub=["images/se.jpg","../images/sp.jpg"];
var arrowWidth=1;
var arrowHeight=10;
var itemSpacing=0;
var itemPadding=2;

var cssStyle=1;
var cssClass="topMenu";

var separatorImage="-";
var separatorWidth="2";
var separatorHeight="12";
var separatorAlignment="center";

var separatorVImage="images/sep.jpg";
var separatorVWidth="1";
var separatorVHeight="10";

var moveCursor = "move";
var movable = 0;
var absolutePos = 0;
var posX = 50;
var posY = 206;

var floatable=0;
var floatIterations=0;

var itemStyles = [
   ["CSS=topItemNormal,topItemOver", "itemWidth=1"],
   ["CSS=itemNormal,itemOver"],
   ["CSS=itemNormal,itemOver", "itemWidth=1"],
];

var menuStyles = [
   ["CSS=submenu"],
];

//menuITEM
var menuItems = 
[
    ["&nbsp;&nbsp;HOME","index.php","","","","","0"],
    ["-"],
    ["THE ISSUES","the_issues.php","","","","","0"],
		["|Introduction","the_issues.php","","","","","1"],
		["|Residential Property Market","rpm.php","","","","","1"],
		["|Location","location.php","","","","","1"],
		["|CO2 and Buildings","carbon_emission.php","","","","","1"],
	["-"],
    ["RESPONSIBLE BUILDING","responsible_building.php","","","","","0"],
		["|Introduction","responsible_building.php","","","","","1"],
		["|The Construction Process","the_construction_process.php","","","","","1"],
		["|The Life of the Building","life_building.php","","","","","1"],
		["|The Health of the Occupants","health_occupants.php","","","","","1"],
	["-"],
	["PROPERTY DEVELOPMENT PARTNERS","pdp.php","","","","","0"],
		["|Introduction","pdp.php","","","","","1"],
		["|T. H. Kingerlee & Sons Limited","th.php","","","","","1"],
	["-"],
	["DEVELOPMENTS","developments.php","","","","","0"],
		["|Introduction","developments.php","","","","","1"],
		["|Have you a site","have_site.php","","","","","1"],
		["|Bladon","bladon.php","","","","","1"],
		["|Faringdon","faringdon.php","","","","","1"],
	["-"],
	["INVESTOR INFORMATION&nbsp;","our_investors.php","","","","","0"],
		["|Our Investors","our_investors.php","","","","","1"],
		["|Prospectus and Application Form","prospectus.php","","","","","1"],
		["|Dividend Policy","dividendPolicy.php","","","","","1"],
		["|Taxation","taxation.php","","","","","1"],
		["|Financial Statements","financial.php","","","","","1"],
		["|Legal Agreements","legal.php","","","","","1"],
		["|Development Budget","development_budget.php","","","","","1"],
		["|The Professional Team","professional_team.php","","","","","1"],
		["|Important Notice","important_notice.php","","","","","1"],
	["-"],
	["BUY A HOUSE","buy_a_house.php","","","","","0"],
		["|Register your Interest","buy_a_house.php","","","","","1"],
	["-"],
	["PRESS","press.php","","","","","0"],
	["-"],
	["LINKS&nbsp;&nbsp;","links.php","","","","","0"],
	
		
];

apy_init();