var ie=document.all||document.getElementById;
function scroll_content(drct){
    if(!ie)return;
    var mn=(drct=='up')? 15:-15;
    var cnt_t=parseInt(cnt.style.top);
    if(drct=='down'){
    if(cnt_t>=(cnt_h*(-1)+345)){
        if(ie)cnt.style.top=cnt_t+mn;
        }
    }
    else{
      if(cnt_t<0){
        if(ie)cnt.style.top=cnt_t+mn;
        }
    }
    sd=setTimeout("scroll_content('"+drct+"')",100);
}
function clr_tmt(){ clearTimeout(sd); }
function bigImg(t,id){
	var imageSrc = (t=='client'?clientImages[id][0]:worksImages[id][0]);
	var imageDesc = (t=='client'?clientImages[id][1]:worksImages[id][1]);
	var tImg = document.getElementById('big_img');
	var tDesc = document.getElementById('work_desc');
	if(typeof(imageSrc)=='undefined'||typeof(tImg)=='undefined'||typeof(tDesc)=='undefined')return;
    if(ie){
        if(tImg.filters){
            tImg.style.filter="blendTrans(duration=crossFadeDuration)";
            tDesc.style.filter="blendTrans(duration=crossFadeDuration)";
            tImg.filters.blendTrans.Apply(); 
            tDesc.filters.blendTrans.Apply(); 
            tImg.src=imageSrc;
            tDesc.innerHTML = imageDesc;
            tImg.filters.blendTrans.Play();
            tDesc.filters.blendTrans.Play();
        }
        else{
            tImg.src=imageSrc; 
            tDesc.innerHTML = imageDesc;           
        }       
    }
}
function popup( obj, L, T ){
	with( obj.style ){
		display = "block";
		position = "absolute";
		left = L;
		top = T;
	}
}
function unpop( obj ){ obj.style.display = "none"; }
