function showImageDiv(divId)
{
    removeCssClass($get('alertBackground'), 'hide');
    removeCssClass($get(divId), 'hide');
}

function hideImageDiv(divId)
{
    addCssClass($get(divId), 'hide');
    addCssClass($get('alertBackground'), 'hide');
}

function showVidDiv(divId, embedSrc, embedId)
{
    removeCssClass($get('alertBackground'), 'hide');
 
    $get(embedId).innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="385"><param name="movie" value="' + embedSrc + '"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="' + embedSrc + '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width=640" height="385"></embed></object>';
   
    removeCssClass($get(divId), 'hide');
}

function hideVidDiv(divId, embedId)
{
    addCssClass($get(divId), 'hide');
    $get(embedId).innerHTML = " ";
    addCssClass($get('alertBackground'), 'hide');
}