var lola = { src: path_to_sifr };
sIFR.activate(lola);


// Renters calculator table
sIFR.replace(lola, {
	selector: 'h2.renters',
	css: '.sIFR-root { font-size: 17px; color: #FFFFFF;  font-style: italic; font-weight: bold; }',
	wmode: 'transparent',
	tuneHeight: -5
 });

sIFR.replace(lola, {
	selector: 'div.subhead div.head',
	css: '.sIFR-root { font-size: 14px; font-style: italic; color: #30588f; font-weight: bold; }',
	wmode: 'transparent',
	forceSingleLine: true,
	tuneHeight: -6
 });


// H1 replacement
sIFR.replace(lola, {
  wmode: 'transparent',
  selector: 'body#ubertable h1',
	css: '.sIFR-root { font-size: 24px; color: #30588f;  font-weight: bold; font-style: italic; text-align: left;}'
});

// These replace functions added so they can be re-called when necessary, eg. due to Javascript updating copy
function replaceH1Full()
{
  // H1 replacement
  sIFR.replace(lola, {
    selector: 'div.full h1',
    wmode: 'transparent',
    css: '.sIFR-root { font-size: 24px; color: #30588f;  font-weight: bold; font-style: italic; leading: 0;}'
  });
}

replaceH1Full();


// These replace functions added so they can be re-called when necessary, eg. due to Javascript updating copy
function replaceH1()
{
  // H1 replacement
  sIFR.replace(lola, {
    selector: 'h1',
    wmode: 'transparent',
    css: '.sIFR-root { font-size: 24px; color: #30588f;  font-weight: bold; font-style: italic; leading: 0; text-align: right;}'
  });
}

replaceH1();



// H2 in the short cut block
sIFR.replace(lola, {
  selector: 'div#content div.short_cuts h2',
  css: ".sIFR-root { font-size: 19px; color: #3e4545; text-align: right; }",
  wmode: 'transparent'
});

function replaceH2()
{
  // H2 replacement
  sIFR.replace(lola, {
	selector: 'h2',
	css: ".sIFR-root { font-size: 19px; color: #3e4545;}",
	wmode: 'transparent'
  });
}

replaceH2();


// H3 centered eg. for travel table
sIFR.replace(lola, {
    selector: 'h3.center',
    css: ".sIFR-root { font-size: 16px; font-style: italic; color: #30588f; font-weight: bold;  text-align: center;}",
    wmode: 'transparent',
    tuneHeight: -5
  });



// H3
function replaceH3()
{
  sIFR.replace(lola, {
    selector: 'h3',
    css: ".sIFR-root { font-size: 16px; font-style: italic; color: #30588f; font-weight: bold; }",
    wmode: 'transparent',
    tuneHeight: -5
  });
}

replaceH3();

// H4 replacement
sIFR.replace(lola, {
  selector: 'h4.sifr',
	css: '.sIFR-root { font-size: 15px; color: #717f81;  font-weight: bold; font-style: italic;}',
	wmode: 'transparent'
});


// p replacement
sIFR.replace(lola, {
  selector: 'p.sifr',
	css: '.sIFR-root { font-size: 12px; color: #717f81; }',
	wmode: 'transparent'
});

function replaceUber()
{
    sIFR.replace(lola, {
	 selector: 'table.uber tr.head td.top_left div.sifr',
	 css: '.sIFR-root { font-size: 13px; color: #30588f; font-weight: bold; font-style: italic; }',
	 wmode: 'transparent',
	 tuneHeight: -5
    });
}




function replaceSubHeadline()
{
  sIFR.replace(lola, {
    selector: 'div#content div.left span.sub_headline',
    css: '.sIFR-root { font-size: 20px; color: #717f81;  font-weight: bold; font-style: italic; leading: 0; text-align: right;}'
  });
}

replaceSubHeadline();

sIFR.replace(lola, {
  selector: 'body#switch_to div#content div.left div.box span',
  css: '.sIFR-root { font-size: 13px; color: #30588f;  font-weight: bold; font-style: italic; leading: 0;}'
});

// Form headings
sIFR.replace(lola, {
	selector: 'div.form_heading',
	css: '.sIFR-root { color: #FFFFFF; font-weight: bold; font-style: italic; }',
	wmode: 'transparent',
	tuneHeight: -5
 });
