function DM_Open(psLayer)
{
	if (document.layers && document.layers[psLayer])
		document.layers[psLayer].visibility = 'visible';
	else if (document.all && document.all[psLayer])
		document.all[psLayer].style.visibility = 'visible';
}

function DM_Close(psLayer)
{
	if (document.layers && document.layers[psLayer])
		document.layers[psLayer].visibility = 'hidden';
	else if (document.all && document.all[psLayer])
		document.all[psLayer].style.visibility = 'hidden';
}

function DM_SwapImage(psImage,psImageSwap)
{
	if (document.images)
		document.images[psImage].src = psImageSwap;
}

function item(width,height) {
	document.write("<SPAN style=\"width:"+width+"px;height:"+height+"px;\">");
}

function oc(link,o,c,w,h,txt) {

	var strparent;
	var retval = "";

	item(w,h);	
	retval = "<A href='" + link + "' class='DM_Item_LastInRow_Item' style='width:"+w+"px;height:"+h+"px;' onMouseOver='";

	for(var x=0; x<o.length; x++){
		strparent = "DM_Open(\"parent_" + o[x] + "\");";
		retval = retval + strparent;
	}

	retval = retval + "' onMouseOut='";

	for(var x=0; x<c.length; x++){
		strparent = "DM_Close(\"parent_" + c[x] + "\");";
		retval = retval + strparent;
	}
	
	retval = retval +"'>";
	
	retval = retval + txt + "</a></span>";
	
	document.write(retval);
	
}
