///SwapImage//
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
///

///for popup open///
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
///end///

// function for display/hide content
function display (sID) {
	oObj = document.getElementById(sID);
		if (oObj) {
		oObj.style.display='inline';
		}
}

function hide (sID) {
	oObj = document.getElementById(sID);
		if (oObj) {
		oObj.style.display='none';
		}

}
//end display/hide content-->

///for menu left about//
//function get_mntop(id){
//	
//	document.getElementById('mn_top'+id).innerHTML='<img src="images/Menu/menu_over_0'+id+'.gif" name="mntop'+id+'" border="0" id="mntop'+id+'">';
//}
/////end//
//
/////for Tab Product//
//function get_tab(id){
//	  for (i=1;i<=2;i++){
//			  if (id==i){
//				  	  document.getElementById('tab_pro'+i).innerHTML='<img src="images/Tab/tab_de_0'+i+'.gif" name="tab'+i+'" border="0" id="tab'+i+'"/>';
//				  }else{
//						document.getElementById('tab_pro'+i).innerHTML='<img src="images/Tab/tab_0'+i+'.gif" name="tab'+i+'" border="0" id="tab'+i+'"   onmouseover="this.src=\'images/Tab/tab_over_0'+i+'.gif\'" onmouseout="this.src=\'images/Tab/tab_0'+i+'.gif\'"/>';
//				  }
//	   }
//}
///end//


//for get menu bottom//
function get_mnbottom(id) {
	for (i=1;i<=9;i++) {
		if (id==i) {
			document.getElementById("mn_bottom"+i).className='MnBottom_de';
		}else{
			document.getElementById("mn_bottom"+i).className='MnBottom';
		}
	}
}
///end//

//for get menu left about//
function get_mnleft_about(id) {
	for (i=1;i<=3;i++) {
		if (id==i) {
			display("content_about"+i);
			display("nav_about"+i);
			document.getElementById("mnleft_about"+i).className='MnLeft_de';
		}else{
			hide("content_about"+i);
			hide("nav_about"+i);
			document.getElementById("mnleft_about"+i).className='MnLeft';
		}
	}
}
///end//

//for get menu left product//
function get_mnleft_product(id) {
	for (i=1;i<=10;i++) {
		if (id==i) {
			document.getElementById("mnleft_product"+i).className='MnLeft_de';
		}else{
			document.getElementById("mnleft_product"+i).className='MnLeft';
		}
	}
}
///end//

//for get menu left Technical//
function get_mnleft_tech(id) {
	for (i=1;i<=3;i++) {
		if (id==i) {
			document.getElementById("mnleft_tech"+i).className='MnLeft_de';
		}else{
			document.getElementById("mnleft_tech"+i).className='MnLeft';
		}
	}
}
///end//

//for get menu left Project//
function get_mnleft_project(id) {
	for (i=1;i<=8;i++) {
		if (id==i) {
			document.getElementById("mnleft_project"+i).className='MnLeft_de';
		}else{
			document.getElementById("mnleft_project"+i).className='MnLeft';
		}
	}
}
///end//

//for get menu left download//
function get_mnleft_down(id) {
	for (i=1;i<=2;i++) {
		if (id==i) {
			document.getElementById("mnleft_down"+i).className='MnLeft_de';
		}else{
			document.getElementById("mnleft_down"+i).className='MnLeft';
		}
	}
}
///end//
///////////////////////////////////////////////////////////////////
//for get tab Standard//
function get_TabStand(id) {
	for (i=1;i<=6;i++) {
		if (id==i) {
			document.getElementById("tabStand"+i).className='TabStand_de';
		}else{
			document.getElementById("tabStand"+i).className='TabStand';
		}
	}
}
///end//
//for get tab Ducwork//
function get_TabDuc(id) {
	for (i=1;i<=4;i++) {
		if (id==i) {
			document.getElementById("tabDuc"+i).className='TabDuc_de';
		}else{
			document.getElementById("tabDuc"+i).className='TabDuc';
		}
	}
}
///end//
//for get tab HF//
function get_TabHF(id) {
	for (i=1;i<=5;i++) {
		if (id==i) {
			document.getElementById("tabHF"+i).className='TabHF_de';
		}else{
			document.getElementById("tabHF"+i).className='TabHF';
		}
	}
}
///end//
//for get tab HT//
function get_TabHT(id) {
	for (i=1;i<=5;i++) {
		if (id==i) {
			document.getElementById("tabHT"+i).className='TabHT_de';
		}else{
			document.getElementById("tabHT"+i).className='TabHT';
		}
	}
}
///end//
//for get tab HT//
function get_TabAL(id) {
	for (i=1;i<=4;i++) {
		if (id==i) {
			document.getElementById("tabAL"+i).className='TabAL_de';
		}else{
			document.getElementById("tabAL"+i).className='TabAL';
		}
	}
}
///end//
//for get tab HT//
function get_TabIsol(id) {
	for (i=1;i<=4;i++) {
		if (id==i) {
			document.getElementById("tabIsol"+i).className='TabIsol_de';
		}else{
			document.getElementById("tabIsol"+i).className='TabIsol';
		}
	}
}
///end//
//for get tab technical thickness//
function get_TabTechThick(id) {
	for (i=1;i<=4;i++) {
		if (id==i) {
			display("TblThick"+i);
			document.getElementById("tabTechThick"+i).className='TabHT_de';
		}else{
			hide("TblThick"+i);
			document.getElementById("tabTechThick"+i).className='TabHT';
		}
	}
}
///end//

//for get tab Technical Application//
function get_TabTechApp(id) {
	for (i=1;i<=3;i++) {
		if (id==i) {
			display("Insulation"+i);
			document.getElementById("tabTechApp"+i).className='TabHT_de';
		}else{
			hide("Insulation"+i);
			document.getElementById("tabTechApp"+i).className='TabHT';
		}
	}
}
///end//

//for get tab Technical Application//
function get_TabAbout(id) {
	for (i=1;i<=6;i++) {
		if (id==i) {
			display("ContentProfile"+i);
			document.getElementById("tabAbout"+i).className='TabHT_de';
		}else{
			hide("ContentProfile"+i);
			document.getElementById("tabAbout"+i).className='TabHT';
		}
	}
}
///end//

//for get project //
function get_indus_phar(id) {
	for (i=1;i<=6;i++) {
		if (id==i) {
			display("content_indus_phar"+i);
			document.getElementById("mn_indus_phar"+i).className='ListCustomer_de';
		}else{
			hide("content_indus_phar"+i);
			document.getElementById("mn_indus_phar"+i).className='ListCustomer';
		}
	}
}

function get_indus_food(id) {
	for (i=1;i<=14;i++) {
		if (id==i) {
			display("content_indus_food"+i);
			document.getElementById("mn_indus_food"+i).className='ListCustomer_de';
		}else{
			hide("content_indus_food"+i);
			document.getElementById("mn_indus_food"+i).className='ListCustomer';
		}
	}
}

function get_indus_motor(id) {
	for (i=1;i<=8;i++) {
		if (id==i) {
			display("content_indus_motor"+i);
			document.getElementById("mn_indus_motor"+i).className='ListCustomer_de';
		}else{
			hide("content_indus_motor"+i);
			document.getElementById("mn_indus_motor"+i).className='ListCustomer';
		}
	}
}

function get_indus_elec(id) {
	for (i=1;i<=5;i++) {
		if (id==i) {
			display("content_indus_elec"+i);
			document.getElementById("mn_indus_elec"+i).className='ListCustomer_de';
		}else{
			hide("content_indus_elec"+i);
			document.getElementById("mn_indus_elec"+i).className='ListCustomer';
		}
	}
}

function get_indus_petro(id) {
	for (i=1;i<=6;i++) {
		if (id==i) {
			display("content_indus_petro"+i);
			document.getElementById("mn_indus_petro"+i).className='ListCustomer_de';
		}else{
			hide("content_indus_petro"+i);
			document.getElementById("mn_indus_petro"+i).className='ListCustomer';
		}
	}
}
function get_indus_other(id) {
	for (i=1;i<=12;i++) {
		if (id==i) {
			display("content_indus_other"+i);
			document.getElementById("mn_indus_other"+i).className='ListCustomer_de';
		}else{
			hide("content_indus_other"+i);
			document.getElementById("mn_indus_other"+i).className='ListCustomer';
		}
	}
}

function get_indus_other2(id) {
	for (i=1;i<=12;i++) {
		if (id==i) {
			display("content_indus_other"+i);
			document.getElementById("mn_indus_other"+i).className='ListCustomer_de';
		}else{
			hide("content_indus_other"+i);
			document.getElementById("mn_indus_other"+i).className='ListCustomer';
		}
	}
}

function get_Com(id) {
	for (i=1;i<=14;i++) {
		if (id==i) {
			display("content_com"+i);
			document.getElementById("mn_com"+i).className='ListCustomer_de';
		}else{
			hide("content_com"+i);
			document.getElementById("mn_com"+i).className='ListCustomer';
		}
	}
}

function get_Res(id) {
	for (i=1;i<=18;i++) {
		if (id==i) {
			display("content_res"+i);
			document.getElementById("mn_res"+i).className='ListCustomer_de';
		}else{
			hide("content_res"+i);
			document.getElementById("mn_res"+i).className='ListCustomer';
		}
	}
}

function get_Hotel(id) {
	for (i=1;i<=17;i++) {
		if (id==i) {
			display("content_hotel"+i);
			document.getElementById("mn_hotel"+i).className='ListCustomer_de';
		}else{
			hide("content_hotel"+i);
			document.getElementById("mn_hotel"+i).className='ListCustomer';
		}
	}
}

function get_Hotel2(id) {
	for (i=1;i<=17;i++) {
		if (id==i) {
			display("content_hotel"+i);
			document.getElementById("mn_hotel"+i).className='ListCustomer_de';
		}else{
			hide("content_hotel"+i);
			document.getElementById("mn_hotel"+i).className='ListCustomer';
		}
	}
}

function get_Shop(id) {
	for (i=1;i<=15;i++) {
		if (id==i) {
			display("content_shop"+i);
			document.getElementById("mn_shop"+i).className='ListCustomer_de';
		}else{
			hide("content_shop"+i);
			document.getElementById("mn_shop"+i).className='ListCustomer';
		}
	}
}

function get_Shop2(id) {
	for (i=1;i<=15;i++) {
		if (id==i) {
			display("content_shop"+i);
			document.getElementById("mn_shop"+i).className='ListCustomer_de';
		}else{
			hide("content_shop"+i);
			document.getElementById("mn_shop"+i).className='ListCustomer';
		}
	}
}

function get_Shop3(id) {
	for (i=1;i<=15;i++) {
		if (id==i) {
			display("content_shop"+i);
			document.getElementById("mn_shop"+i).className='ListCustomer_de';
		}else{
			hide("content_shop"+i);
			document.getElementById("mn_shop"+i).className='ListCustomer';
		}
	}
}

function get_Hos(id) {
	for (i=1;i<=14;i++) {
		if (id==i) {
			display("content_hos"+i);
			document.getElementById("mn_hos"+i).className='ListCustomer_de';
		}else{
			hide("content_hos"+i);
			document.getElementById("mn_hos"+i).className='ListCustomer';
		}
	}
}

function get_Educ(id) {
	for (i=1;i<=14;i++) {
		if (id==i) {
			display("content_educ"+i);
			document.getElementById("mn_educ"+i).className='ListCustomer_de';
		}else{
			hide("content_educ"+i);
			document.getElementById("mn_educ"+i).className='ListCustomer';
		}
	}
}

function get_Others(id) {
	for (i=1;i<=5;i++) {
		if (id==i) {
			display("content_others"+i);
			document.getElementById("mn_others"+i).className='ListCustomer_de';
		}else{
			hide("content_others"+i);
			document.getElementById("mn_others"+i).className='ListCustomer';
		}
	}
}
///end//

//////////////////////////////////////////////////////////////////

//for get photo news//
function GetPhoto(id,end,img) 
{
		for(i=1;i<=end;i++){
		if(id==i) {
			document.images['large'].src=img;
			document.getElementById("img"+i).className='ImgNews_s_de';
			}else{
			document.getElementById("img"+i).className='ImgNews_s';
	}
	}
}
///end//

//for get photo Reference//
//function GetPhotoRef(id) 
//{
//	for(i=1;i<=6;i++)
//	{
//		if(id==i) {
//			document.images['large'].src='images/Ref/'+id+'b.jpg';
//			document.getElementById("img"+i).className='ImgNews_s_de';
//			}else{
//			document.getElementById("img"+i).className='ImgNews_s';
//			}
//	}
//}
///end//

///get set category//
//function get_SetCate(id)
//{	
//		for (i=1;i<=1;i++) {
//			if (id==i){
//			$( "#SetCate"+i).slideDown( 500 );
//			$("#ImgBrand"+i).addClass("ImgPro_de"); //Add "active" class to selected tab
//			}else{
//				$( "#SetCate"+i).slideUp( 500 );
//				$("#ImgBrand"+i).removeClass("ImgPro"); //Add "active" class to selected tab
//			}
//		}
//}
///end//

///get show record downlad//
//function get_DownRec()
//{	
//document.getElementById('ShowTbl').style.display='inline';
////document.getElementById('Click').style.display='none';
//}
///end//

///for show r
