function setCookie(c_name,value,expiredays){
	var exdate=new Date()
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate.toGMTString())+"; path=/";
}
function fnPopUp(image,id){
	if(document.getElementById('medium'+id).style.cursor=='pointer'){
		popupWin=open('/popup.html?image='+image,'','width=400,height=600,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=auto');
		popupWin.focus();
	}
}
function fnHilight(el){
	if(el.style.backgroundColor=='')el.style.backgroundColor='#eeeeee';
	else el.style.backgroundColor='';
}
function fnPopUp2(image){
	popupWin=open('/popup.html?image='+image.replace(/^(.*)(\.[a-z]+)$/,'$1_b$2'),'','width=400,height=600,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=auto');
	popupWin.focus();
}

