/*global document, bgcolor, height, width, target */

album = {};

album.show = function () {
    var bg   = (typeof this.bgcolor === 'undefined') ? '000000' : this.bgcolor;
    var h    = (typeof this.height  === 'undefined') ? '160'    : this.height;
    var w    = (typeof this.width   === 'undefined') ? '240'    : this.width;
    var targ = (typeof this.target  === 'undefined') ? ''       : this.target;
    var str = '<span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MTg&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7618.resize_{width}x{height}_{background}.jpeg" alt="5-21-04 010" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MTk&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7619.resize_{width}x{height}_{background}.jpeg" alt="DSCF0005" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MjA&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7620.resize_{width}x{height}_{background}.jpeg" alt="DSCF0006" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MjE&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7621.resize_{width}x{height}_{background}.jpeg" alt="104" height="{height}" width="{width}"/></a></span>';
    str = str.replace(/\{background\}/g, bg);
    str = str.replace(/\{height\}/g, h);
    str = str.replace(/\{width\}/g, w);
    str = str.replace(/\{target\}/g, targ);

    document.write(str);
    tb_init('a.photoLink');


}
