function setCookie(name, value, expire) {   
		document.cookie = name + "=" + escape(value)   
		+ ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));
	}
function Gray() 
{ 
		var tag_names = "";
	       	var today = new Date();
		var expires = new Date();

		for (i=0; i<document.all.length; i++) document.all(i).className='G'; 
		document.all.ib.style.visibility='visible';
		document.all.ib.className=''; 
		expires.setTime(today.getTime() + 1000*60*60*24*365);
		setCookie("Gray","true",expires);
} 
function Colors() 
{ 
	var tag_names = "";
	var today = new Date();
	var expires = new Date();

	for (i=0; i<document.all.length; i++) 
	document.all(i).className=''; 
	document.all.ib.style.visibility='hidden';

	expires.setTime(today.getTime() + 1000*60*60*24*365);
	setCookie("Gray","false",expires);
} 
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));
			}    
			return "";
		}
		return "";
	}
function load_values () {
		if (getCookie("Gray")=="true") {
			Gray()}
		else {
			Colors()};
}
function newWin(foto)  {
  width = screen.width;
  height = screen.height;
  i=500;
  j=500;
  l=width-i-10;
  myWin= open("", "_blank", "width="+i+",height="+j+",status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,top=0,left="+l+"");
  myWin.document.open();
  myWin.document.write("<html><head><title>Enlarge</title><SCRIPT LANGUAGE='JavaScript'>function ai() {width = screen.width;height = screen.height;i = i0.width+30;j = i0.height+35;l=width-i-10;window.moveTo(l,0);window.resizeTo(i,j);};</SCRIPT></head><body onload='ai()' bgcolor='#C0C0C0' leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0'><img border='0' name=i0 src='");
  myWin.document.write(foto);
  myWin.document.write("'></body></html>");
  myWin.document.close();
}

function showw(whichone){
thew=whichone;
if(parseInt(navigator.appVersion) > 3){
		if(navigator.appName == "Netscape"){thew.visibility = 'visible'}
     		else{thew.style.visibility='visible'};
     		}
}

function hidew(whichone){
thew=whichone;
if(parseInt(navigator.appVersion) > 3){
		if(navigator.appName == "Netscape"){thew.visibility = 'hidden'}
     		else{thew.style.visibility='hidden'};
     		}
}
