
function setCookie(name, value, expire) {
	document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
}
function getCookie(Name) {
	var search = Name + "="
	if (document.cookie.length > 0) {					// если есть какие-либо куки
		offset = document.cookie.indexOf(search) 
		if (offset != -1) {								// если кука существует 
			offset += search.length						// установить индекс начала значения
			end = document.cookie.indexOf(";", offset)	// установить индекс конца значения куки
			if (end == -1) 
				end = document.cookie.length
			return unescape(document.cookie.substring(offset, end))
		} 
	}
}
function setImgSrc(name, value) {
	setCookie(name, value)
	//setCookie(name, value, today) //?
}
function getImgSrc(name) {
	return getCookie(name)
}

function showLogos() {
	for( i = 1; i < 10; i++ ) {
		src = getImgSrc('logo0'+i); //alert(src);
		if( src != undefined ) document.getElementById('logo0'+i).src = src;
	}
	src = getImgSrc('logo10'); //alert(src);
	if( src != undefined ) document.getElementById('logo10').src = src;
}
