currency=new Array();cache=new Array();starter=1;clickflag=true;lastoverobj=null;lastovercurval=0;lastovercurvalcache=0;lastovermyflag=0;imgpath='';function currencymousemove(obj,myflag,curval,curvalcache)
{themarker=getElement('clickinform');if(!starter)
themarker.innerHTML=informunlock;starter=0;if(!clickflag)
{lastover=obj;lastovercurval=curval;lastovermyflag=myflag;lastovercurvalcache=curvalcache;themarker.innerHTML=informlock;return;}
for(i=0;i<numberofcurrencies;i++)
{thelement=getElement('currency_'+i);thediv=getElement('curholder_'+i);thecurval=parseFloat(curval/currency[i]);thediv.innerHTML=thecurval.toFixed(4);if(curvalcache.length)
{storedcache=cache[i].split(',');getcache=curvalcache.split(',');for(c=0;c<getcache.length;c++)
{storedcacheparts=storedcache[c].split(';');cacheparts=getcache[c].split(';');cachefd=cacheparts[1];storedcachevalue=storedcacheparts[0];cachevalue=cacheparts[0];theprogimg=getElement('progimg_'+i.toString()+c.toString());thecurvalcache=parseFloat(cachevalue/storedcachevalue);tmpalt=thecurvalcache.toFixed(4)+' '+cachefd;if(parseFloat(cachevalue/storedcachevalue)>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++)
{themarker=getElement('marker_'+j.toString()+i.toString());if(thelement.id==obj.id&&myflag)
{themarker.style.color='#050505';themarker.style.fontWeight='bold';}
else
{themarker.style.color='#000000';themarker.style.fontWeight='normal';}}
thelement.bgColor='#FFFFFF';}
if(myflag)
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)
{theobj=document.getElementById?document.getElementById(theid):document.all[theid];return theobj;}
