function getCookie() {
	var retVal = "-1";
  	var theCookie = document.cookie;
	if (theCookie.indexOf("countryNum") != -1) {
  		s = theCookie.indexOf("countryNum=") + 11;
  		Val = unescape(theCookie.substring(s,s+3));
		if(Val=="ita"){
			retVal="italian";
		}else if(Val=="eng"){
			retVal="english";
		}
	}
	
	return retVal;
	
}
//alert (getCookie());
var countryNum = getCookie();


function setCookie(name, value, path) {
 var d = new Date();
 d.setTime(d.getTime() + 5 * 365 * 24 * 60 * 60 * 1000);
   var theCookie = name + "=" + escape(value) + "; expires=" + d.toGMTString()  + "; path=/" ;
   document.cookie = theCookie;
   window.location=path+value+"/index.html";
}
