/**
 * steel_menu : created '02.09.20 
 */

var selTB = new Array();
var optTB = new Array();
var selectURL;

var win1 = null;
 
selTB[0] = "-";
selTB[1] = "steel_mp_indst_e.html";
selTB[2] = "steel_mp_makeq_e.html";
selTB[3] = "steel_mp_pwrge_e.html";

selectURL = selTB[0];

optTB[0] = "SELECT PRODUCT";
optTB[1] = "Industrial Machinary";
optTB[2] = "Steel Making Equipment";
optTB[3] = "Power Generating Equipment";

function preloadImages() {
   if(document.images){
   		 if(!document.ovImg0) {
    		document.prImg0=new Image;
    		document.prImg1=new Image;
    		document.prImg2=new Image;
    		document.prImg3=new Image;
    		document.prImg4=new Image;
    		document.prImg5=new Image;
    		document.prImg6=new Image;
    		document.prImg11=new Image;
    		document.prImg12=new Image;
    		document.prImg13=new Image;
    		document.ovImg0=new Image;
    		document.ovImg1=new Image;
    		document.ovImg2=new Image;
    		document.ovImg3=new Image;
    		document.ovImg4=new Image;
    		document.ovImg5=new Image;
    		document.ovImg6=new Image;
    		document.ovImg11=new Image;
    		document.ovImg12=new Image;
    		document.ovImg13=new Image;
			document.prImg0.src="main_img_f/top_btns/steel_main_btn01.gif";
			document.prImg1.src="main_img_f/top_btns/steel_main_btn02.gif";
			document.prImg2.src="main_img_f/top_btns/steel_main_btn03.gif";
			document.prImg3.src="main_img_f/top_btns/steel_mail.gif";
			document.prImg4.src="prd_img_f/Enlarge_btn_up.gif";
			document.prImg5.src="main_img_f/steel_topT2_2.gif";
			document.prImg6.src="main_img_f/steel_topT2_3.gif";
			document.prImg11.src="main_img_f/top_btns/steel_mp_mnu01.gif";
			document.prImg12.src="main_img_f/top_btns/steel_mp_mnu02.gif";
			document.prImg13.src="main_img_f/top_btns/steel_mp_mnu03.gif";
			document.ovImg0.src="main_img_f/top_btns/steel_main_over_btn01.gif";
			document.ovImg1.src="main_img_f/top_btns/steel_main_over_btn02.gif";
			document.ovImg2.src="main_img_f/top_btns/steel_main_over_btn03.gif";
			document.ovImg3.src="main_img_f/top_btns/steel_mail_over.gif";
			document.ovImg4.src="prd_img_f/Enlarge_btn_down.gif";
			document.ovImg5.src="main_img_f/steel_topT2_2_on.gif";
			document.ovImg6.src="main_img_f/steel_topT2_3_on.gif";
			document.ovImg11.src="main_img_f/top_btns/steel_mp_mnu01_down.gif";
			document.ovImg12.src="main_img_f/top_btns/steel_mp_mnu02_down.gif";
			document.ovImg13.src="main_img_f/top_btns/steel_mp_mnu03_down.gif";
			}
		}
}

function swapImgRestore(i) { 
   if(document.images){
   		document.images["imgBtn"+i].src=eval("document.prImg"+i+".src");
	}
}

function swapImage(i) {
   if(document.images){
   		document.images["imgBtn"+i].src=eval("document.ovImg"+i+".src");
	}
}

function swapImgRestoreEN(img,i) { 
   if(document.images){
   		document.images[img].src=eval("document.prImg"+i+".src");
	}
}

function swapImageEN(img,i) {
   if(document.images){
   		document.images[img].src=eval("document.ovImg"+i+".src");
	}
}
function LinkSelect(menber) {
	if (menber >= 0) {
		selectURL = selTB[menber];
	}
}

function btnClick() {
	if (selectURL != "-") { 
		document.m.m1.options[0].selected = true;
		location = selectURL;
	}
}

function WinOpen(img) {
	if(win1 == null){
		win1 = window.open("","newWin","toolbar=no,location=no,scrollbars=no,width=420,height=400,left=0,top=0,resizable=no");
	}else{
		if(win1.closed){
			win1 = window.open("","newWin","toolbar=no,location=no,scrollbars=no,width=420,height=400,left=0,top=0,resizable=no");
		}
	}
	win1.document.close();
	win1.document.write('<html><head>');
	win1.document.write('<SCRIPT LANGUAGE="JavaScript">');
	win1.document.write('function Win1ClsDown() {');
	win1.document.write('document.images["clsBtn"].src="prd_img_f/close_Btn_down.gif";}');
	win1.document.write('</SCRIPT>');
	win1.document.write('</head>');
	win1.document.write('<body>');
	win1.document.write('<img src =' + img + ' width="400" height="300" name="LPhoto">');
	win1.document.write('<hr>');
	win1.document.write('<p align="center">');
	win1.document.write('<a href="javascript:self.close();" onMouseDown="Win1ClsDown();">');
	win1.document.write('<img src ="prd_img_f/close_Btn_up.gif" width="45" height="20" border="0" name="clsBtn">');
	win1.document.write('</a></p>');
	win1.document.write('</body></html>');
	win1.focus();
}

function hideLayer(){
	if (document.all) document.all("Layer1").style.visibility="hidden";
	else if (document.getElementById) document.getElementById("Layer1").style.visibility="hidden";
	else if (document.layers) document.layers["Layer1"].visibility="hide";
}

function showLayer(){
	if (document.all) document.all("Layer1").style.visibility="visible";
	else if (document.getElementById) document.getElementById("Layer1").style.visibility="visible";
	else if (document.layers) document.layers["Layer1"].visibility="show";
}
