﻿function wsfBannerExposure(id)
{
    wsBanners.Exposure(id,
        wsfBannerExposureOnSucceeded,
        wsfBannerExposureOnFailed);
}
function wsfBannerExposureOnSucceeded(res){}
function wsfBannerExposureOnFailed(err){}
//---------------------------------------------------------------
function wsfBannerChoose(sControlID, sPlacement, sWidth, sHeight)
{
    wsBanners.Choose(
        sControlID,
        sPlacement,
        sWidth,
        sHeight,
        wsfBannerChooseOnSucceeded,
        wsfBannerChooseOnFailed);
}

function wsfBannerChooseOnSucceeded(res)
{
    $get(res.sControlID + 'Timeout').value = res.sTimeout;
    $get(res.sControlID).innerHTML = res.sBanner;
}

function wsfBannerChooseOnFailed(err){}