
<!--
	descriptionArray=new Array(
							   "<a href='council-documents/plans/district-plan/matamata-piako-district-plan/281.html'>1.1</a> Information requirements for resource consents",
							   "<a href='council-documents/plans/district-plan/matamata-piako-district-plan/282-12-development-suitability.html'>1.2</a> Development suitability",
							   "<a href='council-documents/plans/district-plan/matamata-piako-district-plan/283.html'>1.3</a> Standards and terms for controlled activity resource consent applications",
							   "<a href='districtplan1.4.htm'>1.4</a> Assessment criteria for restricted discretionary, discretionary and non-complying resource consent applications",
							   "<a href='districtplan1.5.htm'>1.5</a> Notified and non-notified consents",
							   "<a href='districtplan3.1.htm'>3.1</a> Residential zone",
							   "<a href='districtplan3.2.htm'>3.2</a> Rural and rural-residential zones",
							   " <a href='districtplan3.3.htm'>3.3</a> Industrial zone and any site identified as a scheduled site with a development concept plan",
							   "<a href='districtplan3.4.htm'>3.4</a> Business Zone",
							   "<a href='districtplan3.5.htm'>3.5</a> Signage",
							   "<a href='districtplan4.1.htm'>4.1</a> Plantation and Conservation Forestry","<a href='districtplan4.2.htm'>4.2</a> Forestry and wood lot setbacks","<a href='districtplan4.3.htm'>4.3</a> Home Occupations","<a href='districtplan4.4.htm'>4.4</a> Marae, whare nui and housing developments","<a href='districtplan4.7.htm'>4.7</a> Dependent Persons Dwelling","<a href='districtplan4.9.htm'>4.9</a> Mining, Quarrying and Mineral Processing","<a href='districtplan4.10.htm'>4.10</a> Service Stations","<a href='districtplan4.11.htm'>4.11</a> Temporary activities","<a href='districtplan4.12.htm'>4.12</a> Cleanfill","<a href='districtplan5.1.htm'>5.1</a> Conservation","<a href='districtplan5.2.htm'>5.2</a> Noise","<a href='districtplan5.3.htm'>5.3</a> Vibration","<a href='districtplan5.4.htm'>5.4</a> Lighting and Glare","<a href='districtplan5.5.htm'>5.5</a> Air Emissions","<a href='districtplan5.6.htm'>5.6</a> Management and Disposal of Waste","<a href='districtplan5.7.htm'>5.7</a> Use and Storage of Hazardous Substances","<a href='districtplan6.2.htm'>6.2</a> Performance standards","<a href='districtplan7.1.htm'>7.1</a> General","<a href='districtplan7.2.htm'>7.2</a> Development contributions as a condition of resource consents","<a href='districtplan7.3.htm'>7.3</a> Payment of development contributions","<a href='districtplan8.2.htm'>8.2</a> Development controls","<a href='districtplan8.3.htm'>8.3</a> Performance standards","<a href='districtplan8.4.htm'>8.4</a> Subdivision","<a href='districtplan8.5.htm'>8.5</a> Activity related standards","<a href='districtplan9.1.htm'>9.1</a> Access, parking, loading","<a href='districtplan9.2.htm'>9.2</a> Railways","<a href='districtplan9.3.htm'>9.3</a> Airports","<a href='districtplan9.4.htm'>9.4</a> Roads","<a href='districtplan10.1.htm'>10.0</a> Natural Environment and Heritage","<a href='districtplan10.3.htm'>10.3</a> Conservation plans","<a href='districtplan11.1.htm'>11.1</a> General","<a href='districtplan11.3.htm'>11.3</a> Site suitability","<a href='districtplan11.4.htm'>11.4</a> Flooding","<a href='districtplan11.5.htm'>11.5</a> Geotechnical structural area","<a href='districtplan12.1.htm'>12.1</a> General","Schedule 5: Sites subject to a development concept plan","This is a Prohibited Activity therefore Rules are not applicable");

	hashedArray=new Array();
	hashedArray["1.1"]=0;
	hashedArray["1.2"]=1;
	hashedArray["1.3"]=2;
	hashedArray["1.4"]=3;
	hashedArray["1.5"]=4;
	hashedArray["3.1"]=5;
	hashedArray["3.2"]=6;
	hashedArray["3.3"]=7;
	hashedArray["3.4"]=8;
	hashedArray["3.5"]=9;
	hashedArray["4.1"]=10;
	hashedArray["4.2"]=11;
	hashedArray["4.3"]=12;
	hashedArray["4.4"]=13;
	hashedArray["4.7"]=14;
	hashedArray["4.9"]=15;
	hashedArray["4.10"]=16;
	hashedArray["4.11"]=17;
	hashedArray["4.12"]=18;
	hashedArray["5.1"]=19;
	hashedArray["5.2"]=20;
	hashedArray["5.3"]=21;
	hashedArray["5.4"]=22;
	hashedArray["5.5"]=23;
	hashedArray["5.6"]=24;
	hashedArray["5.7"]=25;
	hashedArray["6.2"]=26;
	hashedArray["7.1"]=27;
	hashedArray["7.2"]=28;
	hashedArray["7.3"]=29;
	hashedArray["8.2"]=30;
	hashedArray["8.3"]=31;
	hashedArray["8.4"]=32;
	hashedArray["8.5"]=33;
	hashedArray["9.1"]=34;
	hashedArray["9.2"]=35;
	hashedArray["9.3"]=36;
	hashedArray["9.4"]=37;
	hashedArray["10.0"]=38;
	hashedArray["10.3"]=39;
	hashedArray["11.1"]=40;
	hashedArray["11.3"]=41;
	hashedArray["11.4"]=42;
	hashedArray["11.5"]=43;
	hashedArray["12.1"]=44;
	hashedArray["s5"]=45;
	hashedArray["PRHB"]=46;

	function popupDIV (lt) {
		myArr = lt.split(",");
		var myReturnHTML = "";
		for(i in myArr) {
			
			myReturnHTML = myReturnHTML + "<p>" + descriptionArray[hashedArray[myArr[i]]] + "</p>";

		details.innerHTML = "<div style='float:right;background-color:#000; padding:5px;'><a href='javascript:void' style='color:#fff' onMouseDown='doKill()'>X</a></div>" + myReturnHTML;
		doPopup("details", 200, 270);
		}
	}

function doKill() {
	kill("details");
}

function doPopup(objectID, hoffset, voffset){
	/*	POPUPDIV Version 2
	Jenni Worboys. Orginal by David Kennett (2media.co.nz)

		Purpose
		-------
		Pops a DIV as passed by reference in objectID.
		The DIV is centered with its top left corner at the centre of the current screen
		(allowing for current scroll and window size) and displaced by the hoffset and voffset

		Parameters
		----------
		objectID :	ID of the DIV - the actual object reference is determined using the
					id and the crossDOM functions
		hoffset  :	integer that displaces the horizontal position.  The offset is subtracted
					from the centre X position (to displace right use negative values)
		voffset  :	integer that displaces the vertical position.  The offset is subtracted
					from the centre Y position (to displace down use negative values)

		Return value
		------------
		Nothing is returned.  However, the appropriate DIV is made visible.
	*/

		// get the crossBrowser reference to the object and its style
		var myDOM=ReturnDOM(objectID);   
		var myDOMStyle=ReturnDOMStyle(objectID);

		// determine the x and y values for the screen based on the 'document' settings
		var currentsx = HorizontalScrollPosition();
		var currentsy = VerticalScrollPosition();
		var currentwx = ViewableWidth();
		var currentwy = ViewableHeight();

		// set the position of the popup object at mid screen (displaced by offsets)
		PositionObject(objectID, ((currentsx + currentwx/2)- hoffset), (currentsy + currentwy/2) - voffset);

		myDOMStyle.display=''; // bug fix for IE ... otherwise only displays popup on first call!!!
		myDOMStyle.visibility='visible';
	}

//-->

