function opentable(table, w, h) {
	var t = "http://www.radiusprop.co.nz/portfolio/" + table + ".html";
	window.open(t,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=" + w + ", height=" + h);
}

var arr_default = new Array("oops","oops");
var arr_peppertree = new Array("Peppertree Home and Hospital","<p><strong>Peppertree Home and Hospital</strong> is at 107 Roberts Line, Palmerston North.  The property comprises a licensed 40 bed rest  home, together with a 20 bed hospital, which is a purpose built facility  constructed in the early 1990s, with the private hospital having been added in  1994.  The property is single level and  low maintenance in design and is situated on a road frontage site of 6,583  square metres.</p>");
var arr_thornleigh = new Array("Thornleigh Rest Home and Hospital","<p><strong>Thornleigh Rest Home and Hospital</strong> is at 25 Heta    Road, Highlands   Park, New Plymouth. The  property comprises a purpose built split level rest home and hospital,  providing a total of 65 beds, being 16 hospital and 49 rest home beds. The 49  rest home beds consist of 14 ensuited rest home beds, 29 single rooms and two  double rooms. Land area comprises 6,654 square metres, fronting onto Heta Road in New  Plymouth.</p>");
var arr_seaview = new Array("Seaview Retirement Home","<p><strong>Seaview Retirement Home</strong> is at 839    Whangarei Heads Road, Whangarei, and comprises a  licensed 34 bed rest home on a rear site of 1.543 hectares. The property has  ongoing development potential.</p>");
var arr_maeroa = new Array("Maeroa Lodge Hospital","<p><strong>Maeroa</strong><strong> Lodge   Hospital</strong> is at 135    Maeroa Road, Hamilton,  and comprises a single level purpose built hospital offering a total of 97  licensed hospital beds, with 75 standard hospital rooms and 22 ensuited single  hospital rooms.  Land area comprises  5,536 square metres on Maeroa Road.</p>");
var arr_stjoans = new Array("St Joan's Hospital and Rest Home","<p>The Company made an investment of $2.05 million  (representing 61% of equity) on a joint venture basis in the <strong>St Joan’s Hospital and Rest Home</strong>, 371 Peachgrove Road, Hamilton.   The Peachgrove Road  property operates a 99 bed facility and is well established in Hamilton.</p>");
var arr_fulton = new Array("Fulton Rest Home","<p>The Company invested $1.60 million (representing 48% of equity) in  a proportionate ownership scheme organised by the Manager in the <strong>Fulton Rest Home</strong>, 530 Hillside Road, Caversham, Dunedin. The 6,085m2  property comprises an integrated facility of interconnected buildings  containing offices, hospital, dementia unit and rest home facilities with 93  licensed beds in suburban Dunedin.  Most of  the building structure is between two and three years in age.  Caversham is an inner city suburb close to St  Clair beach, with a flat land contour and three access points.</p>");
var arr_baycare = new Array("Baycare Home and Hospital","<p><strong>Baycare Home and Hospital</strong> is located at 361 Puketona Road, Haruru Falls,  Paihia.  The property is a single level,  50 bed facility comprising 18 hospital beds and 32 rest home beds on a 1.17  hectare site (11,700m2).</p>");
var arr_arrancourt = new Array("Arran Court Home and Hospital","<p><strong>Arran Court Home and Hospital</strong> is located at 85 McLeod Rd, Te  Atatu South, Waitakere   City.  The property is a single level building on a  5,129m2 site in an established residential area.  The building dates back to the mid-1980’s  with a hospital facility added in 2001/2002, and comprising 2,705m2  of total improvements.  The 102 bed  facility comprises 50 hospital beds and 52 rest home beds.</p>");


function viewproperty(prop) {

	if (document.getElementById) {
		var c = document.getElementById('property_content');
		var p = document.getElementById('portfolio_content');
		var b = document.getElementById('page_portfolio');
		var proparr = new Array();
		
		switch(prop) {
			case "peppertree": 
				proparr = arr_peppertree;
				break;
			case "thornleigh": 
				proparr = arr_thornleigh;
				break;
			case "seaview": 
				proparr = arr_seaview;
				break;
			case "maeroa": 
				proparr = arr_maeroa;
				break;
			case "stjoans": 
				proparr = arr_stjoans;
				break;
			case "fulton": 
				proparr = arr_fulton;
				break;
			case "baycare": 
				proparr = arr_baycare;
				break;
			case "arrancourt": 
				proparr = arr_arrancourt;
				break;
			case "ascot": 
				proparr = arr_ascot;
				break;
			case "stoney": 
				proparr = arr_stoney;
				break;
			default:
				proparr = arr_default;
				break;
		}

		var i = '<div id="property_image"><a href="images/propimg/' + prop + '.jpg" target="_blank"><img src="http://radiusprop.co.nz/images/propimg/' + prop + '_thumb.jpg" height="100" width="150" border="0" alt="property image" /></a><br />click to enlarge</div>';		
		var h = '<h2 id="property_heading">' + proparr[0] + '</h2>';		

		p.innerHTML = "";	
		c.innerHTML = h + i + proparr[1] + "<p id=\"prevnext\"><a href=\"portfolio.html\">&lt; Back to Portfolio page</a></p>";
		b.className = "page_" + prop;
		//alert(i.innerHTML);
	}
}

function hideImage() {
	var el = document.getElementById('property_image');
	el.style.display = "none";
}

