var krdefs = new Object();

function showDef(word, evt) {
	
	var pos = null;
	if (window.innerHeight) {
		  pos = window.pageYOffset
	} 
	else if (document.documentElement && document.documentElement.scrollTop) {
		pos = document.documentElement.scrollTop
	}
	else if (document.body) {
		  pos = document.body.scrollTop
	}
	
	if (pos == null) return;
	
	if (is_ie) {
		var x = evt.clientX;
		var y = evt.clientY;
		var obj = document.getElementById(krdefs[word]);
	
		obj.style.left = x + 'px';
		obj.style.top = y + pos - parseInt(obj.style.height) - 10 + 'px';
		obj.style.visibility = 'visible';
	}
	else {
		var x = evt.clientX;
		var y = evt.clientY;
		var obj = document.getElementById(krdefs[word]);
	
		obj.style.left = x + 'px';
		obj.style.top = y + pos - parseInt(obj.style.height) - 10 + 'px';
		obj.style.visibility = 'visible';
	}
		
	
	
}	

function hideDef(word, evt) {
	document.getElementById(krdefs[word]).style.visibility = 'hidden';			
}

function drawDef(word, width, height, definition) {
	var id = "krdef_" + word;
	krdefs[word] = id;
	document.write('<div ');
		document.write(' id="' + id + '" ');
		document.write(' style=" ');
			document.write(' position: absolute; ');
			document.write(' padding: 3px; ');
			document.write(' background-color: #ffffcc; '); 
			document.write(' color: #000000; ');
			document.write(' top: 0px; ');
			document.write(' left: 0px; ');
			document.write(' width: ' + width + 'px; ');
			document.write(' height: ' + height + 'px; ');
			document.write(' visibility: hidden; ');
			document.write(' border: 1px solid black; ');
		document.write(' " ');
	document.write('>');
		document.write('<font ');
			document.write(' style=" ');
				document.write(' font-family:Verdana,sans-serif; ');
				document.write(' font-size:8pt; ');
			document.write(' " ');
			//document.write(' face="Verdana,sans-serif" ');
			//document.write(' size="-2" ');
		document.writeln('>');
			document.writeln(definition);
		document.writeln('</font>');
	document.writeln('</div>');
}

drawDef('Remarque',
		300,
		135,
		'For the print collector who is looking for something out of the ordinary, the addition of a remarque may be considered. ' +
		'A remarque is an original pencil drawing done individually by Keith Rocco in the white border area of the print. The remarque is often a portrait of a personality in the print or one of the main characters. Remarques are available only on fine art prints. ' +
        'Additional Charge: $100.00 (U.S. Dollars only)');

drawDef('Giclees',
        300,
        135,
        'Giclee - pronounced "jee-clay" - is the term commonly used for the world\'s most advanced digital fine art printmaking processes. ' +
        'The process is capable of reproducing paintings, photographs, and illustrations with astounding accuracy. Iris giclee printers use saturated, water-based archival inks to produce a combination of 12 chromatic changes, with more than three million possible colors ... ');
            
drawDef('Fine art print',
        300,
        135,
        'Offset lithography is a process in which the original artwork is reproduced photographically upon a metal plate. The combination of one to six plates of varying colors are capable of producing a wide hue spectrum. ' +
		'After a series of proofs to insure color matching to the original artwork, the image is reproduced on archival quality paper using fade-resistant inks.');
			
