// URL
url = 'http://' + location.hostname;
if(location.pathname.length !== 0)
{
  url = url + location.pathname;
}

jQuery(document).ready(function()
{
  // Hide all submenus
  jQuery('.menu li ul').hide();
  
  jQuery('.menu').find('a').click(function()
  {
    if(jQuery(this).attr('href') === '#')
    {
      // Toggle Menu
      jQuery(this).parent().find('ul').slideToggle('fast');
      // Stop tigger to get back to top
      return false;
    }
  });
});

/* sIFR */
var bradley = {
      src: url + '/fonts/bradley.swf'
};
 
sIFR.activate(bradley);
 
/* Replace h2 of column-1 */
sIFR.replace(bradley, {
      selector: '#col-1 h2',
      css: [
      '.sIFR-root { font-size: 24px; font-weight: bold; color: #ec008c; display: inline; }'
      ],      
      wmode: 'transparent',
      fitExactly: true,
      forceWidth: true,
      tuneHeight: -5,
      ratios: [8, 1.43, 11, 1.38, 16, 1.33, 23, 1.32, 24, 1.29, 28, 1.3, 36, 1.29, 45, 1.28, 69, 1.27, 72, 1.26, 73, 1.27, 76, 1.26, 77, 1.27, 1.26]      
});

/* Replace menu heading */
sIFR.replace(bradley, {
      selector: '#col-2 .menu-heading',
      css: [
      '.sIFR-root { font-size: 24px; font-weight: normal; color: #ffffff; display: inline; }'
      ],      
      wmode: 'transparent',
      fitExactly: true,
      forceWidth: true,
      tuneHeight: -9,
      ratios: [7, 1.64, 9, 1.46, 12, 1.36, 16, 1.34, 23, 1.32, 24, 1.29, 28, 1.3, 36, 1.29, 45, 1.28, 69, 1.27, 72, 1.26, 73, 1.27, 76, 1.26, 77, 1.27, 1.26]
});