var myimages = new Array()

function preloadimages() {
	for (i=0;i<preloadimages.arguments.length;i++) {
		myimages[i]=new Image()
		myimages[i].src=preloadimages.arguments[i]
	}
}

// ------------------
// Resize post images
	function picSize(pic) {
		if (pic.width > 562)
		{
			pic.width = 562;
			if(document.getElementById)
			{
				pic.style.cursor = 'hand';
			}			

			cap = document.createElement('div');
			cap.className = 'smalltext';
			cap.appendChild(document.createTextNode("Image resized :: Click to view fullscreen"));

			pic.parentNode.insertBefore(cap, pic.nextSibling);
		}
	}

	function picClick(pic)
	{
		click=window.open(pic.src,'','resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,status=no,location=yes,left=0,top=0');
	}