//Written by Bogdan Blaszczak/BlaTek

onload=function(t,i,l,I,T){
 if(!document.getElementById)return

 l=document.links
 for(i=0;i<l.length;i++)
  l[i].onfocus=lFocus
}

onload=function(i,l,e,d){
 if(!document.getElementById)return

 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
 }

setBlBoxOverlay()
}


function lFocus(){if(window.aFocus)this.blur()}
document.onmousedown=function(){aFocus=1;setTimeout('aFocus=0',10)}


// bl-box
function setBlBoxOverlay(e,dH,wH){
 if(!document.getElementById)return
 e=document.getElementById('pop-flash-overlay')
 if(!e)return
 dH=document.body.offsetHeight
 wH=self.innerHeight||document.documentElement.clientHeight
 if(dH<wH)e.style.height=wH+ 'px'
 else e.style.height=dH+ 'px'

// e.style.height=document.documentElement.scrollHeight+ 'px'
}
onresize=setBlBoxOverlay


function openPrice(n) {
 document.getElementById('pop-flash-overlay').style.display="block"
 if(n==1)document.getElementById('domestic-pop-flash').style.display="block"
 if(n==2)document.getElementById('carpet-pop-flash').style.display="block"
 if(n==3)document.getElementById('spring-pop-flash').style.display="block"
}

function closePrice(n) {
 document.getElementById('pop-flash-overlay').style.display="none"
 if(n==1)document.getElementById('domestic-pop-flash').style.display="none"
 if(n==2)document.getElementById('carpet-pop-flash').style.display="none"
 if(n==3)document.getElementById('spring-pop-flash').style.display="none"
}
