var urltosite = location.protocol + "//" + location.hostname + "/dev/";

function getcurrentpage() { 
	if (!document.getElementsByTagName) return;  
 	var anchors = document.getElementsByTagName("a"); 
 	var thispage = location.href; 
 	for (var i=0; i<anchors.length; i++) {  
 		var anchor = anchors[i]; 
 		thisHREF = anchor.getAttribute("href"); 
 		if ((thisHREF == thispage) || ( urltosite + thisHREF == thispage)) { 
 			anchor.id = "current"; 
 			return; 
 		} 
 	}  
} 

function changeBiogContent(name) {
	switch(name)
	{
	case 'robnewman':
	  document.getElementById("biogs").innerHTML = "<h1>Rob Newman, Founding Partner, Chief Development Officer </h1><p>Rob had many years of experience as a swaps and options market maker in the Energy, Soft Commodities and Metals derivatives markets with investment banks such as Credit Lyonnais Rouse and Chase Manhattan as well as working at trading companies HETCO and Phibro.  Aside from his trading roles, Rob was also instrumental in building trading and risk management systems for three of his former employers.  Rob has also gained experience on the broking side of the energy markets during his time at StarSupply and TFS.    Rob holds a BA (Hons) in Accounting & Finance.  Commoditex was set up in 2007 to develop and provide Software Tools for Traders in the Energy markets.</p><p> </p>";
	  break;
	case 'nickmooney':
	  document.getElementById("biogs").innerHTML = "<h1>Nick Mooney, COO, Head of Sales & Marketing</h1><p>Nick is a graduate in Biological Chemistry and Business Personnel Management.  He entered the Energy market place in 1992 as European Director of Human Resources for a Global energy company, before transferring to a commercial origination role in Natural Gas and Electricity origination in 1995.  In 1998 he set up the European Weather Derivative function for the organisation before becoming Marketing Director for On-Line Energy Derivative Trading in 2000.  From 2004 to 2009 he was an Executive Search Consultant in the Global Energy Markets.  Nick joined Commoditex in 2009 to spearhead the marketing and sales of the CurvePlex suite of Trader Tools to a wider market.</p>";
	  break;
	case 'josephyeo':
	  document.getElementById("biogs").innerHTML = "<h1>Joseph Yeo, Chief Technical Officer</h1><p>Joseph has worked within the IT sector divided between Europe and Asia.  After completing a BSc in Engineering at Trinity College Dublin he started his career in Project Management within the telecommunications sector.  He studied for an MSc in Intelligent Systems at Brunel University before becoming involved in IT and Internet technologies.Joseph’s expertise is in providing technical solutions at an enterprise level in a wide range of sectors including; banking, ecommerce, insurance, government and education.  After several years in employment, he started up his own software development consultancy business in Malaysia.  On returning to the UK he joined Commoditex Ltd as a Partner.</p><p> </p>";
	  break;
	case 'martinfreedman':
	  document.getElementById("biogs").innerHTML = 	"<h1>Martin Freedman, Chief Information Officer</h1><p>Martin has a Masters Degree in Intelligent Systems from Brunel University and a BSc in Electrical and Electronic Engineering from Imperial College, London. He has been in the software and finance fields for 25 years.</p><p>Highlights include: architecting the direct access day trading platform CyberTrader and co-founding the business that has become Charles Schwab&#39;s flagship trading environment; Technology Director for M.A.I.D. plc being technical lead on the takeover of Knight-Ridder Information to form The Dialog Corporation plc.; developing commodities trading, market neutral models and risk management systems including for HSBC (WITTE) and Joe Richie (Fox River);  co-founding GameAccount.com, the leading online skill-gaming platform. Martin joined in 2009 to enhance both the technology and financial information competitive advantage of Commoditex.</p>";
	  break;
	case 'lazaruscardoza':
	  document.getElementById("biogs").innerHTML = 	"<h1>Lazarus Cardoza, Head of IT Services and Support</h1><p> Lazarus is a very experienced and proven Project Management and Service Delivery Professional (PRINCE 2 Practitioner & ITIL Foundation certified) with 18 years experience in the IT sector. Starting from a Software development background in the early 1990&#39;s, he has now successfully ran his own independent Project Management & Service Delivery consultancy for such clients as BP, Phillips Electronics, EA Games and EDS. Lazarus has had extensive experience in overseas Global Investment Banking & IT Consultancy, most notably through working for JP Morgan Chase & Co for 8 years, Lazarus has worked throughout Malaysia, EMEA and in Latin America where the focus was on introducing accelerated delivery of IT Infrastructure & Services projects in high pressure, results focused environments.</p>";
	  break;
	default:	
	}	
		
}

function changeProdContent(name) {
	switch(name)
	{
	case 'curvemanager':
	 document.getElementById("prods").innerHTML = "<h1>Curve Manager </h1><p>The Curve Management system CurvePlex&#0153; currently allows Oil Traders to efficiently manage the pricing of crude and related oil product curves in real time by providing a set of algorithms for the Trader to use to set up how their curves should behave across time and commodity classes. The main features of the system are:<ul><li>Efficient management of both futures and OTC swap prices out to a maximum 20 years in real time.<li>Static data is updated such as holidays, expiry data, contract specifications.<li>Utilises live market data feeds to update Futures Curves automatically.<li>The system automatically rolls the Curve dates.<li>Allows users to efficiently share price information across organisation and/or with customers in real time. CurvePlex&#0153; permits multi-trader updates to curves across different markets, which provide updated curves live on screen. <li>Minimal input required to update curves across product groups by linking curve price movements from one commodity curve to another.<li>Prices changed by ctrl up/down rather than typing over existing prices – vital in a volatile market.<li>Updating of quarterly, seasonal, yearly markets and spreads translate into monthly / daily / weekly markets automatically.<li>Front oil curve movements automatically translated into movements in the back end of the curve.<li>Customisable User Interface with multi-screen functionality.<li>Curve data generated in the system is saved every 5 minutes and saved to the Commoditex Database.<li>Ability to download curves into Excel for further analysis.</ul></p><center><img src='images/curvemanager.png'/></ceneter>";
	  break;
	case 'ordermanager':
	  document.getElementById("prods").innerHTML = "<h1>Order Manager</h1><p>The Order Manager is a module which allows a Company to record and transmit Client Market Orders within its organisation in real time. </p><p>The order manager takes all Orders and groups them by Commodity and Contract Period, providing the organisation with the ability to see all the Bids and Offers for this market (the depth of the market) and importantly which are the Best Bid and Best Offer.  The other key features of this system are as follows:<ul><li>Compare Market Orders against the Mid Curve – if the Mid Curve is not between the Bid and Offer the system highlights this visually<li>Update the Mid curve directly from the order manager <li>Desktop alert if an order is added, deleted, traded or amended<li>Send one or all orders using Instant Messenger to external parties<li>Order Activity stored automatically creating data which can be used for desk management purposes i.e. number of orders closed each day and by which member of the team</p></ul><p>Another key feature of the Order Manager is the ability to automatically calculate implied markets.  Here an Implied Market is generated from 2 Market Orders. The Implied Market is highlighted in green on the screen.</p><center align='center'><img src='images/ordermanager.png'/></center>";
	  break;
	case 'positionmanager':
	  document.getElementById("prods").innerHTML = "<h1>Position Manager</h1><p>The Position Manager compliments the Curve Management component and can be used by traders in the market to record their transactions during the trading day.  For fast deal entry a transaction can be added directly from a Curve Management window, with reference to the Commodity being traded and the Contract Period. Details such as the volume, price, counterparty, clearing agent, broker and portfolio (like a folder) where the trader would like to view the transaction in can be recorded for each transaction.</p><p>The trader is then able to set up a Position Window and view their aggregate volume or position for each month which has been traded per Commodity (for selected portfolios).  The Window also allows them to view what their Delta Profit and Loss (P&L) is, where the Delta P&L is the change in the total P&L from the close of business the day before to now, on the aggregate position. The P&L calculation uses the real time curves to calculate the traders Delta P&L with allows them to manage their risk in real time, quickly and efficiently without the need to reference to larger Risk Management Systems, which can take a substantial amounts of time to calculate. The Position Manager is not an Energy Trading Risk Management System (ETRM) and will not replace a system of this type. The primary user of this part of the system is the trader – there is no straight through processing of transactions carried out by the CurvePlex system.</p><center align='center'><img src='images/position.png'/></center>";
	  break;
	case 'indevelopment':
	  document.getElementById("prods").innerHTML = "<h1>In Development</h1><p>Commoditex is currently developing the CurvePlex&#0153; system to provide the ability to manage additional energy commodities including: Natural Gas, Electricity, Carbon (CO2) & Emissions, Coal and Freight plus integration of Foreign Exchange and Interest Rate curves.</p><p></p>";
	  break;
	default:	
	}	
		
}

function changeClientContent(name) {
	switch(name)
	{
	case 'mercuriaenergytrading':
	 document.getElementById("prods").innerHTML = "<h1>Mercuria Energy Trading</h1><p>The Mercuria Energy Group Ltd is an international group of companies active over a wide spectrum of global energy markets including crude oil and refined petroleum products, natural gas, power, biodiesel, vegetable oils, coal, and carbon emissions.  Mercuria Energy is one of the world's five largest independent energy traders.</p><p>Mercuria were the first organization to adopt the CurvePlex&#0153; suite of trader tools at their crud oil and refined products trading centre in Geneva, Switzerland.  We are now working with Mercuria to expand the capabilities of the CurvePlex&#0153; suite to include the management of all their commodity products.</p><p style='text-align:right;'><a target='_blank' href='http://www.mercuria.com'><img src='images/mercuria.png'/ border='0'></a></p>";
	  break;
	case 'exceliancommodities':
	  document.getElementById("prods").innerHTML = "<h1>Excelian Commodities</h1><p>Excelian is a specialist financial IT consultancy, with detailed knowledge of all commodity markets and a track record of successfully delivering technology solutions supporting the full trade lifecycle.  They can help you select the right technology platform for your business, drawing upon their experience of industry leaders such as OpenLink, Murex, Sungard and Triple Point.  They partner with their clients to deliver a full solution, from defining systems strategy through to build, integration and ultimately production implementation.</p><p style='text-align:right;'><a target='_blank' href='http://www.excelian.com'><img src='images/excelian.png'/ border='0'></a></p>";
	  break;
	case 'target250':
	  document.getElementById("prods").innerHTML = "<h1>Target 250</h1><p>Generating quality appointments is critical for accelerating the sales pipeline and maximising return on investment for any new business sales initiative.  Target 250's sole focus is to ensure your global sales team are engaged with the right prospects at the right companies through a number of outbound solutions. Working exclusively with technology vendors Target 250's services are based on a Pay-for-Performance methodology. </p><p>With a proven global reach encompassing North America, the UK and Europe; Target 250 will generate the new business appointments </p><p style='text-align:right;'><a target='_blank' href='http://www.target250.com/'><img src='images/target250.png'/ border='0'></a></p>";
	  break;
	case 'financialcalendars':
	  document.getElementById("prods").innerHTML = "<h1>Finanical Calendars</h1><p>The Financial Calendar is a giant database that contains two types of industrial-strength information:  Holiday Data and Trading Hours Data.  The Holiday Data extends over 90 years into the future for over 770 financial centers around the world, including bank and stock exchange holidays.  The Trading Hours Data lists the opening and closing times for dozens of exchanges around the world.  The Financial Calendar is published by Swaps Monitor Publications, Inc. of New York</p><p style='text-align:right;'><a target='_blank' href='http://www.financialcalendar.com/'>Click here to visit Financial Calendars.</a></p>";
	  break;
	case 'iqfeeds':
	  document.getElementById("prods").innerHTML = "<h1>IQ Feeds</h1><p>Commoditex has worked with IQFeed who provide one of the fastest, most reliable market data feeds available.</p><p style='text-align:right;'><a target='_blank' href='http://www.iqfeed.net/'><img src='images/iqfeed.png'/ border='0'></a></p>";
	  break;
	case 'microsoftmsdn':
	  document.getElementById("prods").innerHTML = "<h1>Microsoft:MSDN</h1><p>Commoditex is a registered Microsoft Independent Software Vendor (ISV) and member of the Microsoft Partner Network</p><p style='text-align:right;'><a target='_blank' href='http://partner.microsoft.com/'><img src='images/microsoftmsdn.png'/ border='0'></a></p>";
	  break;
	case 'thomsonreuters':
	  document.getElementById("prods").innerHTML = "<h1>Thomson Reuters</h1><p>Commoditex is a member of the Thomson Reuters Solution Partner Community</p><p style='text-align:right;'><a target='_blank' href='https://customers.reuters.com/'><img src='images/thomsonreuters.png'/ border='0'></a></p>";
	  break;
	default:	
	}	
		
}

