var currency=new Array(); var cache=new Array(); var starter=1; var clickflag=true; var lastover=null; var lastoverobj=null; var lastovercurval=0; var lastovercurvalcache=0; var lastovermyflag=0; var imgpath=''; function currencymousemove(obj,myflag,curval,curvalcache) { if(!starter) themarker.innerHTML=informunlock; starter=0; if(!clickflag) { var lastover=lastoverobj; lastovercurval=curval; lastovermyflag=myflag; lastovercurvalcache=curvalcache; themarker.innerHTML=informlock; return; } for(i=0;i parseFloat(curval/currency[i])) tmpsrc ='up.gif'; else { if(parseFloat(cachevalue/storedcachevalue) < parseFloat(curval/currency[i])) tmpsrc ='down.gif'; else tmpsrc ='eq.gif'; } if(thecurval=='1.0000') { if(c==0) tmpsrc='nothing.gif'; else tmpsrc='spacer.gif'; tmpalt=''; } tmpsrc= imgpath + tmpsrc; theprogimg.alt=tmpalt; theprogimg.title=theprogimg.alt; theprogimg.src=tmpsrc; } } for(j=0;j<3;j++) { theobj=getElement('marker_' + j.toString() + i.toString()); try { tmpelemid=thelement.id; } catch(e) { tmpelemid='thelementnotset'; } try { tmpobjid=obj.id; } catch(e) { tmpobjid='objnotset'; } if(tmpelemid==tmpobjid && myflag) { theobj.style.color='#050505'; theobj.style.fontWeight='bold'; } else { theobj.style.color='#000000'; theobj.style.fontWeight='normal'; } } thelement.bgColor='#FFFFFF'; } if(myflag && (null != obj)) obj.bgColor='#33CCFF'; } function clickcurrencylist() { themarker=getElement('clickinform'); if(clickflag) { clickflag=false; themarker.innerHTML=informlock; } else { clickflag=true; themarker.innerHTML=informunlock; currencymousemove(lastover,lastovermyflag,lastovercurval,lastovercurvalcache) } } function getElement(theid) { var theobj=document.getElementById? document.getElementById(theid):document.all[theid]; return theobj; }