function tn() {
u=location.href;
window.open('http://technorati.com/faves?add='+encodeURIComponent(u),'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}
function rd() {
u=location.href;
window.open('http://www.reddit.com/submit?url='+encodeURIComponent(u),'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}
function fb() {
u=location.href;
t=document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}
function del() {
u=location.href;
t=document.title;
window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(u)+'&title='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=550,height=550');
return false;
}
function delcook(cookie) {
	window.location.href="/index.php?deleterecent="+encodeURIComponent(cookie);
}
function grayOut(vis) {
  var zindex = 50;
  var opacity = 70;
  var opaque = (opacity / 100);
  var bgcolor = '#000';
  var dark=document.getElementById('darkbk');
  if (vis) {
    var pageWidth='100%';
	var pageHeight='100%';
    dark.style.opacity=opaque;                      
    dark.style.MozOpacity=opaque;                   
    dark.style.filter='alpha(opacity='+opacity+')'; 
    dark.style.zIndex=zindex;        
    dark.style.backgroundColor=bgcolor;  
    dark.style.width= pageWidth;
    dark.style.height= pageHeight;
    dark.style.display='block';
	document.body.style.overflow = 'hidden';
	document.getElementById("msgnode").style.zIndex = zindex+10;
	document.getElementById("msgnode").style.display = "block";
  } else {
	document.body.style.overflow = 'auto';
	dark.style.display='none';
	document.getElementById("msgnode").style.display = "none";
  }
}
function getMouseXY(e) {
  if (IE) {
    mouseX = event.clientX + document.body.scrollLeft
    mouseY = event.clientY + document.body.scrollTop
  } else {
    mouseX = e.pageX
    mouseY = e.pageY
  }  
  if (mouseX < 0){mouseX = 0}
  if (mouseY < 0){mouseY = 0}
  var top=document.getElementById("cont").offsetTop;
  var mid=top+16;
  var bot=Math.abs(16-(Math.abs(mouseY-mid)));
  var g=mouseX-document.getElementById("cont").offsetLeft;
  var h;
  for (var n=1; n<=sdivs; n++) {
	h=(n*32)-g-32;
	h=h/4;
	h+=8;
	h=32-h
	if (h>32) {
	  h=32-(h-32);
	}
	if (h<16) {
	  h=16;
	}
	document.getElementById("imgu"+n).style.height = h+'px';
	document.getElementById("imgu"+n).style.width = h+'px';
  }
  return true
}