function expand(co, href) {
			 var exp = new Date();
			exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 30));

			if (document.getElementById(co).style.display == "block"){
				delCookie(co);
        		document.getElementById(co).style.display = "none";
        		ocument.location.href = href;
    		}else{
				setCookie(co,'droped',exp);
        		document.getElementById(co).style.display = "block";
        		document.location.href = href;
		 	}
}

function setCookie(name, value, expires) {
	document.cookie = name + "=" + escape(value) + "; path=/" + ((expires == null) ? "" : "; expires=" + expires.toGMTString());
}

function delCookie(name) {
	var d = new Date();
	document.cookie = name + "=;expires=" + d.toGMTString() + "; path=/";
}


function openLightbox(url,caption){
		var objLink = document.createElement('ali');
		objLink.setAttribute('href',url);
		objLink.setAttribute('rel','lightbox');
		objLink.setAttribute('title',caption);
		objLink.setAttribute('width',800);
		objLink.setAttribute('height',377);
		Lightbox.prototype.start(objLink);
}
function GroupDelegate(id) {
   var objLink = document.getElementById(id);
   Lightbox.prototype.start(objLink);
}

