//Menu Image Cache

var imgs=new Array(3);
	for(i=0;i<5;i++){
		imgs[i]=new Array(2);
		imgs[i][0]=new Image();
		imgs[i][1]=new Image();
	};
	
imgs[0][0].src="images/M11.png";
imgs[0][1].src="images/M12.png";
imgs[1][0].src="images/M21.png";
imgs[1][1].src="images/M22.png";
imgs[2][0].src="images/M31.png";
imgs[2][1].src="images/M32.png";
imgs[3][0].src="images/M41.png";
imgs[3][1].src="images/M42.png";
imgs[4][0].src="images/M51.png";
imgs[4][1].src="images/M52.png";



//Menu Structures

var menu_index='<table BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" ALIGN=\"center\">\
		<tr>\
		<td>\
		<A HREF=\"index.html\" onmouseover=\"document.sub_but1.src=imgs[0][1].src\" onmouseout=\"document.sub_but1.src=imgs[0][0].src\">\
		<IMG NAME=\"sub_but1\" border=\"0\" hspace=\"0\" alt=\"SMS Siemag | Hydrometallurgy : Energy : Environment : Service\" title=\"\">\
		</A>\
		</td>\
		<td>\
		<A HREF=\"company.html\" onmouseover=\"document.sub_but2.src=imgs[1][1].src\" onmouseout=\"document.sub_but2.src=imgs[1][0].src\">\
		<IMG NAME=\"sub_but2\" border=\"0\" hspace=\"0\" alt=\"SMS Siemag Process Technologies | Vienna - Tokyo | Company Profile\" title=\"\">\
		</A>\
		</td>\
		<td>\
		<A HREF=\"Hydrometallurgy.html\" onmouseover=\"document.sub_but3.src=imgs[2][1].src\" onmouseout=\"document.sub_but3.src=imgs[2][0].src\">\
		<IMG NAME=\"sub_but3\" border=\"0\" hspace=\"0\" alt=\"SMSDPT | Hydrometallurgy : Acid Regeneration : Oxide Production : Metal Winning\" title=\"\">\
		</A>\
		</td>\
		<td>\
		<A HREF=\"Energy_Environment.html\" onmouseover=\"document.sub_but4.src=imgs[3][1].src\" onmouseout=\"document.sub_but4.src=imgs[3][0].src\">\
		<IMG NAME=\"sub_but4\" border=\"0\" hspace=\"0\" alt=\"SMSDPT | Energy : Environment | Turning Waste into Resources\" title=\"\">\
		</A>\
		</td>\
		<td>\
		<A HREF=\"Service.html\" onmouseover=\"document.sub_but5.src=imgs[4][1].src\" onmouseout=\"document.sub_but5.src=imgs[4][0].src\">\
		<IMG NAME=\"sub_but5\" border=\"0\" hspace=\"0\" alt=\"SMSDPT | Consulting : Service : Spare Parts : Assistance\" title=\"\">\
		</A>\
		</td>\
		</tr>\
		</table>';

//Menu Loader(s)

		function loadMenu(page) {
			if(page==0){
				$("#mainMenu").html(menu_index);
				document.sub_but1.src=imgs[0][0].src;
				document.sub_but2.src=imgs[1][0].src;
				document.sub_but3.src=imgs[2][0].src;
				document.sub_but4.src=imgs[3][0].src;
				document.sub_but5.src=imgs[4][0].src;
			}
			else {
				if(page==1){
					$("#mainMenu").html(menu_index.replace("[0][0]","[0][1]"));
					document.sub_but1.src=imgs[0][1].src;
					document.sub_but2.src=imgs[1][0].src;
					document.sub_but3.src=imgs[2][0].src;
					document.sub_but4.src=imgs[3][0].src;
					document.sub_but5.src=imgs[4][0].src;
				};
				if(page==2){
					$("#mainMenu").html(menu_index.replace("[1][0]","[1][1]"));
					document.sub_but1.src=imgs[0][0].src;
					document.sub_but2.src=imgs[1][1].src;
					document.sub_but3.src=imgs[2][0].src;
					document.sub_but4.src=imgs[3][0].src;
					document.sub_but5.src=imgs[4][0].src;
				};
				if(page==3){
					$("#mainMenu").html(menu_index.replace("[2][0]","[2][1]"));
					document.sub_but1.src=imgs[0][0].src;
					document.sub_but2.src=imgs[1][0].src;
					document.sub_but3.src=imgs[2][1].src;
					document.sub_but4.src=imgs[3][0].src;
					document.sub_but5.src=imgs[4][0].src;
				};
				if(page==4){
					$("#mainMenu").html(menu_index.replace("[3][0]","[3][1]"));
					document.sub_but1.src=imgs[0][0].src;
					document.sub_but2.src=imgs[1][0].src;
					document.sub_but3.src=imgs[2][0].src;
					document.sub_but4.src=imgs[3][1].src;
					document.sub_but5.src=imgs[4][0].src;
				};
				if(page==5){
					$("#mainMenu").html(menu_index.replace("[4][0]","[4][1]"));
					document.sub_but1.src=imgs[0][0].src;
					document.sub_but2.src=imgs[1][0].src;
					document.sub_but3.src=imgs[2][0].src;
					document.sub_but4.src=imgs[3][0].src;
					document.sub_but5.src=imgs[4][1].src;
				};
			};

		};


//Video Loaders

		function load_SZFG_video_content() {
			$("#video").html('<object width="640" height="505"><param name="movie" value="http://www.youtube.com/v/sgmy0oJGm2U&autoplay=1&rel=0&loop=1&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/sgmy0oJGm2U&autoplay=1&rel=0&loop=1&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"></embed></object>');
			$("#description").html("<p align=\"justify\"><b>Salzgitter Fluidized Bed ARP:</b> Salzgitter Flachstahl GmbH is one of Germany's largest Steel Makers. In 2006 Salzgitter entrusted SMS Siemag with the supply of a fluidised bed hydrochloric acid regeneration plant. The plant operates alongside a continuous pickling line which descales approximately 2.500.000 tons of steel per year and generates a waste acid volume of roughly 12 cubic meters per hour.<br/>The plant is equipped with state of the art exhaust gas cleaning equipment which ensures strict compliance with German 'TA Luft' standards for HCl, Cl2 and particle emissions.<br/> It was supplied 'turn key': SMS Siemag not only engineered, delivered and commissioned the process equipment but acted as a general contractor for buildings, structures and erection.</p>");
			};
		
		function load_TS_video_content() {
			$("#video").html('<object width="640" height="505"><param name="movie" value="http://www.youtube.com/v/TrmCPkYF4Jg&autoplay=1&rel=0&loop=1&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/TrmCPkYF4Jg&autoplay=1&rel=0&loop=1&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"></embed></object>');
			$("#description").html("<p align=\"justify\"><b>Tokyo Steel Spray Roaster ARP:</b> Tokyo Steel is Japan's leading producer of electrical steel. In 2007 Tokyo Steel placed an order at SMS Siemag for the turn key supply of a spray roaster acid regeneration plant for it's new green field integrated steel works at Tahara, Aichi prefecture, Japan. Tokyo Steel's continuous pickling line will treat 1.800.000 tons of steel per year. The acid regeneration plant will handle up to 10 cubic meters of waste acid per hour and produce high quality ferric oxide powder.</p>");
		};
		
		function load_TK_video_content() {
			$("#video").html('<object width="640" height="505"><param name="movie" value="http://www.youtube.com/v/NNR-26Okvco&autoplay=1&rel=0&loop=1&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NNR-26Okvco&autoplay=1&rel=0&loop=1&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="505"></embed></object>');
			$("#description").html("<p align=\"justify\"><b>ThyssenKrupp Hydrothermal ARP:</b> ThyssenKrupp Steel is Germany's largest steel producer. In 2008 ThyssenKrupp entrusted SMS Siemag the supply of an acid regeneration plant serving a 2.500.000 t/y pickling line coupled with a tandem cold mill (PL/TCM) and a 2.000.000 t/y continuous pickling line (CPL) at its new green field rolling mill complex in Alabama (USA). The plant is capable of regenerating 18 cubic meters of spent pickle liquor per hour. It is the first acid regeneration plant worldwide to avoid roasting and utilize a \"wet process\". This yields significant energy savings and avoids stack emissions (except those from acid tank farm ventilation).</p>");
		};
		

// Read a page's GET URL variables and return them as an associative array.


function getUrlVars()
{
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}
		