
Cookie.set('testCookie', true, {duration: 31, path : '/'});
if (Cookie.get("testCookie")) {
	$('textSize').setStyle('visibility','visible');
}
	
function clearPreviousTextSize() {
	$('smallText').removeClass('active');
}
		
	  	if (Cookie.get("textSize")) {
			clearPreviousTextSize();
	  		$('theBody').addClass(Cookie.get("textSize"));
			$(Cookie.get("textSize")).addClass('active');
		}
	  
	  	
		if (!window.khtml) {
			
			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: #66cc00 }'
					,'a:hover { color: #66cc00; }'
				]
				, 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 }
				}
			});
		}
		
	  	$('smallText').addEvent('click', function(e){
	  		theEvent = new Event(e);
			theEvent.stop();
			Cookie.set('textSize', 'smallText', {duration: 31, path : '/'});
			location.reload();
		});

	  	$('standardText').addEvent('click', function(e){
	  		theEvent = new Event(e);
			theEvent.stop();
			Cookie.set('textSize', 'standardText', {duration: 31, path : '/'});
			location.reload();
		});		
	  
		$('largeText').addEvent('click', function(e){
	  		theEvent = new Event(e);
			theEvent.stop();
			Cookie.set('textSize', 'largeText', {duration: 31, path : '/'});
			location.reload();
		});


if(window.khtml) {

	  	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: #66cc00 }'
				,'a:hover { color: #66cc00; }'
			]
			, wmode: 'transparent'
			, fitExactly   : true
			, tuneHeight : -5
		}); 
			
		sIFR.replace(trixie, {
			selector: 'h3', wmode: 'transparent', color: '#ffffff', css: {
			  '.sIFR-root': { 'color': '#ffffff', 'letter-spacing': 0 }
			}
		});
	}