
var clarendon = { src: '/assets/flash/clarendon.swf' };

var clarendonlt = { src: '/assets/flash/clarendon-lt.swf' };

sIFR.activate(clarendon, clarendonlt);


sIFR.replace(clarendon, {
  selector: '.contact-text',
  css: '.sIFR-root {color: #bbbbbb; font-weight:bold;  letter-spacing: -1}',
  wmode:'transparent',
  fitExactly:true,
  forceSingleLine:true,
  tuneHeight:-10,
  offsetTop:-4
});


sIFR.replace(clarendon, {
  selector: '.contact-number',
  css: '.sIFR-root { font-weight:bold; color: #ffffff; letter-spacing: -1.1}',
  wmode:'transparent',
  fitExactly:true,
  forceSingleLine:true,
   tuneHeight:-18,
   offsetTop:-7,
   kerning:true
});


/* =H1
---------------------------------------- */


sIFR.replace(clarendon, {
  selector: '.homepage .services h1',
  css: '.sIFR-root { font-weight:bold;color:#ffffff; }; strong{font-weight:bold; color: #bbbbbb;}',
  wmode:'transparent',
  fitExactly:true
}); 

sIFR.replace(clarendon, {
  selector: '.orange h1',
  css: '.sIFR-root { font-size:32px; font-weight:bold; color: #f17813; leading:-7;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendon, {
  selector: '.blue h1',
  css: '.sIFR-root {font-size:32px;  font-weight:bold; color: #20b0d3; leading:-7;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendon, {
  selector: '.red h1',
  css: '.sIFR-root { font-size:32px; font-weight:bold; color: #d61a3b; leading:-7;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendon, {
  selector: '.yellow h1',
  css: '.sIFR-root { font-size:32px; font-weight:bold; color: #d0cc0a; leading:-7;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendon, {
  selector: 'h1',
  css: '.sIFR-root { font-size:32px; font-weight:bold; color: #bbbbbb; leading:-7;}',
  wmode:'transparent',
  fitExactly:true
});

/* =H2
---------------------------------------- */



sIFR.replace(clarendon, {
  selector: '.additional-content h2',
  css: '.sIFR-root { font-weight:bold; color: #ffffff; font-size:23px; leading:-5;} strong{color:#bbbbbb;}',
  wmode:'transparent'
});

sIFR.replace(clarendonlt, {
  selector: '.select-region h2',
  css: '.sIFR-root {color: #424242; font-weight:bold; font-size:18px;}',
  wmode:'transparent',
  fitExactly:true,
  forceSingleLine:true
});

sIFR.replace(clarendon, {
  selector: '.advantages h2',
  css: '.sIFR-root { font-weight:bold; font-size:23px; color: #bbbbbb; leading:-5}; strong{color:#d0cc0a;}',
  wmode:'transparent', 
  fitExactly:true,
  offsetTop:'-5px'
});

sIFR.replace(clarendonlt, {
  selector: '.orange .primary-content-inner h2',
  css: '.sIFR-root {color: #f17813; font-weight:bold; font-size:18px;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendonlt, {
  selector: '.red .primary-content-inner h2',
  css: '.sIFR-root {color: #d61a3b; font-weight:bold; font-size:18px;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendonlt, {
  selector: '.blue .primary-content-inner h2',
  css: '.sIFR-root {color: #20b0d3; font-weight:bold; font-size:18px;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendonlt, {
  selector: '.blue .primary-content-inner h2',
  css: '.sIFR-root {color: #20b0d3; font-weight:bold; font-size:18px;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendonlt, {
  selector: '.yellow .primary-content-inner h2',
  css: '.sIFR-root {color: #d0cc0a; font-weight:bold; font-size:18px;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendonlt, {
  selector: '.primary-content-inner h2',
  css: '.sIFR-root {color: #bbbbbb; font-weight:bold; font-size:18px;}',
  wmode:'transparent',
  fitExactly:true
});



/* =H3
---------------------------------------- */

sIFR.replace(clarendonlt, {
  selector: '.find-repairer h3',
  css: '.sIFR-root {color: #424242; font-weight:normal; font-size:18px; leading:-2.5;}',
  wmode:'transparent'
});






sIFR.replace(clarendon, {
  selector: '.subscribe-to-mail h3',
  css: '.sIFR-root { font-weight:bold; font-size:18px; color: #ffffff; letter-spacing:-0.6}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendon, {
  selector: '.vote-inner h3 span',
  css: '.sIFR-root { font-size:24px; font-weight:bold; color: #ffffff;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendon, {
  selector: 'div.vote-button button',
  css: '.sIFR-root { font-weight:bold; color: #ffffff; cursor:pointer;}',
  wmode:'transparent',
  fitExactly:true
});

sIFR.replace(clarendon, {
  selector: '.testimonial-inner p',
  css: '.sIFR-root { font-weight:bold; font-size:18px; color: #ffffff; leading:-2}',
  wmode:'transparent',
  tuneHeight:'-5px'  
});




sIFR.replace(clarendon, {
  selector: '.contact-form .contact-info span',
  css: '.sIFR-root { font-weight:bold; font-size:18px; color: #ff0000; };',
  wmode:'transparent',
  forceSingleLine:true,
  tuneHeight:'-10px' 
});



sIFR.replace(clarendon, {
  selector: '.detail strong',
  css: '.sIFR-root { font-weight:bold; font-size:18px; color: #ffffff;};',
  wmode:'transparent', 
  fitExactly:true,
  offsetTop:'-5px'
});

// sIFR.replace(clarendon, {
//   selector: 'div.email-us',
//   css: 'a{color:#ffffff; font-size:14px; font-weight:bold;text-align:center; text-decoration:none;}; a:hover{text-decoation:none;}',
//   wmode:'transparent'
// });

// sIFR.replace(clarendon, {
//   selector: '.repairer-item .visit-website',
//   css: '.sIFR-root{color:#ffffff; font-size:14px; font-weight:bold; text-align:center; cursor:pointer;} ',
//   wmode:'transparent',
//   onRelease:function(fi){fi.getAncestor().click()}
// });

jQuery(function(){
	jQuery('#form label').not('#form .call-me-back label').find('span.error').each(function(){jQuery("<strong class='error'/>").html(jQuery(this).html()).insertAfter(jQuery(this)); jQuery(this).remove();});
	sIFR.replace(clarendon, {
		elements:jQuery('#form label').not('#form .call-me-back label'),
		css: ' .sIFR-root { font-weight:bold; font-size:18px; color: #d0cc0c; }; strong{color:#ff0000;}',
		wmode:'transparent',
		tuneHeight:'-5px',
		forceSingleLine:false  
	});
});
	
	
