function splitBrowsers()
{
	if (document.styleSheets[0].cssRules)
		return document.styleSheets[0].cssRules;
	else
		return document.styleSheets[0].rules;
}

function changeFontSize (num) {
	setCookie("response", num, 2);
	document.getElementsByTagName('body')[0].style.fontSize = num;
}

// turn off stylesheets
window.addEvent('domready', function(){

	$('goToTextOnly').addEvent('click', function(e) {
		setCookie("response", "text", 2);
		e = new Event(e).stop();
	
		//if ($("css-common")) $("css-common").remove();
		//if ($("css-index")) $("css-index").remove();
		//if ($("css-secondary")) $("css-secondary").remove();
		//path = 'http://www.utah.gov/css/';
		if ($("css-appearance")) $("css-appearance").remove();
		if ($("css-menu")) $("css-menu").remove();
		if ($("css-form")) $("css-form").remove();
		if ($("css-table")) $("css-table").remove();
		if ($("css-basic")) $("css-basic").remove();
		if ($("css-horiztab")) $("css-horiztab").remove();
		if ($("css-horiztab2")) $("css-horiztab2").remove();
		path = '../holder/';
		new Asset.css(path + 'textonly.css', {id: 'css-textonly', title:'mobile css'});
	});
});
