// JavaScript Document

//Initialize the array 
var case_study = new Array();
case_study[0] = new Array( "img/cs/cs_Elite_right.jpg", "Elite Fitness stays in shape with MYOB EXO Business", "Trust is the foundation upon which the strong relationship between Elite Fitness and Enprise is built.<br/>Elite Fitness is New Zealand's leading home and commercial fitness equipment specialist. The company has stayed on top of its game since it began 15 years ago by continuously looking for the newest technology and cutting-edge design to advance fitness products for New Zealanders. ", "Case_Studies/Case_Study_Elite_Fitness.aspx?pageID=cs2");
case_study[1] = new Array( "img/cs/cs_Glengarry_right.jpg", "Glengarry toasts to business success, leveraging ERP Solution from Enprise", "As far as 'business carnage' goes this horror story is as good as it gets, but fortunately, it has a happy ending.<br/>Imagine you've employed a small army of highly skilled professionals and spent a truck-load of money on what you thought was a state-of-the-art system, from who you thought was the 'industry leader', only to end up almost crashing and burning your business in outstanding technological failure.", "Case_Studies/Case_Study_Glengarry_Hancocks.aspx?pageID=cs4" );
case_study[2] = new Array( "img/cs/cs_OBEX_right.jpg", "A big business solution at a small business price", "Although relatively small, with 26 staff, medical supplies company OBEX has sophisticated information requirements. OBEX Financial Manager, Chris Iles, wanted sophisticated customised reports and full integration of stock, financial and and general ledger information. &ldquo;Our new system has delivered everything Enprise said it would. We’re very happy with the software and the quality of the support,&rdquo; says Chris Iles.", "Case_Studies/Case_Study_Obex.aspx?pageID=cs6" );
case_study[3] = new Array( "img/cs/cs_Ellery_right.jpg", "A. Ellery & Sons says 100% YES to Exonet and Enprise", "The Appliance Connexion Group has established a nationwide network of stores trading under the 100% Your Electric Store name. When a new IT infrastructure was commissioned, Enprise was selected to provide ongoing business support and training to users.", "Case_Studies/Case_Study_A_Ellery_and_Sons.aspx?pageID=cs1" );
case_study[4] = new Array( "img/cs/cs_RonEnright_right.jpg", "Savvy distributor stays agile with Exonet and Enprise", "Forward-thinking Ron Enright Ltd has been reaping the business benefits associated with Exonet for over ten years thanks to its relationship with Enprise.<br/>Auckland-based Ron Enright is an importer and distributor of trade supplies of hand tools to the electronic and industrial industry.", "Case_Studies/Case_Study_Ron_Enright.aspx?pageID=cs7" );
case_study[5] = new Array( "img/cs/cs_SelfCare_right.jpg", "Quality service eases frown lines", "Beauty and spa product specialist Self Care has achieved greater efficiencies since implementing Exonet and continues to benefit from superior service from Enprise.<br/>New Zealand owned Self Care Group is dedicated to providing quality services and products for professional beauty, spa and well-being practitioners - as well as their direct clients - and is one of the country's leading suppliers.", "Case_Studies/Case_Study_Self_Care.aspx?pageID=cs8" );
case_study[6] = new Array( "", "Freedom Air implements Exonet", "Freedom Air implemented Exonet as key component of its financial management system in 2003. In the cutthroat business of airline operations Freedom Air positions itself as a low cost, no-fuss, friendly and easy to use company, and was looking for much the same qualities in an ERP system. While the Exonet business solution was very effective in itself, Freedom Air was dissatisfied with the support services from the company it had originally signed with, so it made the switch to Enprise in 2005 - and hasn't looked back.", "Case_Studies/Case_Study_Freedom_Air.aspx?pageID=cs3" );
case_study[7] = new Array( "", "Marine Equipment company, Lusty & Blundell, confidently navigates business growth", "The marine business for Lusty & Blundell is buoyant, but support systems were giving Jon Horne, Financial Controller, &lsquo;that sinking feeling.&rsquo;<br/>Horne respectfully points out that the faithful but overwhelmed dos-based system was no longer keeping pace with the business' need for more sophisticated analysis and reporting requirements.", "Case_Studies/Case_Study_Lusty_and_Blundell.aspx?pageID=cs5" );
case_study[8] = new Array( "", "Exonet simplifies business-life for Aluminium company", "Mention aluminium and most New Zealanders will respond with Ullrich, a household name synonymous with ladders and the like for more years than most of us can remember. Much longer and the next generation will have coined the phrase &lsquo;Ulluminium&rsquo;.", "Case_Studies/Case_Study_Ullrich_Aluminium.aspx?pageID=cs9" );


window.onload = function random_rightcs(){
	
	if(document.getElementById('articlePanel')){
		var rand = (Math.floor((Math.random() * case_study.length)));
		
		var img = "";
		if(case_study[rand][0] != "" && case_study[rand][0] != null){
			img = "<div class=\"image\"><img src=\"/" + case_study[rand][0] + "\" alt=\""+ case_study[rand][1] + "\"/></div>";
		}
		
		document.getElementById('articlePanel').innerHTML = img + "<div class=\"heading\">"+ case_study[rand][1] + "</div><p>" + case_study[rand][2] + "<br /><a href=\"http://www.enprise.co.nz/" + case_study[rand][3] + "\">Read more &gt;&gt;</a></p>"; 
	}


}
