var newsArray = new Array();


//   ******Instructions*****
//
//   To Create a News Item follow the format that is set out below in the section immediately below the instructions!
//
//   Firstly add the new member of the newsArray using a sequencial number
//   eg newsArray[2] = (" "); 
//   0 is always the first number in an array!
//
//   Next add the contents
//   the format is as follows
//   title, date, text, image
//   all sperated by a pipe |
//   if you don't have an image then leave that section empty
//   all images must be in the same directory as this script.
//   
//   The Text will support HTML tags, eg to add a carriage return use <br> or bold use <b> bold text </b> 
//
//   *********end of instructions************





newsArray[10] = ("Impression 434 for Spring delivery|13.05.2005|We have secured unit #86 of the Impression 434 production for delivery September 2005. This yacht will have a 3 cabin layout. There is one large double aft with ensuite head/shower. Foward is a double vee berth plus a twin bunk cabin of the port side with a head/shower opposite. This gives plenty of options for family coastal cruising or blue water cruising where either of the foward cabins can be used for long term storage. We have talked to a lot of clients before confirming this layout. Everyone has been very impressed with the superb island double aft cabin on the 434. Forex rates continue to be strong allowing this unit to be very attractively price at $399,000 for the base boat.|434.jpg");
newsArray[9] = ("Two More Elans on the Way|02.09.2005|Orders have been confirmed for another Elan Impression 434 (unit #111) and an Elan 40 (unit #228) The Elan 40 has been ordered with the performance rig and racing deck gear. Both boats are due out of factory mid November so we should have them in the water here in Auckland around mid January.|40.jpg");
newsArray[8] = ("New Impression Model Hits the Water|15.09.2005|The new Impression 344 by Elan is now in production following its debut at the Southhampton Boat this week. Following on from the hugely successful Impression 434 and 384, the new 344 is a big volume ten metre yacht with open ocean capability. The Impression interior themes have been continued with big headroom, lots of light and space and plenty of storage. The cockpit is extremely roomy and comfortable with folding wheel and walk-thru transom giving great accessibility. As with all Elan yachts, the Impression 344 meets the stringent Germanischer Lloyd specifications giving a strength and quality you can rely on.|344.jpg");
newsArray[7] = ("New Elan 340 is planned to be launched in the second quarter of 2006|08.02.2006|The Elan 340 is a complete new hi-tech design cruiser/racer with the same emphasis on top level performance to capturethe spiritof the competitive sailor and at the same time offering the well appointed comforts and style for the enjoyment of the cruising family. Practical solutions with suburb comfort are combined with beautiful craftsmanship and attention to detail to satisfy even the most demanding owner.|E340_5_b.jpg");
newsArray[6] = ("Impression 514 Maxi|08.02.2006|The Impression 514 Maxi is the largest sailing yacht to come from the Elan yard. Prestigious, modern and luxurious, the new Impression 514 bluewater cruiser sets a new benchmarkfor yachts in its class. Streamlined and elegant, her captivating style promises blissful cruising and endless enjoyment.|I514_2_b.jpg");
newsArray[5] = ("340 Now In Production|17.08.2006|Following the successful launch of the first unit in May, the sensational new Elan 340 is now in production with more than 30 orders already placed. Boasting a waterline length of 9.38 metres within her LOA of 9.99 metres, the 340 is the latest Elan design from Rob Humphreys. She follows in the very big footsteps of the 333 (over 500 hulls made) with more headroom and cabin length, an open transom and many new and attractive details. The interior is sharply detailed with colour keyed designer features and instant modern appeal. The layout gives two good double berths, a large head with separate wet locker, two full length settee berths in the saloon, a large fold out table and double sinks plus a separate navstation. Outside you see moulded hull decals, covered halyards on the cabin top, recessed hatches and handles, 5 cockpit lockers, a bowsprit option for the gennaker and an overall styling that makes a serious statement of quality and sailing capability. The new Elan 340 is a winner whichever way you look at her. The first unit into N.Z. will be here before Christmas.|340_1_water.jpg");
newsArray[4] = ("Impression 514 Debut at Genoa|04.10.2006|The new flagship for Elan Marine – the Impression 514 – will meet the yachting World for the first time at the Genoa Boatshow - October 7-14th. The Impression 514 will be available in 5 layout versions and with 2, 3, 4, or 5 cabins. Featuring a hydraulic dingy garage, a coaming stowed passerelle, 75hp or 100hp Volvo engines, copious storage, spa jet shower, flush deck hatches and halyards that come under the deck right to the helm area - the new Impression 514 is quite superb. Designer Rob Humphreys and Elan Marine have again produced a fast bluewater passage maker at a very competitive price. And all supervised and certified by Germanischer Lloyd’s Yacht Plus accreditation. The new Elan Impression 514 is set to follow the outstanding success of her little sister - the Impression 434.|514_cockpit.jpg");
newsArray[3] = ("4 New Elans on Their Way|04.10.2006|We are pleased to report the orders keep coming in. 2 Impression 434’s arrive mid October, the new 340 arrives at the end of November and another 434 in December. The good demand for the Impression 434 is not surprising – Elan have now built around 200 in the last two years. Great layout, master stateroom options, superb cockpit and fast passage-making all contribute to the success. Serious sailors appreciate a layout that allows port and starboard lee berths in the saloon – rather than the “yuppie” style galleys on some other brands that take away one side of the saloon sleeping area (depending on what tack you are on). Evan Still sailed his 434 back up from Akaroa this week (7 on board). When he docked in Westhaven his first words to us were – “I love the boat, I am delighted how well it sails.” She goes into charter for the summer in the Bay of Islands, then Evan will cruise the South Pacific next Winter.|");
newsArray[2] = ("Elan 340 – Euro Yacht of the Year|08.02.2007|The sensational new Elan 340 was awarded the prestigious European Yacht of the Year Award in January. Voted by 10 of Europe’s leading yachting journalists after extensive reviews including sailing trials, the Award is regarded as the pinnacle of excellence for the World’s production yacht builders. The reviews started in Barcelona in October and culminated in the presentations at the Dusseldorf Boat Show in late January. The Dusseldorf show is the biggest out-of-water Boat Show on the European calendar. Already more than 60 orders have been placed for the Elan 340.|EYOTY.jpg");
newsArray[1] = ("Elan 410 launched|20.02.2007|The Elan 410 in now in production. As the successor to the highly successful Elan 40 (over 250 built), the new 410 has a big heritage to continue. Using the fresh design elements of the sensational new Elan 340, the 410 continues with extended waterline length, deeper keels, bigger sailplan and the breezy modern interior with an emphasis on light, texture and functionality. Recessed hatches, covered halyard run, auto storing washboards and shorepower lines, plus copious cockpit lockers all add to the “grabber” look of the new model. Look out for the new Elan 410 in the regatta results coming out of Europe this sailing summer.|410_rear.jpg");
newsArray[0] = ("Elan 450 coming soon|04.04.2007|The evolution continues – First the Elan 340, then the Elan 410  - and now the radical Elan 450. The mould plugs are already built and the first production unit will debut at the Genoa Boat Show in October. The new Elan 450 is a very serious racing machine with a cruising layout and features to satisfy the discerning comfort merchant as well. The Elan 450 will be the first production yacht of its size and class to feature a twin wheel, twin rudder configuration. WATCH THIS SPACE !!!|450.jpg");





//  *************************************************************************************
//  ******* Do Not Touch Anything Below Here Unless you Know What you are Doing!!!!******
//  *************************************************************************************


function showNews(){
	var myHTML = "<br><br><table width=85% border=0>";
	slideShowOn = 0;
	var leftDiv = document.getElementById("leftColumn");
	var rightDiv = document.getElementById("rightColumn");
	var centerDiv = document.getElementById("centerColumn");
	var centerLowerDiv = document.getElementById("centerLowerColumn");
	for (var i = 0;i<newsArray.length;i++){
		var newsSplit = newsArray[i].split("|"); 
		var title = newsSplit[0];
		var date = newsSplit[1];
		var comments = newsSplit[2];
		var imagelocation = newsSplit[3];
		myHTML = myHTML + "<tr valign=top><td class=newstitle width=85%>" + title + "</td><td class=newsdate>" + date + "</td></tr>";
		if (imagelocation){
			myHTML = myHTML + "<tr valign=top><td class=blurb>" + comments + "</td><td class=hand><div id=smallimage" + i + "><img src=\"news/" + imagelocation + "\" width=80 onClick=shownewsimage('" + imagelocation + "," + i + "'); alt=\"Enlarge image\"></div></td></tr>";
			}
		else {
			myHTML = myHTML + "<tr valign=top><td class=blurb>" + comments + "</td><td>&nbsp;</td></tr>";
			}
		myHTML = myHTML + "<tr valign=top><td colspan=2><div id=enlargedimage" + i + "></div><hr></td></tr>";

	}
	myHTML = myHTML + "</table>";
	leftDiv.innerHTML = "&nbsp;"; 
	rightDiv.innerHTML = "&nbsp;"; 
	centerLowerDiv.innerHTML = "&nbsp;"; 
	centerDiv.innerHTML = myHTML; 
}
function shownewsimage(imagelocation){
	imageSplit= imagelocation.split(",");
	var enlargedimageDiv = document.getElementById("enlargedimage" + imageSplit[1]);
	var smallimageDiv = document.getElementById("smallimage" + imageSplit[1]);
	enlargedimageDiv.innerHTML = "<div class=hand><center><img src=\"news/" + imageSplit[0] + "\" width=416 height=320 onClick=hidenewsimage('" + imagelocation + "'); alt=\"Resize image\"></center></div>";
	smallimageDiv.innerHTML = "&nbsp;";
}
function hidenewsimage(imagelocation){
	imageSplit= imagelocation.split(",");
	var enlargedimageDiv = document.getElementById("enlargedimage" + imageSplit[1]);
	var smallimageDiv = document.getElementById("smallimage" + imageSplit[1]);
	enlargedimageDiv.innerHTML = "&nbsp;";
	smallimageDiv.innerHTML = "<img src=\"news/" + imageSplit[0] + "\" width=80 onClick=shownewsimage('" + imageSplit[0] + "," + imageSplit[1] + "'); alt=\"Enlarge image\">";
}
