// JavaScript Document

function fontsize1() {
	$("#homeMain h1").css("font-size","24px");
	$("#homeMain p").css("font-size","12px");
	$("#homeMain p").css("line-height","17px");
	$("#homeMain .intro").css("font-size","14px");
	$("#homeMain .intro").css("line-height","19px");
	
	$("#homeMain p .buttonStyle1").css("line-height","17px");
	
	$("#contentMiddle h1").css("font-size","24px");
	$("#contentMiddle h2").css("font-size","18px");
	$("#contentMiddle h3").css("font-size","14px");
	$("#contentMiddle p").css("font-size","12px");
	$("#contentMiddle p").css("line-height","17px");
	$("#contentMiddle .intro").css("font-size","18px");
	$("#contentMiddle .intro").css("line-height","22px");
	$("#contentMiddle li").css("font-size","12px");
	$("#contentMiddle table").css("font-size","12px");
	$("#pullOutArea").css("font-size","17px");
	$("#pullOutArea").css("line-height","23px");
	
	$("#servicesAZ .servicesList .column li ").css("font-size","12px");
	$("#serviceInformation h2").css("font-size","16px");
	
	$("#consultantProfile h2").css("font-size","12px");
	
	$("#aspen p").css("font-size","12px");
	$("#aspen p").css("line-height","17px");
	$("#aspen .centre .telephone").css("font-size","14px");
	
	$("#searchResults h2").css("font-size","18px");
	$("#searchResults p").css("font-size","12px");
	$("#searchResults p").css("line-height","17px");
	$("#searchResults p .location").css("font-size","10px");
	
	
	$("#gpButtons .columnArea .title h1").css("font-size","20px");
	$("#gpButtons .columnArea .title h1").css("line-height","20px");
	$("#gpButtons .column .title h1").css("font-size","20px");
	$("#gpButtons .column .title h1").css("line-height","20px");	
	$("#gpButtons .column .content h1").css("font-size","16px");
	$("#gpButtons .column .content h1").css("line-height","16px");	
	$("#gpButtons .column .content h2").css("font-size","14px");
	$("#gpButtons .column .content h2").css("line-height","14px");	
	$("#gpButtons .column .content h3").css("font-size","12px");
	$("#gpButtons .column .content h3").css("line-height","12px");	
	$("#gpButtons .column .content p").css("font-size","12px");
	$("#gpButtons .column .content p").css("line-height","14px");
	
	
	$(".moreInformation .content h1").css("font-size","24px");
	$(".moreInformation .content p").css("font-size","12px");
	$(".moreInformation .content  p").css("line-height","17px");
	$(".moreInformation .content  .intro").css("font-size","14px");
	$(".moreInformation .content  .intro").css("line-height","19px");
	$(".moreInformation .content").css("font-size","12px");
	$(".moreInformation .content").css("line-height","14px");
	$(".moreInformation .content li").css("font-size","12px");
	$(".moreInformation .content li").css("line-height","14px");
	
	
	

	$(".fontsize .s1").css("color","white");
	$(".fontsize .s2").css("color","#95afcb");
	$(".fontsize .s3").css("color","#95afcb");
	
	setCookie("fontsize",1,365);
};

function fontsize2() {
	$("#homeMain h1").css("font-size","28px");
	$("#homeMain p").css("font-size","16px");
	$("#homeMain p").css("line-height","21px");
	$("#homeMain .intro").css("font-size","18px");
	$("#homeMain .intro").css("line-height","23px");
	
	$("#homeMain p .buttonStyle1").css("line-height","17px");
	
	$("#contentMiddle h1").css("font-size","28px");
	$("#contentMiddle h2").css("font-size","22px");
	$("#contentMiddle h3").css("font-size","18px");
	$("#contentMiddle p").css("font-size","16px");
	$("#contentMiddle p").css("line-height","21px");
	$("#contentMiddle .intro").css("font-size","22px");
	$("#contentMiddle .intro").css("line-height","27px");
	$("#contentMiddle li").css("font-size","16px");
	$("#contentMiddle table").css("font-size","16px");
	$("#pullOutArea").css("font-size","22px");
	$("#pullOutArea").css("line-height","28px");
	
	$("#servicesAZ .servicesList .column li ").css("font-size","16px");
	
	$("#consultantProfile h2").css("font-size","16px");
	$("#serviceInformation h2").css("font-size","20px");
	
	$("#aspen p").css("font-size","16px");
	$("#aspen p").css("line-height","21px");
	$("#aspen .centre .telephone").css("font-size","18px");
	
	$("#searchResults h2").css("font-size","22px");
	$("#searchResults p").css("font-size","16px");
	$("#searchResults p").css("line-height","21px");
	$("#searchResults p .location").css("font-size","10px");
	
	
	$("#gpButtons .columnArea .title h1").css("font-size","21px");
	$("#gpButtons .columnArea .title h1").css("line-height","21px");
	$("#gpButtons .column .title h1").css("font-size","21px");
	$("#gpButtons .column .title h1").css("line-height","21px");	
	$("#gpButtons .column .content h1").css("font-size","20px");
	$("#gpButtons .column .content h1").css("line-height","20px");	
	$("#gpButtons .column .content h2").css("font-size","18px");
	$("#gpButtons .column .content h2").css("line-height","18px");	
	$("#gpButtons .column .content h3").css("font-size","16px");
	$("#gpButtons .column .content h3").css("line-height","16px");	
	$("#gpButtons .column .content p").css("font-size","16px");
	$("#gpButtons .column .content p").css("line-height","18px");
	
	
	$(".moreInformation .content h1").css("font-size","28px");
	$(".moreInformation .content p").css("font-size","16px");
	$(".moreInformation .content  p").css("line-height","21px");
	$(".moreInformation .content  .intro").css("font-size","18px");
	$(".moreInformation .content  .intro").css("line-height","23px");
	$(".moreInformation .content").css("font-size","16px");
	$(".moreInformation .content").css("line-height","19px");
	$(".moreInformation .content li").css("font-size","16px");
	$(".moreInformation .content li").css("line-height","19px");
	
	
	$(".fontsize .s1").css("color","#95afcb");
	$(".fontsize .s2").css("color","white");
	$(".fontsize .s3").css("color","#95afcb");
	
	setCookie("fontsize",2,365);
};

function fontsize3() {
	$("#homeMain h1").css("font-size","32px");
	$("#homeMain p").css("font-size","20px");
	$("#homeMain p").css("line-height","25px");
	$("#homeMain .intro").css("font-size","22px");
	$("#homeMain .intro").css("line-height","27px");
	
	$("#homeMain p .buttonStyle1").css("line-height","17px");
	
	$("#contentMiddle h1").css("font-size","32px");
	$("#contentMiddle h2").css("font-size","26px");
	$("#contentMiddle h3").css("font-size","22px");
	$("#contentMiddle p").css("font-size","20px");
	$("#contentMiddle p").css("line-height","25px");
	$("#contentMiddle .intro").css("font-size","26px");
	$("#contentMiddle .intro").css("line-height","30px");
	$("#contentMiddle li").css("font-size","20px");
	$("#contentMiddle table").css("font-size","20px");
	$("#pullOutArea").css("font-size","27px");
	$("#pullOutArea").css("line-height","33px");
	
	$("#servicesAZ .servicesList .column li ").css("font-size","20px");
	
	$("#consultantProfile h2").css("font-size","20px");
	
	$("#aspen p").css("font-size","20px");
	$("#aspen p").css("line-height","25px");
	$("#aspen .centre .telephone").css("font-size","22px");
	$("#serviceInformation h2").css("font-size","26px");
	
	$("#searchResults h2").css("font-size","26px");
	$("#searchResults p").css("font-size","20px");
	$("#searchResults p").css("line-height","25px");
	$("#searchResults p .location").css("font-size","10px");
	
	
	$("#gpButtons .columnArea .title h1").css("font-size","22px");
	$("#gpButtons .columnArea .title h1").css("line-height","22px");
	$("#gpButtons .column .title h1").css("font-size","22px");
	$("#gpButtons .column .title h1").css("line-height","22px");	
	$("#gpButtons .column .content h1").css("font-size","24px");
	$("#gpButtons .column .content h1").css("line-height","24px");	
	$("#gpButtons .column .content h2").css("font-size","22px");
	$("#gpButtons .column .content h2").css("line-height","22px");	
	$("#gpButtons .column .content h3").css("font-size","20px");
	$("#gpButtons .column .content h3").css("line-height","20px");	
	$("#gpButtons .column .content p").css("font-size","20px");
	$("#gpButtons .column .content p").css("line-height","22px");
	
	
	$(".moreInformation .content h1").css("font-size","32px");
	$(".moreInformation .content p").css("font-size","20px");
	$(".moreInformation .content  p").css("line-height","25px");
	$(".moreInformation .content  .intro").css("font-size","22px");
	$(".moreInformation .content  .intro").css("line-height","27px");
	$(".moreInformation .content").css("font-size","20px");
	$(".moreInformation .content").css("line-height","24px");
	$(".moreInformation .content li").css("font-size","20px");
	$(".moreInformation .content li").css("line-height","24px");
	
	
	$(".fontsize .s1").css("color","#95afcb");
	$(".fontsize .s2").css("color","#95afcb");
	$(".fontsize .s3").css("color","white");
	
	setCookie("fontsize",3,365);
};

function setCookie(c_name,value,exdays)
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate() + exdays);
	var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
	document.cookie=c_name + "=" + c_value + "; path=/"; 
}

function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
{
  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  x=x.replace(/^\s+|\s+$/g,"");
  if (x==c_name)
    {
    return unescape(y);
    }
  }
}

function checkCookie()
{
	var setfontsize=getCookie("fontsize");
	  if (setfontsize==1)
	  {
		fontsize1();
	  }
	  else if (setfontsize==2)
	  {
		fontsize2();
	  }
	  else if (setfontsize==3)
	  {
		fontsize3();
	  }
	else 
	  {
	  fontsize1();
	}
}
