/*function resizeText(multiplier) {
  var options = { path: '/', expires: 10 };
  if (document.body.style.fontSize == "") {
    document.body.style.fontSize = "1.0em";
  }
  document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.05) + "em";
  $.cookie("size", document.body.style.fontSize, options);
	// DEBUG alert($.cookie("size"));
}*/

/*function TextAccessibility() {
	alert("Hello");
	var size = "1.0em";
	alert($.cookie("size"));
	
	if ($.cookie("size")!= null)
		size = $.cookie("size");
		
	document.body.style.fontSize = size;
} 

window.onload = TextAccessibility;*/

/*$(document).ready(function(){
	var size = "1.0em";
	// DEBUG alert($.cookie("size"));
	
	if ($.cookie("size")!= null)
		size = $.cookie("size");
		
	document.body.style.fontSize = size;
});*/

function resizeText(multiplier) {
  var options = { path: '/', expires: 10 };
  if (document.getElementById('content').style.fontSize == "") {
    document.getElementById('content').style.fontSize = "1.0em";
  }
  document.getElementById('content').style.fontSize = parseFloat(document.getElementById('content').style.fontSize) + (multiplier * 0.1) + "em";
  $.cookie("size", document.getElementById('content').style.fontSize, options);
	// DEBUG alert($.cookie("size"));
}

$(document).ready(function(){
	var size = "1.0em";
	// DEBUG alert($.cookie("size"));
	
	if ($.cookie("size")!= null)
		size = $.cookie("size");
		
	document.getElementById('content').style.fontSize = size;
});

function translateWelsh() {
var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=auto|cy&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=auto|cy&tbb=1&ie='+e;};
}