// sIFR Config
var rockwell = {
  src: '/sifr/rockwell.swf'
};

sIFR.debugMode = true;

sIFR.prefetch(rockwell);
sIFR.activate();

sIFR.replace(rockwell, {
selector: '#security #our_services h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #666; text-align: center; line-height: 1em;}'
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#cleaning #our_services h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #666; text-align: center; line-height: 1em;}'
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#property #our_services h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #666; text-align: center; line-height: 1em;}'
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#catering #our_services h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #666; text-align: center; line-height: 1em;}'
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#security h1'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #c60c46; line-height: 1em;}'
		,'a { text-decoration: none; color:#c60c46; }'
		,'a:hover { text-decoration: underline; color:#c60c46 }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#security h2'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #c60c46; line-height: 1em;}'
		,'a { text-decoration: none; color:#c60c46; }'
		,'a:hover { text-decoration: underline; color:#c60c46 }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#security h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #c60c46; line-height: 1em; }'
		,'a { text-decoration: none; color:#c60c46; }'
		,'a:hover { text-decoration: underline; color:#c60c46 }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#security h4'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #c60c46; line-height: 1em;}'
		,'a { text-decoration: none; color:#c60c46; }'
		,'a:hover { text-decoration: underline; color:#c60c46 }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#catering h1'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #00703C; line-height: 1em;}'
		,'a { text-decoration: none; color:#00703C; }'
		,'a:hover { text-decoration: underline; color:#00703C }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#catering h2'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #00703C; line-height: 1em;}'
		,'a { text-decoration: none; color:#00703C; }'
		,'a:hover { text-decoration: underline; color:#00703C }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#catering h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #00703C; line-height: 1em;}'
		,'a { text-decoration: none; color:#00703C; }'
		,'a:hover { text-decoration: underline; color:#00703C }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#catering h4'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #00703C; line-height: 1em;}'
		,'a { text-decoration: none; color:#00703C; }'
		,'a:hover { text-decoration: underline; color:#00703C }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#cleaning h1'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #009B7A; line-height: 1em;}'
		,'a { text-decoration: none; color:#009B7A; }'
		,'a:hover { text-decoration: underline; color:#009B7A }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#cleaning h2'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #009B7A; line-height: 1em; }'
		,'a { text-decoration: none; color:#009B7A; }'
		,'a:hover { text-decoration: underline; color:#009B7A }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#cleaning h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #009B7A; line-height: 1em;}'
		,'a { text-decoration: none; color:#009B7A; }'
		,'a:hover { text-decoration: underline; color:#009B7A }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#cleaning h4'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #009B7A; line-height: 1em;}'
		,'a { text-decoration: none; color:#009B7A; }'
		,'a:hover { text-decoration: underline; color:#009B7A }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#property h1'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #492F92; line-height: 1em;}'
		,'a { text-decoration: none; color:#492F92; }'
		,'a:hover { text-decoration: underline; color:#492F92 }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#property h2'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #492F92; line-height: 1em;}'
		,'a { text-decoration: none; color:#492F92; }'
		,'a:hover { text-decoration: underline; color:#492F92 }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#property h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #492F92; line-height: 1em;}'
		,'a { text-decoration: none; color:#492F92; }'
		,'a:hover { text-decoration: underline; color:#492F92 }'
		
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '#property h4'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #492F92; line-height: 1em;}'
		,'a { text-decoration: none; color:#492F92; }'
		,'a:hover { text-decoration: underline; color:#492F92 }'
		
	  ]
,wmode: ['transparent']
});


sIFR.replace(rockwell, {
selector: '#our_services h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #666; text-align: center; line-height: 1em;}'
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: '.brand_intro h3 '
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #5190cd; text-align: center; line-height: 1em;}'
		,'a { text-decoration: none; color:#5190cd; }'
		,'a:hover { text-decoration: underline; color:#5190cd }'
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: 'h1'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #5190cd; line-height: 1em;}'
		,'a { text-decoration: none; color:#5190cd; }'
		,'a:hover { text-decoration: underline; color:#5190cd }'
			
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: 'h2'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #5190cd; line-height: 1em;}'
		,'a { text-decoration: none; color:#5190cd; }'
		,'a:hover { text-decoration: underline; color:#5190cd }'
			
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: 'h3'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #5190cd; line-height: 1em;}'
		,'a { text-decoration: none; color:#5190cd; }'
		,'a:hover { text-decoration: underline; color:#5190cd }'
			
	  ]
,wmode: ['transparent']
});

sIFR.replace(rockwell, {
selector: 'h4'
,src: '/sifr/rockwell.swf'
,css: [
		'.sIFR-root { color: #5190cd; line-height: 1em;}'
		,'a { text-decoration: none; color:#5190cd; }'
		,'a:hover { text-decoration: underline; color:#5190cd }'
			
	  ]
,wmode: ['transparent']
});

// Accessibility
function resize(value){
	createCookie('508',value,'30');
	setsize();
}

function setsize(){
	document.getElementById('container').style.fontSize = readCookie('508');
}

function createCookie(name,value,days){
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name){
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

window.onload = setsize;