var bliss = {
  src: '/sifr-3/flash/bliss.swf'
};

sIFR.repaintOnResize = false;

sIFR.useDomLoaded = false;

//sIFR.prefetch(bliss);

sIFR.activate(bliss);

sIFR.redraw(bliss);

sIFR.replace(bliss, {
  selector: '.section-services .landing-page .subsection-overview #content h2'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #ffffff; color: #343128; font-size: 1.375em; font-weight: bold;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.section-about-us #page-title, .section-working-for-you #page-title, .section-general #page-title'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #ffffff; color: #343128; font-size: 1.25em; font-weight: bold;}'
    ,'div {color: #ccc7b0; display: inline;}'
    ,'h1 {display: inline;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.section-contact #page-title, .section-utilities #page-title'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #ffffff; color: #ccc7b0; font-size: 1.25em; font-weight: bold;}'
    ]
});

sIFR.replace(bliss, {
  selector: '#email-box #box-title, #email-box-sent #box-sent-title'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #f0eedf; color: #343128; font-size: 1.25em; font-weight: bold;}'
    ,'div {color: #ccc7b0; display: inline; margin-right: 10px;}'
    ,'h2 {display: inline;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.section-services .landing-page .subsection-landing-page #content h1'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #ffffff; color: #343128; font-size: 1.25em; font-weight: bold;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.section-services .product-page #content #page-title h1'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #ffffff; color: #343128; font-size: 1.25em; font-weight: bold;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.section-services .product-page #content #introduction p, .section-about-us #content #introduction p, .section-working-for-you #content #introduction p, .section-contact #content #introduction p, .section-utilities #content #introduction p'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #ffffff; color: #343128; font-size: 1.5em; font-weight: normal; line-height: 1.15;}'
    ,'a {color: #343128;}'
    ,'a:link, a:visited {color: #343128; text-decoration: underline;}'
    ,'a:hover, a:focus, a:active {color: #343128; text-decoration: none;}'
    ]
	,onRelease: function(){
        // This bit of code is a replacement for the click event handler added with jQuery.
        // It only shows the email box and doesn't do anything else like setting the subject field.
		var sifrLink = ($("#introduction p a").attr("href"));
		if (sifrLink) {
			if (sifrLink.indexOf('email-box') != -1) {
				if (ie6) {
                  $("#email-box-wrapper").addClass("show");
                  $("#email-box-wrapper").removeClass("hide");
				}
				else {
                  $("#email-box").addClass("show");
                  $("#email-box").removeClass("hide");
				}
				return false;
			}
			else {
			    window.location = sifrLink;
			}
		}
	}
});

sIFR.replace(bliss, {
  selector: '.section-services .product-page #content h2'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #ffffff; color: #343128; font-size: 1.5em; font-weight: normal; line-height: 1.15;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.section-services .product-page #sidebar #get-started-text h2'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #343128; color: #f0eedf; font-size: 1.5em; font-weight: normal; text-transform: lowercase; text-align: right;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.section-services .product-page #sidebar #comparison h2'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: transparent; color: #343128; font-size: 1.125em; font-weight: normal;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.section-services .product-page #sidebar #comparison table caption'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #ffffff; color: #333333; font-size: 1.125em; font-weight: normal;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.front #content #content-services h2'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: transparent; color: #343128; font-size: 1.375em; font-weight: bold;}'
    ]
});

sIFR.replace(bliss, {
  selector: '.front #content #utilities #promise h2'
  ,transparent: 'true'
  ,css: [
    '.sIFR-root {background-color: #dcd8c5; color: #ffffff; font-size: 1.375em; font-weight: bold;}'
    ]
});



