/* To prevent ie 6/7 bug of showing 'X' on blank intro paragraphs - hiding empty paragraphs on dom ready */
$(function() {
	if($("#maincontent p.introduction").text().length <= 2)
		$("#maincontent p.introduction").hide();
	if($("#maincontent .navigation h2").text().length <= 2)
		$("#maincontent .navigation h2").hide();
	if($("#maincontent .content h1").text().length <= 2)
		$("#maincontent .content h1").hide();
	if($("#maincontent .content h2").text().length <= 2)
		$("#maincontent .content h2").hide();
	if($("#mapsearch h2").text().length <= 2)
		$("#mapsearch h2").hide();
});


var interstatelight = {
  src: 'http://www.mirvac.com/templates/mirvac_group/js/interstate_light_nu.swf'
};

sIFR.activate(interstatelight);

sIFR.replace(interstatelight, {
  selector: '#maincontent .navigation h2'
	,wmode: 'transparent'
  ,css: [
		'.sIFR-root { color: #384f5c; }'
  ]
});

sIFR.replace(interstatelight, {
  selector: '#maincontent .content h1'
	,wmode: 'transparent'
  ,css: [
		'.sIFR-root { color: #384f5c; }'
  ]
});

sIFR.replace(interstatelight, {
  selector: '#maincontent .content h2'
	,wmode: 'transparent'
  ,css: [
		'.sIFR-root { color: #384f5c; }'
  ]
});

sIFR.replace(interstatelight, {
  selector: '#maincontent p.introduction'
	,wmode: 'transparent'
  ,css: [
		'.sIFR-root { color: #7fc41c;font-size:14px; leading:8; }'
  ]
});

sIFR.replace(interstatelight, {
  selector: '#mapsearch h2'
	,wmode: 'transparent'
  ,css: [
		'.sIFR-root { color: #384f5c; }'
  ]
});


/* sustainability template */
sIFR.replace(interstatelight, {
  selector: 'div#maincontent div.sustain_content h3'
	,wmode: 'transparent'
  ,css: [
		'.sIFR-root { color: #7fc41c; }'
  ]
});

sIFR.replace(interstatelight, {
  selector: 'div#maincontent div.sustain_content h4'
	,wmode: 'transparent'
  ,css: [
		'.sIFR-root { color: #384F5C; }'
  ]
});