/*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=MTkyXzc2MTA&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7610.resize_{width}x{height}_{background}.jpeg" alt="5-21-04 053" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MTE&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7611.resize_{width}x{height}_{background}.jpeg" alt="Wall Crew 039" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MTI&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7612.resize_{width}x{height}_{background}.jpeg" alt="PC070091" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MTM&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7613.resize_{width}x{height}_{background}.jpeg" alt="5-21-04 071" height="{height}" width="{width}"/></a></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MTkyXzc2MTQ&amp;TB_iframe=true&amp;height=480&amp;width=640" name=""><img src="http://webdephoto.net/image/192/7614.resize_{width}x{height}_{background}.jpeg" alt="P9080014" 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');


}
