


$().ready(function() {
	$('.moredetails').hide();  // . refers to CLASS

	$('.readmore').click(function() {	// for expanding content, ie. FAQs, etc.
		var str = $(this).attr("id");
		$('#readmore-'+str).toggle('slow');
	});


//$('#midtext').click(function() {  // # refers to ID
//	$("p").attr("font-size","15pt");
//});


if($.cookie("css")) { // keeps track of last size, ensures that future page loads and visits are already sized as requested!
//	$("link").attr("href",$.cookie("css"));
//		$("#pagesize").attr({href: stylesheet});
//	$("#pagesize").attr("href",$.cookie("css"));
	$("#pagesize").attr({href: $.cookie("css")});
}


$("#textresize a").click(function() { 
		//$("link").attr("href",$(this).attr('rel'));
		
		//$('style[type="text/css"]').text('@import url("yourstylesheet.css");');
		//$('style[type="text/css"]').text('@import url(stylesheet);');
		var stylesheet = $(this).attr('rel');
		//alert (stylesheet);
		$("#pagesize").attr({href: stylesheet});

		$.cookie("css", stylesheet, {expires: 365, path: '/'}); // set the cookie
	return false;
});


$('.choosesite').change(function() {
//	var temp = $(this).val();
//	var url = "http:abc.com/" + temp;
 // alert('Handler for .change() called.');
  //window.location(url);

	var url = "http://www.kensingtonhealth.org/index.php?page=";
			url += $(this).val();
//	$(".choosesite option:selected").each(function () {
//	$(".choosesite option:selected").each(function () {
//			str += $(this).val() + " ";
//		});
	//$("div").text(str);
//	alert(str);
  window.location = url;

});


});


