// Grab the URL var ibp-camp if it is there
/*hu = window.location.search.substring(1);
function querySt(ji) {
	hu = window.location.search.substring(1);
	gy = hu.split("&");
	for (i=0;i<gy.length;i++) {
		ft = gy[i].split("=");
		if (ft[0] == ji) {
		return ft[1];
		}
	}
}*/

if (window.location=="http://www.hcva.net/index.html?check=LL" || window.location=="http://hcva.net/index.html?check=LL"){
	var dmcknum = "(804) 480-4300";
}
else if (window.location=="http://www.hcva.net/index.html?check=LD" || window.location=="http://hcva.net/index.html?check=LD"){
	var dmcknum = "(804) 657-7907";
}
else if (window.location=="http://www.hcva.net/index.html?check=LH" || window.location=="http://hcva.net/index.html?check=LH"){
	var dmcknum = "(804) 829-0922";	
}
else if (window.location=="http://www.hcva.net/index.html?check=LJ" || window.location=="http://hcva.net/index.html?check=LJ"){
	var dmcknum = "(804) 506-0916";
}
else if (window.location=="http://www.hcva.net/index.html?check=LM" || window.location=="http://hcva.net/index.html?check=LM"){
	var dmcknum = "(804) 657-7977";
}
else if (window.location=="http://www.hcva.net/index.html?check=HD" || window.location=="http://hcva.net/index.html?check=HD"){
	var dmcknum = "(804) 486-9107";
}
else if (window.location=="http://www.hcva.net/index.html?check=DH" || window.location=="http://hcva.net/index.html?check=DH"){
	var dmcknum = "(804) 322-9919";
}


function Get_Cookie(name) {
   var start = document.cookie.indexOf(name+"=");
   var len = start+name.length+1;
   if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
   if (start == -1) return null;
   var end = document.cookie.indexOf(";",len);
   if (end == -1) end = document.cookie.length;
   return unescape(document.cookie.substring(len,end));
} 

function setCookie(c_name,value,expiredays){
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+
	((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
