function fireEvent(element,event){
if (document.createEventObject){
// dispatch for IE
var evt = document.createEventObject();
return element.fireEvent('on'+event,evt) 
} else { // dispatch for firefox + others var evt = document.createEvent("HTMLEvents");
evt.initEvent(event, true, true ); // event type,bubbling,cancelable return !element.dispatchEvent(evt);
}
}

var mainHeading = {src: '/site-resources/flash/sifr/main-heading.swf'};
var mainHeadingMM = {src: '/site-resources/flash/sifr/main-heading-mm.swf'};
var subHeading = {src: '/site-resources/flash/sifr/sub-heading.swf'};
var featureHeadingA = {src: '/site-resources/flash/sifr/feature-heading-a.swf'};
var featureHeadingB = {src: '/site-resources/flash/sifr/feature-heading-b.swf'};

sIFR.activate(mainHeading, mainHeadingMM, subHeading, featureHeadingA, featureHeadingB);

//homepage headings

sIFR.replace(featureHeadingA, {
  selector: '#col3 .bg .footer .feature1 h2',
  css: '.sIFR-root { width:253px; font-size:16px; font-weight:strong; color:#124a88; }',
  wmode: 'transparent'
});

sIFR.replace(featureHeadingA, {
  selector: '#col3 .bg .footer .feature2 h2',
  css: '.sIFR-root { width:253px; font-size:16px; font-weight:strong; color:#124a88; }',
  wmode: 'transparent'
});

sIFR.replace(featureHeadingB, {
  selector: '#col2 .bg .header h2',
  css: '.sIFR-root { width:140px; font-size:22px; font-weight:strong; color:#124a88; }',
  wmode: 'transparent'
});

sIFR.replace(featureHeadingB, {
  selector: '.pack-feature h3 .part1',
  css: '.sIFR-root { font-size:17px; width:230px; color:#124a88; }',
  wmode: 'transparent'
});

sIFR.replace(featureHeadingB, {
  selector: '.pack-feature h3 .part2',
  css: '.sIFR-root { font-size:17px; width:230px; color:#cc6699; }',
  wmode: 'transparent'
});

//internal headings

sIFR.replace(mainHeading, {
  selector: '.page-heading h1',
  css: '.sIFR-root { color: #ffffff; font-weight:bold; font-size:26px; width:690px;}',
  wmode: 'transparent'
});

sIFR.replace(mainHeadingMM, {
  selector: '.page-heading-mm h1',
  css: '.sIFR-root { color: #ffffff; font-weight:bold; font-size:26px; width:690px;}',
  wmode: 'transparent'
});

sIFR.replace(subHeading, {
  selector: '.textcol-single h2, .textcol-double h2, .message h2',
  css: '.sIFR-root { color: #f38ab4; font-weight:bold; font-size:17px; width:100%;} .sIFR-root strong { color:#ffcc33; }',
  wmode: 'transparent'
});

sIFR.replace(subHeading, {
  selector: '.textcol-single-article h2',
  css: '.sIFR-root { color: #f38ab4; font-weight:bold; font-size:26px; width:320px;} .sIFR-root strong { color:#ffcc33; }',
  wmode: 'transparent'
});

sIFR.replace(subHeading, {
  selector: '.textcol-single h3, .textcol-double h3, legend',
  css: '.sIFR-root { color: #f38ab4; font-weight:bold; font-size:14px; width:100%;}',
  wmode: 'transparent'
});

sIFR.replace(featureHeadingB, {
  selector: '#feature-didyouknow h4, #feature-bookA h4',
  css: '.sIFR-root { width:140px; font-size:22px; font-weight:strong; color:#124a88; }',
  wmode: 'transparent'
});

sIFR.replace(featureHeadingA, {
  selector: '#feature-left h3, #feature-right h3',
  css: '.sIFR-root { width:210px; font-size:15px; font-weight:strong; color:#124a88; }',
  wmode: 'transparent'
});

sIFR.replace(mainHeadingMM, {
  selector: '.about-heading',
  css: '.sIFR-root { color: #ffffff; font-weight:bold; font-size:18px; }',
  wmode: 'transparent'
});

sIFR.replace(mainHeadingMM, {
  selector: '.about-link',
  css: '.sIFR-root { color: #ffcc00; font-weight:bold; font-size:18px; text-decoration:none; cursor:pointer; }',
  wmode: 'transparent',
  onRelease: function(fi){
    //fireEvent(fi.getAncestor(),'click');
	fi.getAncestor().click();
	//alert('hello');
  }
});

