function ColorClick(clr){
	gb=document.getElementById("galleryblock");
	if(gb){
		for(j=1;j<gb.rows.length;j++){
			myrow=gb.rows[j];
			for(i=0;i<myrow.cells.length;i++){
				cell=myrow.cells[i];
				tb=cell.firstChild;
				if(tb){
					tb.className=clr+' blackframe';
				}
			}
		}
	}
	one=document.getElementById("colorchage");
	if(one){
		one.className=clr+' bt';
	}
	document.cookie="colorframe="+clr;
	document.cookie="colorframe="+clr+"; path=/"
}

function swflash(sw){	
	var expDate = new Date();
	expDate.setTime(expDate.getTime() + 365*24*60*60*1000);	
	if(sw=='off'){
		var valu = '1';
	} else {
		var valu = '';
	}
	document.cookie = "noflash="+valu+"; path=/; expires="+ expDate.toGMTString();+""
	
	document.location=window.location;
}