// Script: DDOBJ (Drag-and-Drop DHTML Objects) v1.41
// Company: Interaxis
// Author: dynamicreport.com
// Website: http://dynamicreport.com/ddobj.html
// License: This script is subject to the EULA included in the DDOBJ package



var dd_count = 2; // total # of objects -- increase for multiple concurrent drag-drop components


dd_setBrowser (); // initialize browser type declaration here

var dd_zIndex = 300; // starting zIndex of initial object (incremented with each object)

for (dd_i = 0; dd_i < dd_count; dd_i++)
{
	sText = ""; // reset string buffer for output
	// Netscape 4
	if (dd_features == 2)
		sText = sText + "<layer name = 'ovr_dd"+dd_i+"' id = 'ovr_dd"+dd_i+"' left = '0' top = '0' position = 'absolute' visibility = 'hide' z-index = '"+(dd_zIndex + 1)+"'>\n";
	else
		sText = sText + "<div name = 'ovr_dd"+dd_i+"' id = 'ovr_dd"+dd_i+"' style = 'position: absolute; z-index: "+(dd_zIndex + 1)+";'>\n";
	sText = sText + "  <img src = '"+sRelPath+"trans.gif' name = 'dd"+dd_i+"' id = 'dd"+dd_i+"' galleryimg = 'no' alt = 'Information Window'>\n";

	// Netscape 4
	if (dd_features == 2)
		sText = sText + "</layer>\n";
	else
		sText = sText + "</div>\n";


	// Netscape 4
	if (dd_features == 2)
		sText = sText + "<layer name = 'c_dd"+dd_i+"' id = 'c_dd"+dd_i+"' left = '0' top = '0' position = 'absolute' visibility = 'hide' z-index = '"+(dd_zIndex + 2)+"'>\n";
	else
		sText = sText + "<div name = 'c_dd"+dd_i+"' id = 'c_dd"+dd_i+"' style = 'visibility: hidden; left: 0px; top: 0px; width: 20; height: 20; position: absolute; z-index: "+(dd_zIndex + 1)+";'>\n";
	sText = sText + "  <a href = '#' onclick = 'javascript: dd_showLyr (\""+dd_i+"\", 0, 0, 0, \"\", \"\", 0); return false;'><img src = '"+sRelPath+"close.gif' galleryimg = 'no' alt = 'Close Window' width = '20' height = '20' border = '0'></a>\n";
	// Netscape 4
	if (dd_features == 2)
		sText = sText + "</layer>\n";
	else
		sText = sText + "</div>\n";



	if (dd_features == 1 && dd_ie)
		sText = sText + "<iframe name = 'cvr_dd"+dd_i+"' id = 'cvr_dd"+dd_i+"' style = 'position: absolute; visibility: hidden; display: none; z-index: 1;' frameborder = '0' scrolling = 'no' marginwidth = '0' src = '' marginheight = '0'></iframe>\n";

	// Netscape 4
	if (dd_features == 2)
	{
		sText = sText + "<layer name = 'flt_dd"+dd_i+"' id = 'flt_dd"+dd_i+"' left = '0' top = '0' position = 'absolute' visibility = 'show' z-index = '"+(dd_zIndex)+"' overflow = 'clip'>\n";
		sText = sText + "</layer>\n";
	}
	else
	{
		sText = sText + "<div name = 'flt_dd"+dd_i+"' id = 'flt_dd"+dd_i+"' style = 'position: absolute; z-index: "+(dd_zIndex)+";'>\n";
		sText = sText + "</div>\n";
	}
	document.write(sText);
	dd_zIndex += 2;
}

