	//  NOTE changing nothing except within the quotes, or adding a new array element
					 								
	// config variables
		copyr=new Date();
  		copyrightYear=copyr.getFullYear();
		var copyleft="&copy;&nbsp;FMG&nbsp;" + (copyrightYear);
		var galDescSize=45;

		new scrollObject("scrlHeadlines", 160, 118, "up", 10000, 1.02);
		//new scrollObject("scrlNewsLetter", 140, 30, "up", 2000, 0.001);
		//new scrollObject("scrlPosts", 160, 30, "up", 5000, 1.5);

		var artFold="articles/";
		var artPage="/article.html";
		var artExt=".html";
		
		// get parent page name into var - for the back button on articles
		var sPath = window.parent.location.pathname;
		var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
		
		// build absolute path for permanent link
		var sProto= window.parent.location.protocol + "//";
		var sHost = window.parent.location.hostname;
		var sPath2=sPath.substring(0,sPath.lastIndexOf('/'));
				//required for functions.js
				var nn4 = (document.layers);
				var nn6 = (document.getElementById && !document.all);
				var ie4 = (document.all && !document.getElementById);
				var ie5 = (document.all && document.getElementById);

				
		// GALLERY VARS
		var imgcols=4;		// number of columns to show
		var showPerPage=28;  // number of items per page - mutiple of imgcols
		var maxarticles=5;	 // number of articles to displayon carbon pages
		
		// google analytics
		var _gaq = _gaq || [];
  		_gaq.push(['_setAccount', 'UA-17054893-1']);
  		_gaq.push(['_trackPageview']);
  		(function() {
    		var ga = document.createElement('script'); 
			ga.type = 'text/javascript'; 
			ga.async = true;
    		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  		})();

	
	// Email vars must all be included in contact page for body onload all
			 // id code, email address, display email address (else use innerhtml of link), included in contacts page
		   var emailAddress=new Array(
			new Array("EVAN","evan@forestmanagement.co.nz",1,1),
			new Array("EVAN_q","evan@forestmanagement.co.nz",0,1),
			new Array("DAVE","dave@forestmanagement.co.nz",1,1),
				//new Array("DAVED","dunnd@xtra.co.nz",1,1),
			new Array("DAVED_q","dunnd@xtra.co.nz",0,1),
			new Array("DAMIANB","damian@tasmanforest.co.nz",1,1),
			new Array("DAMIANB_q","damian@tasmanforest.co.nz",0,1),
				//new Array("LEITHC","leithch@xtra.co.nz",1,1),
			new Array("LEITHC_q","leithch@xtra.co.nz",0,1),
			new Array("SCOTT_q","scott@forestmanagement.co.nz",0,1),
			new Array("SCOTT","scott@forestmanagement.co.nz",0,0),
			new Array("GLENNM","glenn@forestmanagement.co.nz",1,1),
			new Array("INFOFMG","info@forestmanagement.co.nz",1,1),
			new Array("INFOFMG_q","info@forestmanagement.co.nz",0,1),
			new Array("INFOTFM","office@tasmanforest.co.nz",1,1),
			new Array("TAMATI","tamati@tasmanforest.co.nz",1,1),
			new Array("TAMATI_q","tamati@tasmanforest.co.nz",0,1),
			new Array("CRAIGM","craig@tasmanforest.co.nz",1,1),
			new Array("INFOFMN","garyc@forestmanagement.co.nz",1,1),
			new Array("INFOFMN1","granth@forestmanagement.co.nz",1,1),
			new Array("GRANT","granth@forestmanagement.co.nz",1,1),
			new Array("GRANT_q","granth@forestmanagement.co.nz",0,1),
			new Array("GARY","garyc@forestmanagement.co.nz",1,1),
			new Array("BILLD","billd@forestmanagement.co.nz",1,1),
			new Array("JEREMY","jeremy@tasmanforest.co.nz",1,1),
			new Array("GARY_q","garyc@forestmanagement.co.nz",0,1)
		)
		
	// NEWSLETTER 
	// onclick=\"javascript:pageTracker._trackPageview('newsletters/" + latestnl + ".pdf');\"
	latestnl="Autumn_2011";			// less the .pdf								
	
	var newsLetter=new Array(
		"Regional Updates",
		"Export Markets",
		"Domestic Updates",
		"ETS Update",
		"Canterbury Earthquake"
	)  
	
	
	// HEADLINES
	var hL2=new Array(
		"pre1990_rego_deadline.html",
		"Pre 1990 ETS registration deadline."
		); 
	var hL3=new Array(
		"earthquake.html",
		"Christchurch earthquake."
		); 
	var hL4=new Array(
		"government_announce_carbon_measure_criteria.html",
		"Government announces carbon measurement criteria."
		); 
	var hL5=new Array(
		"new_address.html",
		"New Christchurch premises for FMG."
		); 
		
	// HEADLINES (BY LOGO) 
	var headLiner=new Array(
		"<table border=0 cellpadding=0 cellspacing=0 width=\"100%\" height=\"100%\"><tr><td width=\"100%\" class=\"headliner\" ><a href=\"#\" onclick=\"changePage('articles/" + hL2[0] + "')\" ><b>" + hL2[1] + "</b></a></td></tr></table>",
		"<table border=0 cellpadding=0 cellspacing=0 width=\"100%\" height=\"100%\"><tr><td width=\"100%\" class=\"headliner\" ><a href=\"#\" onclick=\"changePage('articles/" + hL3[0] + "')\"><b>" + hL3[1] + "</b></a></td></tr></table>",
		"<table border=0 cellpadding=0 cellspacing=0 width=\"100%\" height=\"100%\"><tr><td width=\"100%\" class=\"headliner\" ><a href=\"newsletters/" + latestnl + ".pdf\" target=\"_blank\" title=\"Newsletter will open in a new window\"><b>" + latestnl.replace("_"," ") + " Newsletter<br/>Out Now!</b></a></td></tr></table>",
		"<table border=0 cellpadding=0 cellspacing=0 width=\"100%\" height=\"100%\"><tr><td width=\"100%\" class=\"headliner\" ><a href=\"#\" onclick=\"changePage('articles/" + hL4[0] + "')\"><b>" + hL4[1] + "</b></a></td></tr></table>",
		"<table border=0 cellpadding=0 cellspacing=0 width=\"100%\" height=\"100%\"><tr><td width=\"100%\" class=\"headliner\" ><a href=\"#\" onclick=\"changePage('articles/" + hL5[0] + "')\"><b>" + hL5[1] + "</b></a></td></tr></table>"
		// LAST ITEM HAS NO COMMA AT END
	)

													
	mainMenu="<ul id=\"dropDown\" class=\"dbMenu\">";
    mainMenu+="	<li><a href=\"index.html\">&nbsp;Home</a></li>";
	mainMenu+="	<li><a href=\"why.html\">&nbsp;Why FMG</a></li>";
	mainMenu+="	<li><a  href=\"services.html\">&nbsp;Services</a></li>";
	mainMenu+="	<li><a href=\"carbon.html\">Carbon Forestry</a>";
	mainMenu+="		<ul>";
	mainMenu+="		   <li><a href=\"carbon_forestry.html\">Forestrys Role</a></li>";
	mainMenu+="		   <li><a href=\"carbon_fmg.html\">What we're doing</a></li>";
	mainMenu+="		   <li><a href=\"#\" onclick=\"return false;\">Schemes</a>";
	mainMenu+="		   		<ul>";
	mainMenu+="		   			  <li><a href=\"carbon_ets.html\">ETS</a></li>";
	mainMenu+="		   			  <li><a href=\"carbon_ags.html\">AGS</a></li>";
	mainMenu+="		   			  <li><a href=\"carbon_pfsi.html\">PFSI</a></li>";
	mainMenu+="				</ul>";
	mainMenu+="		   </li>";
	mainMenu+="		   <li><a href=\"carbon_reg.html\">Registration</a></li>";
	mainMenu+="		   <li><a href=\"carbon_trade.html\">Trading</a></li>";
	mainMenu+="		</ul>";
	mainMenu+="	</li>";
	mainMenu+="	<li><a href=\"#\" onclick=\"return false;\">&nbsp;Resources</a>";
	mainMenu+="		<ul>";
	mainMenu+="		   <li><a href=\"gallery.html\">Photo Gallery</a></li>";
	mainMenu+="		   <li><a href=\"newsletters.html\">Newsletters</a></li>";
	mainMenu+="		   <li><a href=\"news.html\">Latest News</a></li>";
	mainMenu+="		   <li><a href=\"about.html\">About FMG</a></li>";
	mainMenu+="		   <li><a href=\"faq.html\">F.A.Q</a></li>";
	mainMenu+="		   <li><a href=\"history.html\">History</a></li>";
	mainMenu+="		   <li><a href=\"sitemap.html\" >Site Map</a></li>";
	mainMenu+="		</ul>";
	mainMenu+="	</li>";
	mainMenu+="	<li><a href=\"contact.html\">&nbsp;Contact</a></li>";
	mainMenu+="</ul>";

	var sitemap=new Array(
			new Array(1,0,"Home","index.html","The Forest Management Group provides professional forestry services for..."),
			new Array(2,0,"Why FMG","why.html","A successful forest investment must grow a crop which will meet the..."),
			new Array(3,0,"Services","services.html","We offer expertise in the following areas, investment advice, feasibility..."),
			new Array(4,0,"Carbon Forestry","carbon.html","Carbon Forestry developed from government legislation targeting climate change in New Zealand. It..."),
			new Array(5,4,"Forestrys Role","carbon_forestry.html","Forestry has a significant role to play in climate change policy. This is due to the sequestration..."),
			new Array(6,4,"What We're Doing","carbon_fmg.html","Forest Management Group has been heavily involved in working with the Emissions Trading Scheme since..."),
			new Array(7,4,"Schemes","",""),
			new Array(8,7,"ETS","carbon_ets.html","The Emissions Trading Scheme (ETS) is a government initiative to offset greenhouse gas emissions..."),
			new Array(9,7,"AGS","carbon_ags.html","The Afforestation Grants Scheme (AGS) is a government initiative to offset greenhouse gas emissions..."),
			new Array(10,7,"PFSI","carbon_pfsi.html","The Permanent Forest Sink Initiative (PFSI) is a government initiative to offset greenhouse gas..."),
			new Array(11,4,"Registration","carbon_reg.html","Carbon forestry offers a new income stream for forest owners. To take advantage of these you need to..."),
			new Array(12,4,"Trading","carbon_trade.html","Carbon forestry adds a significant new income stream to traditional forest investment. Carbon units..."),
			new Array(13,0,"Resources","",""),
			new Array(14,13,"Photo Gallery","gallery.html","A sampling of photo and video taken over the years."),
			new Array(15,13,"Newsletters","newsletters.html","This page contains historical copies of the Forest Management Group newsletter."),
			new Array(16,13,"Latest News","news.html","A brief summary of the current events relevant to the forestry industry. News items are sourced..."),
			new Array(17,13,"About FMG","about.html","The Forest Management Group is a group of three independent companies, based in Christchurch, New..."),
			new Array(18,13,"F.A.Q","faq.html","A list of frequently asked questions."),
			new Array(19,13,"History","history.html","Forest Management Ltd was formed in 1994 and specializes in forest consultancy, establishment, tending..."),
			new Array(21,13,"Site Map","sitemap.html","This page shows the page structure utilised on this website."),
			new Array(22,0,"Contact","contact.html","Contact information for Forest Management Group and affiliated companies.")
		)

	defEts="An initiative to create a market for the sale and purchase of carbon credits.";		
	defAgs="Provides a limited pool of funds to encourage the establishment of new forests.";		
	defPfsi="Encourages establishment of permanent forests on land by providing incentive to owner.";		

	// THREE rotating pictures in header
	/***********************************************
	* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
	* This notice MUST stay intact for legal use
	* Visit http://www.dynamicdrive.com/ for this script and 100s more.
	***********************************************/
  	var fadeimages1=new Array()
		//SET IMAGE PATHS. Extend or contract array as needed
		fadeimages1[0]=["graphics_hdr/header_pic_1.gif", "", ""] //plain image syntax
		fadeimages1[1]=["graphics_hdr/header_pic_2.gif", "", ""] //image with link syntax
		fadeimages1[2]=["graphics_hdr/header_pic_3.gif", "", ""] //image with link and target syntax
		fadeimages1[3]=["graphics_hdr/header_pic_4.gif", "", ""]
		fadeimages1[4]=["graphics_hdr/header_pic_5.gif", "", ""]
		fadeimages1[5]=["graphics_hdr/header_pic_6.gif", "", ""]
		fadeimages1[6]=["graphics_hdr/header_pic_7.gif", "", ""]
		fadeimages1[7]=["graphics_hdr/header_pic_8.gif", "", ""] 
		fadeimages1[8]=["graphics_hdr/header_pic_9.gif", "", ""]
		fadeimages1[9]=["graphics_hdr/header_pic_10.gif", "", ""]
	
	var fadeimages2=new Array()
		//SET IMAGE PATHS. Extend or contract array as needed
		fadeimages2[0]=["graphics_hdr/header_pic_11.gif", "", ""] //plain image syntax
		fadeimages2[1]=["graphics_hdr/header_pic_12.gif", "", ""] //image with link syntax
		fadeimages2[2]=["graphics_hdr/header_pic_13.gif", "", ""] //image with link and target syntax
		fadeimages2[3]=["graphics_hdr/header_pic_14.gif", "", ""]
		fadeimages2[4]=["graphics_hdr/header_pic_15.gif", "", ""]
		fadeimages2[5]=["graphics_hdr/header_pic_16.gif", "", ""]
		fadeimages2[6]=["graphics_hdr/header_pic_17.gif", "", ""]
		fadeimages2[7]=["graphics_hdr/header_pic_18.gif", "", ""] 
		fadeimages2[8]=["graphics_hdr/header_pic_19.gif", "", ""]
		fadeimages2[9]=["graphics_hdr/header_pic_20.gif", "", ""]

	var fadeimages3=new Array()
		//SET IMAGE PATHS. Extend or contract array as needed
		fadeimages3[0]=["graphics_hdr/header_pic_21.gif", "", ""] //plain image syntax
		fadeimages3[1]=["graphics_hdr/header_pic_22.gif", "", ""] //image with link syntax
		fadeimages3[2]=["graphics_hdr/header_pic_23.gif", "", ""] //image with link and target syntax
		fadeimages3[3]=["graphics_hdr/header_pic_24.gif", "", ""]
		fadeimages3[4]=["graphics_hdr/header_pic_25.gif", "", ""]
		fadeimages3[5]=["graphics_hdr/header_pic_26.gif", "", ""]
		fadeimages3[6]=["graphics_hdr/header_pic_27.gif", "", ""]
		fadeimages3[7]=["graphics_hdr/header_pic_28.gif", "", ""] 
		fadeimages3[8]=["graphics_hdr/header_pic_29.gif", "", ""]
		fadeimages3[9]=["graphics_hdr/header_pic_30.gif", "", ""]
	

