function init() {
	var href = window.location.href;
	var keyValuePairs = href.substring(href.indexOf('?')+1, href.length);
	var queryString = new Querystring(keyValuePairs);
	var sel = queryString.get('sel');
	
	if (sel == null) 
		company();
    else { 
      	if (sel == 'productsAndServices')
      		productsAndServices();
        else if (sel == 'supplyChainManagement')
            supplyChainManagement();   
        else if (sel == 'quality')
            quality();  
        else if (sel == 'processingAndMachining')
            processingAndMachining();             
        else
            company();
    }
}

function company() {
	var text = "";
	text += "<strong>Company</strong><br><br>";
	text += "CML Alloys is one of Europe's leading suppliers of High Performance ";
	text += "alloys based in the UK, providing customers throughout the world ";
	text += "with a comprehensive range of materials and services from a single ";
	text += "source.<br><br>";
	text += "In critical applications from Aerospace to Oil & Gas and from Chemical ";
	text += "Plant to Thermal Processing equipment you find products supplied by CML ";
	text += "Alloys providing quality and reliability, often operating in the most ";
	text += "demanding conditions.<br><br>";
	text += "When it comes to major projects, CML Alloys offers a full materials ";
	text += "management service, sourcing and supplying complete packages as required ";
	text += "for major capital projects in the process and engineering industries ";
	text += "throughout the world. CML Alloys' inventory and wide range of processing ";
	text += "facilities together with the integrated production facilities of our ";
	text += "approved suppliers allow us to provide a unique and unrivalled level of service. ";
	text += "You can have complete confidence that when dealing with CML Alloys you ";
	text += "will be assured of the best material, customer service and value. ";
	text += "From Turnkey package or JIT schedules to a single stock item, no ";
	text += "requirement is either too large or too small.<br><br>";
	text += "No matter how complex or simple the need, CML Alloys is committed to ";
	text += "providing a total quality service.  With sales to over 40 countries ";
	text += "world wide, CML Alloys is a truly international supplier able to ";
	text += "understand and serve your needs.<br><br>";
	text += "<center><img src='images/cmlBuilding.jpg'></center>";
	DWRUtil.setValue('pageContent', text);
}

function productsAndServices() {
	var text = "";
	text += "<strong>Products and Services</strong><br><br>";
	text += "CML Alloys provides a single source for a wide variety and ever expanding range of high ";
	text += "performance metals including corrosion and heat resisting alloys and Aerospace quality ";
	text += "metals.<br><br>";
	text += "CML Alloys provides access to one of the largest inventories of High Performance alloys ";
	text += "in Europe.<br><br>";
	text += "CML Alloys inventory of heat and corrosion resisting material include commercially ";
	text += "pure nickel and the nickel-copper (MONEL&reg;), nickel-chromium (INCONEL&reg;), and ";
	text += "nickel-chromium-iron (INCOLOY&reg;) range of alloys. For the chemical, petrochemical and ";
	text += "related industry, CML Alloys offers an expanding inventory of Duplex, Super-Duplex and ";
	text += "Super Austenitic Steels as well as Titanium Alloys.  All these materials are available ";
	text += "in a wide range of forms together with compatible MIC, TIG, and MMA welding consumables.<br><br>";
	text += "Aerospace quality products include Nickel Superalloys, Titanium, Stainless Steel, ";
	text += "Aluminium and single and remelt alloy steels. They are available in a wide range of ";
	text += "forms and can be supplied in accordance with British Standard, AMS, MIL, QQA and the ";
	text += "proprietary specifications of many leading aerospace manufacturers.<br><br>";
	text += "CML Alloys also has extensive processing capabilities enabling us to satisfy demands ";
	text += "for special shapes and semi-processed forms.<br><br>";
	text += "Processing available includes; Plasma, Water Jet, Laser Profiling, Shearing, Slitting, ";
	text += "Sawing, Forging, and Machining and Heat Treatment.<br><br>";
	text += "No matter how complex the requirements our aim is to provide the complete service.<br><br>";
	text += "<center><table><tr>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/productsAndServices1.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/productsAndServices2.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/productsAndServices3.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "</tr></table></center>";
	DWRUtil.setValue('pageContent', text);
}

function supplyChainManagement() {
	var text = "";
	text += "<strong>Supply Chain Management</strong><br><br>";
	text += "Over the past 30 years CML Alloys have successfully serviced many major projects ";
	text += "for contractors and operators in the Oil, Gas, Chemical, Petrochemical, Pharmaceutical ";
	text += "and other related industries.<br><br>";
	text += "CML Alloys offers a full sourcing and supply arrangement catering for anything from ";
	text += "urgent maintenance requirements, where speed of response is critical, to major capital ";
	text += "projects where scheduling and meeting demanding deadlines is essential.  Logistics is a ";
	text += "particular strength of CML Alloys covering all aspects of materials management from ";
	text += "specification through to delivery including procurement, expediting, inspection, ";
	text += "documentation, packing and transportation.  In addition CML Alloys can offer in depth ";
	text += "experience in handling a wide range of tailored contract arrangements and payment procedures.<br><br>";
	text += "Whatever your requirements are, either a complex order with items from multiple sources ";
	text += "for delivery to several locations, or a single item to a single location, the comprehensive ";
	text += "and flexible nature of the service combined with a professionalism of both people and ";
	text += "procedures makes CML Alloys an ideal partner.<br><br>";
	text += "<center><table><tr>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/supplyChainManagement1.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/supplyChainManagement2.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/supplyChainManagement3.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "</tr></table></center>";	
	DWRUtil.setValue('pageContent', text);
}

function quality() {
	var text = "";
	text += "<strong>Quality</strong><br><br>";
	text += "CML Alloys products are used in many critical applications, often where only ";
	text += "the highest level of product integrity is acceptable.  Quality assurance is ";
	text += "therefore essential and an integral part of every stage in the supply chain.<br><br>";
	text += "To meet these expectations, CML Alloys operates a quality system designed to ";
	text += "fully comply with ISO 9001:2000 the stringent requirements of Aerospace and ";
	text += "other vendor approvals. Complete traceability is ensured at all times, with ";
	text += "systems audited regularly by both external and internal assessors, nothing ";
	text += "is left to chance.  Third party inspection can also be arranged.  Furthermore, ";
	text += "through an ongoing total quality management programme, CML Alloys is committed ";
	text += "to providing ever-improving standards of service and performance.<br><br>";
	text += "Major Aerospace and Defence vendor approvals include: SABRE 9000, SQA50 and BAe ";
	text += "Systems together with other international propriety approvals. A full list ";
	text += "is available on request.<br><br>";
	text += "<center><table><tr>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/quality1.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/quality2.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/quality3.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "</tr></table></center>";	
	DWRUtil.setValue('pageContent', text);
}

function processingAndMachining() {
    var text = "";
    text += "<strong>Processing and machining</strong><br><br>";
    text += "CML can provide both standard and non-standard components for Oil & Gas/Chemical & ";
    text += "Petrochemical and process industries.  This includes Plasma, Water Jet, Laser and ";
    text += "Shearing of Strips, Squares and Rectangles, Circles, Rings and other shapes to your ";
    text += "requirements.<br><br>";
    text += "The CML Machine Shop operates State-of-the-art CNC Processing providing close tolerance ";
    text += "and high quality components for the process industries in a range of difficult to Machine ";
    text += "Materials including Nickel Alloys and Titanium.<br><br>";
    text += "Heat-Treatment, PMI Testing, Dye Penetrant Testing, X-rays and other Treatments/Testing to ";
    text += "international or Propriety specifications can be performed either in house or by approved ";
    text += "qualified sub-contractors.<br><br>";
	text += "<center><table><tr>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/processMachining1.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/processMachining2.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "<td>";
	text += "	<table bgcolor='black' cellpadding='0' cellspacing='0' border='0'><tr><td><table  cellpadding='0' cellspacing='1' border='0'><tr><td><img src='images/processMachining3.jpg'/></td></tr></table></td></tr></table>";
	text += "</td>";
	text += "</tr></table></center>";
    DWRUtil.setValue('pageContent', text);
}