/*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=MTkyXzc1OTA&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7590.resize_{width}x{height}_{background}.jpeg" alt="P4190590" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc1OTE&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7591.resize_{width}x{height}_{background}.jpeg" alt="park 1" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc1OTI&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7592.resize_{width}x{height}_{background}.jpeg" alt="P7140080" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc1OTM&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7593.resize_{width}x{height}_{background}.jpeg" alt="lu 018" 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');


}
