/*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=MjE3XzEwNjcx&amp;TB_iframe=true&amp;height=480&amp;width=640" name="1.21.09 Shinnenkai Typhoon 037"><img src="http://webdephoto.net/image/217/10671.resize_{width}x{height}_{background}.jpeg" alt="1.21.09 Shinnenkai Typhoon 037" height="{height}" width="{width}"/></a><div class="webdephoto-title">1.21.09 Shinnenkai Typhoon 037</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjY5&amp;TB_iframe=true&amp;height=480&amp;width=640" name="1.21.09 Shinnenkai Typhoon 071"><img src="http://webdephoto.net/image/217/10669.resize_{width}x{height}_{background}.jpeg" alt="1.21.09 Shinnenkai Typhoon 071" height="{height}" width="{width}"/></a><div class="webdephoto-title">1.21.09 Shinnenkai Typhoon 071</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjY4&amp;TB_iframe=true&amp;height=480&amp;width=640" name="2.17.09 Business Event 047"><img src="http://webdephoto.net/image/217/10668.resize_{width}x{height}_{background}.jpeg" alt="2.17.09 Business Event 047" height="{height}" width="{width}"/></a><div class="webdephoto-title">2.17.09 Business Event 047</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjcz&amp;TB_iframe=true&amp;height=480&amp;width=640" name="2.17.09 Business Event 053"><img src="http://webdephoto.net/image/217/10673.resize_{width}x{height}_{background}.jpeg" alt="2.17.09 Business Event 053" height="{height}" width="{width}"/></a><div class="webdephoto-title">2.17.09 Business Event 053</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjc0&amp;TB_iframe=true&amp;height=480&amp;width=640" name="4.21.09 Networking Wann 009"><img src="http://webdephoto.net/image/217/10674.resize_{width}x{height}_{background}.jpeg" alt="4.21.09 Networking Wann 009" height="{height}" width="{width}"/></a><div class="webdephoto-title">4.21.09 Networking Wann 009</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjY1&amp;TB_iframe=true&amp;height=480&amp;width=640" name="4.21.09 Networking Wann 011"><img src="http://webdephoto.net/image/217/10665.resize_{width}x{height}_{background}.jpeg" alt="4.21.09 Networking Wann 011" height="{height}" width="{width}"/></a><div class="webdephoto-title">4.21.09 Networking Wann 011</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjY2&amp;TB_iframe=true&amp;height=480&amp;width=640" name="6.24 Business Event 023"><img src="http://webdephoto.net/image/217/10666.resize_{width}x{height}_{background}.jpeg" alt="6.24 Business Event 023" height="{height}" width="{width}"/></a><div class="webdephoto-title">6.24 Business Event 023</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjc3&amp;TB_iframe=true&amp;height=480&amp;width=640" name="6.24 Business Event 029"><img src="http://webdephoto.net/image/217/10677.resize_{width}x{height}_{background}.jpeg" alt="6.24 Business Event 029" height="{height}" width="{width}"/></a><div class="webdephoto-title">6.24 Business Event 029</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjYy&amp;TB_iframe=true&amp;height=480&amp;width=640" name="8.25.09 Networking Kushi Bar 064"><img src="http://webdephoto.net/image/217/10662.resize_{width}x{height}_{background}.jpeg" alt="8.25.09 Networking Kushi Bar 064" height="{height}" width="{width}"/></a><div class="webdephoto-title">8.25.09 Networking Kushi Bar 064</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjcw&amp;TB_iframe=true&amp;height=480&amp;width=640" name="8.25.09 Networking Kushi Bar 090"><img src="http://webdephoto.net/image/217/10670.resize_{width}x{height}_{background}.jpeg" alt="8.25.09 Networking Kushi Bar 090" height="{height}" width="{width}"/></a><div class="webdephoto-title">8.25.09 Networking Kushi Bar 090</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjY3&amp;TB_iframe=true&amp;height=480&amp;width=640" name="9.16.09 Blue C Sushi 032"><img src="http://webdephoto.net/image/217/10667.resize_{width}x{height}_{background}.jpeg" alt="9.16.09 Blue C Sushi 032" height="{height}" width="{width}"/></a><div class="webdephoto-title">9.16.09 Blue C Sushi 032</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjc2&amp;TB_iframe=true&amp;height=480&amp;width=640" name="9.16.09 Blue C Sushi 059"><img src="http://webdephoto.net/image/217/10676.resize_{width}x{height}_{background}.jpeg" alt="9.16.09 Blue C Sushi 059" height="{height}" width="{width}"/></a><div class="webdephoto-title">9.16.09 Blue C Sushi 059</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjcy&amp;TB_iframe=true&amp;height=480&amp;width=640" name="12.8.09 Bounenkai Amber 032"><img src="http://webdephoto.net/image/217/10672.resize_{width}x{height}_{background}.jpeg" alt="12.8.09 Bounenkai Amber 032" height="{height}" width="{width}"/></a><div class="webdephoto-title">12.8.09 Bounenkai Amber 032</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjYz&amp;TB_iframe=true&amp;height=480&amp;width=640" name="12.8.09 Bounenkai Amber 040"><img src="http://webdephoto.net/image/217/10663.resize_{width}x{height}_{background}.jpeg" alt="12.8.09 Bounenkai Amber 040" height="{height}" width="{width}"/></a><div class="webdephoto-title">12.8.09 Bounenkai Amber 040</div></span><span class="photo"><a class="photoLink" target="{target}" href="http://webdephoto.net/bare_photo.php?id=MjE3XzEwNjc1&amp;TB_iframe=true&amp;height=480&amp;width=640" name="12.8.09 Bounenkai Amber 079"><img src="http://webdephoto.net/image/217/10675.resize_{width}x{height}_{background}.jpeg" alt="12.8.09 Bounenkai Amber 079" height="{height}" width="{width}"/></a><div class="webdephoto-title">12.8.09 Bounenkai Amber 079</div></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');


}
