//Preload Button va Script
//Author : Arijit Hazra
//Date : 15.06.2004


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		btn_profile_over = newImage("images/button/btn_profile_over.gif");
		btn_products_over = newImage("images/button/btn_products_over.gif");
		btn_technology_over = newImage("images/button/btn_technology_over.gif");
		btn_RD_over = newImage("images/button/btn_RD_over.gif");
		btn_network_over = newImage("images/button/btn_network_over.gif");
		btn_contact_over = newImage("images/button/btn_contact_over.gif");
		preloadFlag = true;
	}
}


//---------------------- Scroller Script -------------------------//


               var msg=new Array()
               msg[0]="Steel Mill Chemical - Electroplating & Metal Finishing Chemicals - Beverage Chemicals - Pre-treatment Chemicals                                   "
               msg[1]=""
               msg[2]=""
                // This sets the speed at which the letters of the message are displayed
               speed=100
               a=0
               temp=""
               arrlen=msg.length
               i=0
               function Scrollbox()
                    {
                      if(i>=arrlen)
                        {i=0}
                      len=msg[i].length
                      temp=temp+msg[i].substr(a,1)
                      /* If you want a different font and color then change it here in Both places */
                      if(document.getElementById)
                        {
                         elm=document.getElementById("scrolltext")
                         elm.innerHTML="<FONT face='Arial' color='#808080'><b>"+temp+"</b></FONT>"
                        }
                      else
                        {
                         if(document.layers)
                           {
                            document.scrolltext.document.write("<FONT face='Arial' color='#808080' weight='bold'><b>"+temp+"</b></FONT>")
                            document.scrolltext.document.close()
                           }
                        }
                      a++
                      if(a<len)
                        {counts=setTimeout("Scrollbox()",speed)}
                      else
                        {
                         a=0
                         if(document.getElementById)
                           {elm.innerHTML=" "}
                         else
                           {
                            document.scrolltext.document.write(" ")
                            document.scrolltext.document.close()
                           }
                         temp=""
                         i++
                         counts=setTimeout("Scrollbox()",speed)
                        }
                      }

//---------------------- Scroller Script -------------------------//
