/*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=MTkyXzc2MjI&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7622.resize_{width}x{height}_{background}.jpeg" alt="lu 017" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MjM&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7623.resize_{width}x{height}_{background}.jpeg" alt="lu 006" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MjQ&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7624.resize_{width}x{height}_{background}.jpeg" alt="lu 008" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MjU&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7625.resize_{width}x{height}_{background}.jpeg" alt="P6130474" 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');


}
