function getCookie() {
	var retVal = "0";
  	var theCookie = document.cookie;
	if (theCookie.indexOf("countryNum") != -1) {
  		s = theCookie.indexOf("countryNum=") + 11;
  		Val = unescape(theCookie.substring(s,s+3));
  		retVal = Val;
	}
	
	return retVal;
	
}
//alert (getCookie());
var countryNum = getCookie();


function setCookie(value) {
	//alert(value);
	 var d = new Date();
 d.setTime(d.getTime() + 5 * 365 * 24 * 60 * 60 * 1000);
   var theCookie = "countryNum=" + escape(value) + "; expires=" + d.toGMTString()  + "; path=/" ;
   document.cookie = theCookie;
}

// ***********************************

// ***********************************

function getImgCookie() {
	var retVal = "0";
  	var theCookie = document.cookie;
	if (theCookie.indexOf("img") != -1) {
  		s = theCookie.indexOf("img=") + 4;
  		Val = unescape(theCookie.substring(s,s+31));
  		retVal = Val;
	}
	
	return retVal;
	
}

function setImgCookie(value) {
	//alert(value);
	 var d = new Date();
 d.setTime(d.getTime() + 5 * 365 * 24 * 60 * 60 * 1000);
   var theCookie = "img=" + escape(value) + "; expires=" + d.toGMTString()  + "; path=/" ;
   document.cookie = theCookie;
}

// ***********************************

// ***********************************

function getLangCookie() {
	var retVal = "0";
  	var theCookie = document.cookie;
	if (theCookie.indexOf("lang") != -1) {
  		s = theCookie.indexOf("lang=") + 5;
  		Val = unescape(theCookie.substring(s,s+2));
  		retVal = Val;
	}
	
	return retVal;
	
}

function setLangCookie(value) {
	//alert(value);
	 var d = new Date();
 d.setTime(d.getTime() + 5 * 365 * 24 * 60 * 60 * 1000);
   var theCookie = "lang=" + escape(value) + "; expires=" + d.toGMTString()  + "; path=/" ;
   document.cookie = theCookie;
}

// ************************************