﻿<!--
function TJK_dropCap(z_Width,z_Height,z_Node_ID){// v1.2.1 Copyright (c) 2006 TJKDesign - Thierry Koblentz
// Edit "z_FolderPath" to match the path of your image folder and replace the file extension *if* needed
//	if (!document.getElementById || !document.createElement) return;
//	if (!z_Width || !z_Height) alert("TJK_dropCap: Missing parameter(s)");
	//var z_El = document.getElementById(z_Node_ID);
	var z_P = document.getElementById("drop");
	var z_FolderPath = "images/";

		var z_FILE =z_FolderPath+z_P.firstChild.data.charAt(0)+".png";	
		var z_Span = document.createElement('span');
		var z_Image = document.createElement('img');
		//var z_Letter = document.createTextNode(z_P.firstChild.data.charAt(0));
		z_P.firstChild.replaceData(0,1,""); // removes first letter
		z_P.insertBefore(z_Span,z_P.firstChild);
		z_Span.appendChild(z_Image);
		//z_Span.appendChild(z_Letter);
		z_Span.style.height=z_Height+"px";
		z_Span.style.width=z_Width+"px";		
		z_Span.className="z_SpanClass";
		z_Span.style.fontSize=eval(z_Height-10)+"px"; // letters like "Q" are not cut-off
		z_Image.width="1"; // JS on / CSS off	
		z_Image.className="z_ImageClass";
		z_Image.style.width=z_Width+"px";
		z_Image.style.height=z_Height+"px";	
		z_Image.alt="";
		z_Image.src=z_FILE;
}

document.write('<style type="text/css">.z_SpanClass {float:left;display:block;margin-right:5px;text-transform:uppercase;font-weight:bold;overflow:hidden}.z_ImageClass{}</style>');
//-->