
function playAlign(imageObj, DivId, hPadding,playHeight){
    var topPosition = Math.ceil((imageObj.height+hPadding-playHeight)/2);
    
    jQuery.each(jQuery.browser, function(i, val) {
      if((i=="msie" && parseFloat(jQuery.browser.version) < 7) || i=="opera")
        topPosition -= parseInt(imageObj.getStyle('paddingTop'));
    });

    
    if(topPosition>0){
        $$('#'+DivId+' a.video_play')[0].style.top = topPosition + "px";
    }
} 


function imageAlign(imageObj, Div, DivHeight, hPadding){ 
    var paddingTop  = Math.floor((DivHeight - imageObj.height)/2); 
    var newDivWidth = imageObj.width+hPadding;
    if(imageObj.width != 0){
        Div.style.width = newDivWidth + 'px';
        Div.style.marginLeft = 'auto';
        Div.style.marginRight = 'auto';
    }
    if(paddingTop>0){ 
        Div.style.paddingTop = paddingTop + "px"; Div.style.height = (DivHeight - paddingTop) + "px";
    }
} 


