/* Extracted from: http://www.howtocreate.co.uk/tutorials/javascript/domcss */

function getAllSheets() {
  if( !window.ScriptEngine && navigator.__ice_version ) { return document.styleSheets; }
  if( document.getElementsByTagName ) { var Lt = document.getElementsByTagName('link'), St = document.getElementsByTagName('style');
  } else if( document.styleSheets && document.all ) { var Lt = document.all.tags('LINK'), St = document.all.tags('STYLE');
  } else { return []; } for( var x = 0, os = []; Lt[x]; x++ ) {
    var rel = Lt[x].rel ? Lt[x].rel : Lt[x].getAttribute ? Lt[x].getAttribute('rel') : '';
    if( typeof( rel ) == 'string' && rel.toLowerCase().indexOf('style') + 1 ) { os[os.length] = Lt[x]; }
  } for( var x = 0; St[x]; x++ ) { os[os.length] = St[x]; } return os;
}
function changeStyle() {
  for( var x = 0, ss = getAllSheets(); ss[x]; x++ ) {
    if( ss[x].title ) { ss[x].disabled = true; }
    for( var y = 0; y < arguments.length; y++ ) {
     if( ss[x].title == arguments[y] ) { ss[x].disabled = false; }
} } }


/* Extracted from: http://obvcode.blogspot.com/2007/11/easiest-way-to-check-ie-versi on-with.html */

function getIEVersion() {
  var version = 999;
  if (navigator.appVersion.indexOf("MSIE") != -1)
    version = parseFloat(navigator.appVersion.split("MSIE")[1]);
  return version;
}


function fontSize1() 
	{
	var con = document.getElementById("con");

	if(getIEVersion() > 7) 
		{
		con.setAttribute("class", "content");	
		} 
	else 
		{
		con.setAttribute("className", "content");
		}
	}

function fontSize2() 
	{
	var con = document.getElementById("con");
	if(getIEVersion() > 7) 
		{
		con.setAttribute("class", "content2");
		} 
	else 
		{
		con.setAttribute("className", "content2");
		}
	}

function fontSize3() 
	{
	var con = document.getElementById("con");

	if(getIEVersion() > 7) 
		{
		con.setAttribute("class", "content3");	
		} 
	else 
		{
		con.setAttribute("className", "content3");
		}
	}


function goToRadioButtons() 
	{
		var contrast1 = document.getElementById("contrast1");
		contrast1.checked = true;
		
		var fs1 = document.getElementById("fs1");
		fs1.checked = true;
	}

