var Cookie = Class.create();
Cookie.prototype = {
  initialize: function() {},
  create: function(name,value,days)
  {
    if (days)
    {
      var date = new Date();
      date.setTime(date.getTime()+(days*24*60*60*1000));
      var expires = "; expires="+date.toGMTString();
    } else {
      var expires = "";
    }
    document.cookie = name+"="+value+expires+"; path=/";
  },
  read: function(name)
  {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++)
    {
      var c = ca[i];
      while (c.charAt(0)==' ') c = c.substring(1,c.length);
      if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
  },
  erase: function(name)
  {
    createCookie(name,"",-1);
  }
}

function photo (which) {
	if (document.getElementById) {
		document.getElementById('screenshot').src = which.href;
		return false;
	}
}

function photo2 (which) {
	if (document.getElementById) {
		document.getElementById('screenshot2').src = which.href;
		return false;
	}
}

function photo3 (which) {
	if (document.getElementById) {
		document.getElementById('screenshot3').src = which.href;
		return false;
	}
}

function privacy( targetId ){
  if (document.getElementById){
  		target = document.getElementById( targetId );
  			if ((target.style.display == "none")||(target.style.display == "")){
  				target.style.display = "inline";
  			} else {
  				target.style.display = "none";
  			}
  	}
}
