
/**
* load a slideshow into a particalur container (usually a div)
*
* @param string container id
* @param string comma separated list of matching sized images (no spaces)
* @param integer slideshow width
* @param integer slideshow height
* @param string (optional) background color of movie
* @param string (optional) alternate image (if flash is not installed)
* @param string (optional) alternate link (to place on alternate image)
* @param string (optional) scaling method (noScale, showAll, exactFit, noBorder)
* @param string (optional) alignment (T, R, B, L, TL, TR, BR, BL)
* @param return
* @depends "flash_detect_1of2.js", "flash_detect_2of2.vbs", "loadflashmovie.js"
*/
function loadslideshow(id, list, width, height)
{
    var color = (arguments.length >= 5) ? arguments[4] : '#ffffff';
    var alt   = (arguments.length >= 6) ? arguments[5] : '';
    var link  = (arguments.length >= 7) ? arguments[6] : '';
    var scale = (arguments.length >= 8) ? arguments[7] : 'noScale';
    var align = (arguments.length >= 9) ? arguments[8] : 'TL';

    if (document.getElementById(id))
    {
        var swf     = "/flash/slideshow.swf?pic_csv=" + list + "&pic_scale=" + scale + "&pic_align=" + align + "&";
        var imgsrc  = (alt != '') ? alt : '';
        var imglink = (link != '') ? link : '';

        loadflashmovie(id, swf, width, height, color, alt, link);
    }
}


