var basePath = window.location.protocol + "//" + window.location.host + "/";
if(window.location.href.toLowerCase().indexOf("/localhost/")>0) { // dev env.
	basePath = window.location.href.substring(0, window.location.href.toLowerCase().indexOf("/patrickdixon/")+14); 
} else if(window.location.href.toLowerCase().indexOf("/clients/")>0) { // RM clientsite
	basePath = window.location.href.substring(0, window.location.href.toLowerCase().indexOf("/patrickdixon/")+14); 
}

var din = {
src: basePath+'interface/flash/din-regular.swf'
};

// You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
sIFR.useStyleCheck = true;
sIFR.activate(din);

sIFR.replace(din, {
selector: 'h1'
,css: [
  '.sIFR-root { color:#838383; text-transform: capitalize; font-weight: bold;}'
],
wmode: 'transparent'
});
sIFR.replace(din, {
selector: 'h2, h3, h4, h5'
,css: [
  '.sIFR-root { color:#901128; text-transform: capitalize; font-weight: bold;}'
  ,'.grey{color:#666666;}'
],
wmode: 'transparent'
});

sIFR.replace(din, {
selector: '.intro'
,css: {
  '.sIFR-root': { 'color':'#666666', 'font-weight':'bold', 'letter-spacing': -0.5}
}
});

