$(function(){
    if($('#contactleaf').size() > 0){
        $('#contactleaf').css('display','none');
       
    }
    if($('#whyhand').size() > 0){
        $('#whyhand').css('display','none');
    }
});
$(window).load(function(){   
    if($('#contactleaf').size() > 0){
        $('#contactleaf').css('display','block');
        absPosImg($('#contactleaf'),$('#contactbox .lcboxnoborderbot'),'b',2);
        absPosImg($('#contactleaf'),$('#contactbox'),'r',10);
    }
    if($('#whyhand').size() > 0){
        $('#whyhand').css('display','block');   
        absPosImg($('#whyhand'),$('#whytreadlite .lcboxbot'),'b',2);
        absPosImg($('#whyhand'),$('#whytreadlite'),'r',10);
    }
});
//--

function absPosImg(imgelem,divelem,side,offset){
    switch(side){
        case 't':
        break;
        case 'r':        
            imgelem.css('left', (divelem.offset().left + divelem.width() - imgelem.parent().offset().left - imgelem.width() - offset) + 'px');   
        break;
        case 'b':  
            imgelem.css('top', (divelem.offset().top + divelem.height() - imgelem.parent().offset().top - imgelem.height() - offset) + 'px');
        break;
        case 'l':
        break;  
    }
}