/**
 * JavaScript Library required for all pages of the public site.
 *
 */

$(document).ready(function()
{
    // apply class name to a tags in menu; for IE fix:
    $('body.ie6 .main-menu li a').each(function(i) {
        $(this).attr('class', $(this).parent().attr('class'));
    });

});

// SIFR:
var mido = {
  src: '/wp-content/themes/punkrockgardens/mido.swf'
  ,ratios: [10, 1.13, 12, 1.04, 24, 1, 49, 0.96, 74, 0.94, 80, 0.93, 81, 0.94, 85, 0.93, 87, 0.94, 0.93]
};
//sIFR.domains = ['punkrockgardens.dev,punkrockgardens.com,punkrockgardens.qa.factory.net'];
sIFR.useStyleCheck = true;
sIFR.activate(mido);

sIFR.replace(mido, {
  selector: 'h1.page-title, h1.entry-title, h2.entry-title'
  ,css: [
    '.sIFR-root { color: #00803c; leading: 2; }'
    ,'a { text-decoration: none; }'
    ,'a:link { color: #00803c; }'
    ,'a:hover { color: #e96f13; }'
  ],
  tuneHeight: -4
});

sIFR.replace(mido, {
  selector: '.main-aside #search h3'
  ,css: [ '.sIFR-root { color: #b1c7ad; }' ], wmode: 'transparent', tuneHeight: 2
});

sIFR.replace(mido, {
  selector: '.main-aside #archive h3'
  ,css: [ '.sIFR-root { color: #ffffff; }' ], wmode: 'transparent', tuneHeight: -2
});

sIFR.replace(mido, {
  selector: '.main-aside #tags h3'
  ,css: [ '.sIFR-root { color: #ffffff; }' ], wmode: 'transparent', tuneHeight: -2
});

sIFR.replace(mido, {
  selector: '.main-aside #features h3'
  ,css: [ '.sIFR-root { color: #e86910; }' ], wmode: 'transparent', tuneHeight: -2
});
