function setCookie (name, value, expires, path, domain, secure) {
	var curCookie = name + "=" + escape(value) + 
		((expires) ? "; expires=" + expires.toGMTString() : "") + 
		((path) ? "; path=" + path : "") + 
		((domain) ? "; domain=" + domain : "") + 
		((secure) ? "; secure" : "") 
	if ((name + "=" + escape(value)).length <= 4000) 
		document.cookie = curCookie 
	else 
	if (confirm("Cookie превышает 4KB и будет вырезан !")) 
		document.cookie = curCookie 
		
} 

function getCookie (name) {
	var prefix = name + "=" 
	var cookieStartIndex = document.cookie.indexOf(prefix) 
	if (cookieStartIndex == -1) return null 
	var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) 
	if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length 
	return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) 
} 

function deleteCookie (name, path, domain) {
	if (getCookie(name)) { 
		document.cookie = name + "=" + 
		((path) ? "; path=" + path : "") + 
		((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-99 00:00:01 GMT" 
	}
} 


obj_datecook= new Date();
obj_datecook.setTime(obj_datecook.getTime()+10*(24*60*3600));
/*function hideFlash(flash_block, panel_block) {
	document.getElementById('flash_block').className = 'flash_hidden';
	document.getElementById('panel_block').className = 'panel_shown';
}
function showFlash(flash_block, panel_block) {
	document.getElementById(flash_block).className = 'flash_shown';
	document.getElementById(panel_block).className = 'panel_hidden';
}*/
/*
function toggle_flash(flash_block, panel_block) {
	if(getCookie('hideflash') && getCookie('hideflash')>0) {
		setCookie('hideflash', 0);
		
	}else{
		setCookie('hideflash', 1);
		
	}
}*/

