
var blank = new Image();
blank.src = '/images/spacer.gif';
 
$(document).ready(function() {

    // FIX PNG
    var badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");
    if (badBrowser) {
        // get all pngs on page
        $('img[src$=.png]').each(function() {
           if (!this.complete) {
              this.onload = function() {
                fixPng(this)
            };
           } else {
              fixPng(this);
           }
        });
    }
    
    // MODIFY LINKS
    // OPEN ALL EXTERNAL/DOC LINKS IN NEW WINDOW
    //$('a').attr("href:contains('/dyn/'").bind('click',function(e) {
    /*
    $("a[@href *= '/dyn/']").bind('click',function(e) {
        window.open(this.href);
        return false;
    });
    */
    $('a').each(function() {
        var href = $(this).attr('href');
        if(!href.match(/^\/dyn\//)) {
            $(this).bind('click',function(e) {
                window.open(href);
                return false;
            });
        }
    });
    
});


