function joetoe_quicklink() {
	var id=document.getElementById('joetoe');
	if(!id || id===null) return;
	
	id.innerHTML='<a href="http://joetoe.com" class="attention">JoeToe</a>&nbsp;&nbsp;&nbsp;<span style="white-space: nowrap">&nbsp;<a href="http://a-z.joetoe.com" onclick="return open_link(\'http://a-z.joetoe.com\')"><b>A-Z</b></a>&nbsp;<a href="http://search.joetoe.com.com" onclick="return open_link(\'http://search.joetoe.com\')"><b>Search</b></a>&nbsp;<a href="http://text.joetoe.com" onclick="return open_link(\'http://text.joetoe.com\')"><b>Text</b></a>&nbsp;<a href="http://fun.joetoe.com" onclick="return open_link(\'http://fun.joetoe.com\')"><b>Fun</b></a>&nbsp;<a href="http://pixpack.net" onclick="return open_link(\'http://pixpack.net\')"><b>PixPack</b></a>&nbsp;<a href="http://dict-ator.com" onclick="return open_link(\'http://dict-ator.com\')"><b>Dict-ator</b></a>&nbsp;<a href="http://funsturbation.com" onclick="return open_link(\'http://funsturbation.com\')"><b>Funsturbation</b></a></span><br/><br/><u>Pick of the day</u>: <a href="http://fairytale.joetoe.com" onclick="return open_link(\'http://fairytale.joetoe.com\')"><b>Fairytale</b></a> - <span class="small"><a href="http://fairytale.joetoe.com" onclick="return open_link(\'http://fairytale.joetoe.com\')">http://fairytale.joetoe.com</a><br/>A small collection of the most liked and most popular fairy tales.</span><br/><br/><table><tr><td style="width: 150px"><a target="_blank" href="http://gagpack.net/show/20070704194635750/xhrhumgdhf/Another Use Of The Bajaj Bike " title="Another Use Of The Bajaj Bike"><img alt="Another Use Of The Bajaj Bike" title="Another Use Of The Bajaj Bike" src="http://srv007.pixpack.net/_20070704194635750_xhrhumgdhf.jpg"/></a></td><td><a href="http://joke.joetoe.com" onclick="return open_link(\'http://joke.joetoe.com\')"><u><b>joke.joetoe.com</b></u></a><br/><a href="http://joke.joetoe.com/joke/13095_what%2Cbetween%2Cjewish%2Cmother.html" target="_blank" style="text-decoration: none">Q: What\'s the difference between a Rottweiler and a Jewish Mother?  <br/>A:  Eventually, the Rottweiler lets go.</a></td></tr></table>';
	
	id.onmouseover=function() {
		id.style.width='400px';
		id.style.height='200px';
	}
	id.onmouseout=function() {
		id.style.width='34px';
		id.style.height='18px';
	}
}

function open_link(url, target) {
	window.open(url,target ? target : '_blank','');
	return false;
}

function open_image(url) {
var image= new Image()
	image.src=url;
var width=image.width;
var height=image.height;

var x=screen.width;
var y=screen.height;
var isScroll;
if(width>(x-10) || height>(y-50)) {
	if((width+10)>x) {
		width=x;if((height+50)>y) {width=width-20;height=y-50;}
	} else if((height+50)>y) {
		width=width-20;height=y-50;
	}
	isScroll=true;
} else isScroll=false;

var win=window.open('','img','width='+width+', height='+height+', scrollbars='+(isScroll ? 1 : 0)+', dependent=1, hotkeys=0, location=0, menubar=0, resizable=0, statusbar=0, toolbar=0, personalbar=0');
	win.document.open();
	win.document.write('<html style="margin:0px; padding:0px"><head><title>PixPack</title></head>');
	win.document.write('<body style="margin:0px; padding:0px" onblur="window.close()"><a href="#" onclick="window.close()" style="text-decoration: none">');
	win.document.write('<img border="0" src="'+url+'" alt=""/>');
	win.document.write('</a></body>');
	win.document.close();
	win.focus();
	win.moveTo(0,0);
}

function bookmark(url, title) {
  if ((typeof window.sidebar=='object') && (typeof window.sidebar.addPanel=='function')) {
    if (window.location.protocol!='file:') window.sidebar.addPanel(title,url,'');
  } else {
	  if ((typeof window.external=='object') && (typeof window.external.AddFavorite!='undefined')) {
		window.external.AddFavorite(url,title);
	  } else {
    	alert('Your browser doesn\'t support this function');
	  }
  }
}

function focus(id) {
	if(!id || id==null) id='focus';
	
	if(document.getElementById(id)) document.getElementById(id).focus();
}

function dummy() {
	return false;
}

function createXHR() {
	var xhr=null;
	if (window.XMLHttpRequest) { // Mozilla, Safari,...
		xhr=new XMLHttpRequest();
		//if (xhr.overrideMimeType) xhr.overrideMimeType('text/xml');
  	} else if (window.ActiveXObject) { // IE
		try {
			xhr=new ActiveXObject('Msxml2.XMLHTTP');
		} catch (e) {
			try {
				xhr=new ActiveXObject('Microsoft.XMLHTTP');
			} catch (e) {
				xhr=null;
			}
		}
	}
	if(xhr==null) alert('Your browser doesn\'t support Ajax!');
	
	return xhr;
}