function onhoveropt(num,num2){
	var e = document.getElementById("opt" + num );
	if(num2 == '2'){
		e.style.background="url(images/OurProduct/opt"+ num +"a.png)";
	}
	else{
		e.style.background="url(images/OurProduct/opt"+ num +".png)";
	}
	e.style.backgroundRepeat = "no-repeat";
}	

function loading(){
	var a = "";
	for (i=1; i<=5;i++){
		if(i<=3){
			for(j=1;j<=3;j++){
				a = a + "\'images/o" + i + "sub" + j + ".png\',";
			}
		}
		for(j=1;j<=6; j++){
			a = a + "\'images/o" + i + j + ".png\',";
		}
	}
	a = a + "\'images/o4sub1.png\',\'images/o4sub2.png\'";
	preloadImages(a);
}

function preloadImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=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];}}
}
//Button products

function HideMenu() {
	ResetTimeout();
	document.getElementById('fbuttonframe' ).style.visibility = "hidden";
	document.getElementById('fbatengah').style.background="url(images/batengah.png)";
	for (i=1;i<6;i++){
		document.getElementById('f' + i).style.background="url(images/o" + i + "1.png)";
		if(i<5){
			document.getElementById('ftitik' + i).style.background="url(images/t0.png)";
		}
	}
	ShowSubMenu('fbuttonframe','4');
}

function kosong(){
		document.forms[0].txtsearch.value = "";
}
function kosong2(){
		document.forms[0].txtnews.value = "";
}
