//Written by Bogdan Blaszczak/BlaTek
/*
function preloadMenu(I,i){
  for(I=[],i=0;i<2;i++)I[i]=new Image()
  I[0].src='img/arrow_left_on.gif'
  I[1].src='img/arrow_right_on.gif'
}
var ImgArray;
preloadMenu(ImgArray);
*/

onload=function(T,t,I,i,l,e,d){
 if(!document.getElementById)return

/*
 T=[]
 t=document.getElementById('gallery-left-arrow')
 if(t){
  t=t.getElementsByTagName('a')
  for(i=0;i<t.length;i++)T[T.length]=t[i]
 }

 if(T.length){
  for(i=0;i<T.length;i++){
   I=T[i].getElementsByTagName('img')[0]
   if(I){
    if(document.all)I.style.filter='blendTrans(duration=0.3)'
    I.onmouseover=I.onmouseout=rollMe
   }
  }
 }
*/

 d='CUTthis'
 i='StaFF'
 d=new RegExp(e=d+i)
 l=document.links
 for(i=0;i<l.length;i++){
  if(~l[i].href.indexOf(e)){
   l[i].innerHTML=l[i].innerHTML.replace(d,'')
   l[i].href=l[i].href.replace(d,'')
  }
  l[i].onfocus=lFocus
 }


}

function lFocus(){if(window.aFocus)this.blur()}
document.onmousedown=function(){aFocus=1;setTimeout('aFocus=0',10)}

function rollMe(e,f){
 e=e||event;e=e.type=='mouseout'
 eval('try{f=this.filters}catch(Er){}')
 if(f)eval('try{f[0].Apply()}catch(Er){}')
 this.src=e?this.src.replace(/_on\.gif/i,'.gif'):this.src.replace(/.gif/i,'_on.gif')
 if(f)eval('try{f[0].Play()}catch(Er){}')
}

function popup(x,s,w,h,l,t,n,O){
s=s?'yes':'no';w=w?w:'640';h=h?h:'560';l=l?l:'50';t=t?t:'50';n=n?n:'popWin'
 O=window.open(x,n,'left='+l+',top='+t+',width='+w+',height='+h+',scrollbars='+s)
 return O&&O.opener&&O.opener==self
}
