<!--
	// Diese Datei muss nach 'animate.js' includet werden

	var cusobj

	function cus() {
		cusobj=document.all? document.all["cus"] : document.getElementById? document.getElementById("cus") : ""

		// HTML
		document.getElementById('cus').innerHTML = document.getElementById('colors').innerHTML.replace('{divname}', 'cus') + document.getElementById('cus_data').innerHTML
		docWidth=document.body.offsetWidth
		div_ref_style("cus").left = ((((winwidth-300))/2) + xPosLeft) + (document.documentElement? "px" : "")
		div_ref_style("cus").top =  yPos2

		cusobj.style.visibility="visible"
	}

	function showDivImage(tbl, col, id, c_heavy) {
		agent.call('','showdivimage','cb_showdivimage', tbl, col, id, c_heavy);
	}

	function cb_showdivimage(p1) {
		cusobj=document.all? document.all["showimage"] : document.getElementById? document.getElementById("showimage") : ""
		// HTML
		var html = '';
		html     = '<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="center" align="center" style="cursor: pointer">';
     	html    += '<img id="divimg" name="divimg" src="getimage.php?tbl=' + p1[2] + '&col=' + p1[3] + '&id=' + p1[4] + '&fullsize=1&imv=1&bc=' +  p1[5] + '"';
     	html    += ' onMouseover="ddrivetip(\'Schliessen\',\'FFFFFF\')" onMouseout="hideddrivetip()" ';
		html    += ' onclick="disableDiv2(\'showimage\');hideddrivetip();return false;">';
		html    += '</td></tr></table>';

		document.getElementById('showimage').innerHTML = html
		var x = p1[0];
		var y = p1[1];

		div_ref_style("showimage").left = ((((winwidth-x))/2) + xPosLeft) + (document.documentElement? "px" : "")
		div_ref_style("showimage").top  = ((((winheight-y))/2) + yPosTop) + (document.documentElement? "px" : "")
		cusobj.style.visibility="visible"
	}

//-->
