 <!--  
var stagecount = 0;
var imageZ=12;


function preloadimages() {
if (document.images) {
var imgfile = preloadimages.arguments;
var preloadarray = new Array();

	for (var i = 0; i < imgfile.length; i++)
	{
	preloadarray[i] = new Image;
	preloadarray[i].src = imgfile[i];      
	}

  }
}


function gofish(){
location.href="http://www.udyone.com/cgi/udysearch.cgi?"+"search="+ document.ss.search.value;
return false}



function playit(){
document.ps.play();
return true;
}


var tr = 0;
var trfirst = 0;

function stopit(){
clearInterval(timerid);
tr=0;
}


function restart () {
if(tr==1){stopit();}
if(trfirst == 0){xstage();}
trfirst = 0; 
timerid=setInterval('xstage()',10000);
tr=1;

}



var randomNumber;
function getrand(){
randomNumber = Math.round(Math.random() * 6);
}

/* Start functions - clock temp converter random number generator for center stage.*/


function start(){
preloadimages(  'images/hex10.gif'   ,'images/hex0.jpg'       ,'images/scale0.gif'  ,
		'images/scale2.gif'  ,'images/scale3.gif'     ,'images/scale4.gif'  ,
                'images/scale5.gif'  ,'images/scale6.gif'     ,'images/scale7.gif'  ,
                'images/wizpic.gif'  ,'images/proteinsys.gif' ,'images/cyclpic.gif' ,
                'images/encsmall.jpg','images/centerhay.jpg'  ,'images/Image41sm.jpg');

//trfirst=1;
var datex = new Date();
var mx   =datex.getMonth();
var year =datex.getFullYear();
var day  =datex.getDate();
var month;
getrand();
stagecount=randomNumber;
xstage(); 




switch (mx) {
case 0  : month = "January"  ; break;
case 1  : month =  "February"; break;
case 2  : month =  "March"   ; break;
case 3  : month =  "April"   ; break;
case 4  : month =  "May"     ; break;
case 5  : month = "June"     ; break;
case 6  : month = "July"     ; break;
case 7  : month = "August"   ; break;
case 8  : month = "September"; break;
case 9  : month = "October"  ; break;
case 10 : month = "November" ; break;
case 11 : month = "December" ; break;
default : month = "---"   }

document.mainshow.tx.value = month + " "+ day + ", " + year;
restart();

}



var fahx=32;
var celx=0;

function convcel(){
fahx=((9/5* document.mainshow.cel.value)+32);
fh=Math.round((fahx*10));
document.mainshow.fah.value=fh/10;
}

function convfah(){
celx=((5/9)*(document.mainshow.fah.value-32));
cl=Math.round((celx)*10);
document.mainshow.cel.value=cl/10;
}

function tro(c){c.style.background="darkblue";}
function troff(c){c.style.background="none";}
function printx(){print();}


function orderthis(thisitem){orderthisx=window.open("http://www.udyone.com/cgi/orderthis.cgi?"+"item="+thisitem,"ot","scrollbars=no,menubar=no,toolbar=no,directories=no,width=560,height=370,left=150,top=60");
if(orderthisx.open){orderthisx.focus()};
}


function xstage(){
switch (stagecount)
{ 
case 0: coff();parent.udyf.location.href="http://www.udyone.com/stage0.htm";stagecount=1;document.mainshow.scale0.style.visibility="visible";break;
case 1: coff();parent.udyf.location.href="http://www.udyone.com/stage1.htm";stagecount=2;document.mainshow.scale1.style.visibility="visible";break;
case 2: coff();parent.udyf.location.href="http://www.udyone.com/stage2.htm";stagecount=3;document.mainshow.scale2.style.visibility="visible";break;
case 3: coff();parent.udyf.location.href="http://www.udyone.com/stage3.htm";stagecount=4;document.mainshow.scale3.style.visibility="visible";break;
case 4: coff();parent.udyf.location.href="http://www.udyone.com/stage4.htm";stagecount=5;document.mainshow.scale4.style.visibility="visible";break;
case 5: coff();parent.udyf.location.href="http://www.udyone.com/stage5.htm";stagecount=6;document.mainshow.scale5.style.visibility="visible";break;
case 6: coff();parent.udyf.location.href="http://www.udyone.com/stage6.htm";stagecount=0;document.mainshow.scale6.style.visibility="visible";break;
}


}  

function coff ()
{
document.mainshow.scale0.style.visibility="hidden";
document.mainshow.scale1.style.visibility="hidden";
document.mainshow.scale2.style.visibility="hidden";
document.mainshow.scale3.style.visibility="hidden";
document.mainshow.scale4.style.visibility="hidden";
document.mainshow.scale5.style.visibility="hidden";
document.mainshow.scale6.style.visibility="hidden";
document.mainshow.scale7.style.visibility="hidden"; 

}   

function request(item){
rfq=window.open("http://www.udyone.com/cgi/request.cgi?"+"item="+item,"rfx","scrollbars=no,menubar=no,toolbar=no,directories=no,width=350,height=410,left=300,top=60");
if(rfq.open){rfq.focus()}; }

function showlarge(url){bc=window.open(url,"bc", "scrollbars=no,menubar=no,toolbar=no,directories=no,width=550,height=450,left=60,top=30");
if(top.bc.open){top.bc.focus()}; }

function checkfortop(){location.href="http://www.udyone.com";}

function contact()  {message.submit();}
function hbot(cell) {cell.style.background="yellow";}
function lbot(cell) {cell.style.background="ivory";}
  -->
