Cookie.write('testCookie', true, {duration: 31, path : '/'});
if (Cookie.read("testCookie")) {
	$('textSize').setStyle('visibility','visible');
}
	
function clearPreviousTextSize() {
	$('smallText').removeClass('active');
}
		
if (Cookie.read("textSize")) {
	clearPreviousTextSize();
	$('theBody').addClass(Cookie.read("textSize"));
	$(Cookie.read("textSize")).addClass('active');
}
		
$('smallText').addEvent('click', function(e){
	theEvent = new Event(e);
	theEvent.stop();
	Cookie.write('textSize', 'smallText', {duration: 31, path : '/'});
	location.reload();
});

$('standardText').addEvent('click', function(e){
	theEvent = new Event(e);
	theEvent.stop();
	Cookie.write('textSize', 'standardText', {duration: 31, path : '/'});
	location.reload();
});		
	  
$('largeText').addEvent('click', function(e){
	theEvent = new Event(e);
	theEvent.stop();
	Cookie.write('textSize', 'largeText', {duration: 31, path : '/'});
	location.reload();
});


if(!$chk(Browser.Engine.trident4)) {				
	var trixie = {src: '/sifr/flash/trixieNew.swf'};
	
	sIFR.activate(trixie);
				
	sIFR.replace(trixie, {
		selector: '#nav li'
		,css: [
			'.sIFR-root a { color: #ffffff; letter-spacing: 0; text-decoration:none }'
			,'strong { color: #33ccff }'
			,'a:hover { color: #33ccff; }'
		]
		, wmode: 'transparent'
		, fitExactly   : true
		, tuneHeight : -5
		, forceSingleLine : true
	}); 
				
	sIFR.replace(trixie, {
		selector: '#subNav li'
		,css: [
			'.sIFR-root a { color: #000000; letter-spacing: 0; text-decoration:none }'
			,'strong { color: #ffffff }'
			,'a:hover { color: #ffffff; }'
		]
		, wmode: 'transparent'
		, fitExactly   : true
		, tuneHeight : -5
		, forceSingleLine : true
	}); 
				
	sIFR.replace(trixie, {
		selector: 'h3', wmode: 'transparent', color: '#ffffff', css: {
			'.sIFR-root': { 'color': '#ffffff', 'letter-spacing': 0 }
		}
	});
}

