map_i=0;
function ActiveDialog (text, stat, x, y, id, href, width)
	{
	map_i++;
	document.getElementById('Mdiv').innerHTML+="<div style='left:"+x+"px; top:"+y+"px; position:absolute;' class='Ddialog' id='"+id+"_p'><div style='position:relative;'><table border='0' cellpadding='0' cellspacing='0' class='Dtable'><tr><td width='9'><img src='images/Dleft_"+stat+".png' border='0' id='Dleft_"+map_i+"' /></td><td class='Dcenter_"+stat+"' id='Dcenter_"+map_i+"'>"+text+"</td><td width='12'><img src='images/Dright_"+stat+".png' border='0' id='Dright_"+map_i+"' /></td></tr></table><img src='images/Dtriangle_"+stat+".png' border='0' class='Dtriangle' id='Dtriangle_"+map_i+"' /><br /><div style='position:absolute; width:"+width+"px; margin-top:-27px; overflow:hidden; height:27px;' onmouseover='activate("+map_i+",\"a\",1)' onmouseout='activate("+map_i+",\"p\",1)'><a href='"+href+"'><img src='images/top.gif' border='0' /></a></div></div></div>";
//	fixPNG(document.getElementById('Dleft_'+i));fixPNG(document.getElementById('Dcenter_'+i));fixPNG(document.getElementById('Dright_'+i));fixPNG(document.getElementById('Dtriangle_'+i));	
	}

function activate(id,stat,v)
	{
//	if (v==1) v='';
//	$('#Dleft_'+id).attr('src','images/Dleft_'+stat+'.png');
//	$('#Dright_'+id).attr('src','images/Dright_'+stat+'.png');
//	$('#Dcenter_'+id).css('background-image','url(images/Dcenter_'+stat+'.png)');
//	$('#Dtriangle_'+id).attr('src','images/Dtriangle_'+stat+v+'.png');	
//	fixPNG(document.getElementById('Dleft_'+id));fixPNG(document.getElementById('Dcenter_'+id));fixPNG(document.getElementById('Dright_'+id));fixPNG(document.getElementById('Dtriangle_'+id));	
	}

function ActiveDialog2 (text, stat, x, y, id, href, width)
	{
	map_i++;
	document.getElementById('Mdiv').innerHTML+="<div style='left:"+x+"px; top:"+y+"px; position:absolute;' class='Ddialog' id='"+id+"_p'><table border='0' cellpadding='0' cellspacing='0' class='Dtable'><tr><td colspan='3'><img src='images/Dtriangle_"+stat+"2.png' border='0' class='Dtriangle' id='Dtriangle_"+map_i+"' /></td></tr><tr><td width='9'><img src='images/Dleft_"+stat+".png' border='0' id='Dleft_"+map_i+"' /></td><td class='Dcenter_"+stat+"' id='Dcenter_"+map_i+"'>"+text+"</td><td width='12'><img src='images/Dright_"+stat+".png' border='0' id='Dright_"+map_i+"' /></td></tr></table><div style='position:absolute; margin-top:-25px; overflow:hidden; height:25px; width:"+width+"px;' onmouseover='activate("+map_i+",\"a\",2)' onmouseout='activate("+map_i+",\"p\",2)'><a href='"+href+"'><img src='images/top.gif' border='0' /></a></div></div>";
//	fixPNG(document.getElementById('Dleft_'+i));fixPNG(document.getElementById('Dcenter_'+i));fixPNG(document.getElementById('Dright_'+i));fixPNG(document.getElementById('Dtriangle_'+i));	
	}

function ActiveDialog3 (text, stat, x, y, id, href, width)
	{
	map_i++;
	document.getElementById('Mdiv').innerHTML+="<div style='left:"+x+"px; top:"+y+"px; position:absolute;' class='Ddialog' id='"+id+"_p'><table border='0' cellpadding='0' cellspacing='0' class='Dtable'><tr><td colspan='3'><img src='images/Dtriangle_"+stat+"3.png' border='0' class='Dtriangle' id='Dtriangle_"+map_i+"' /></td></tr><tr><td width='9'><img src='images/Dleft_"+stat+".png' border='0' id='Dleft_"+map_i+"' /></td><td class='Dcenter_"+stat+"' id='Dcenter_"+map_i+"'>"+text+"</td><td width='12'><img src='images/Dright_"+stat+".png' border='0' id='Dright_"+map_i+"' /></td></tr></table><div style='position:absolute; margin-top:-25px; overflow:hidden; height:25px; width:"+width+"px;' onmouseover='activate("+map_i+",\"a\",3)' onmouseout='activate("+map_i+",\"p\",3)'><a href='"+href+"'><img src='images/top.gif' border='0' /></a></div></div>";
//	fixPNG(document.getElementById('Dleft_'+i));fixPNG(document.getElementById('Dcenter_'+i));fixPNG(document.getElementById('Dright_'+i));fixPNG(document.getElementById('Dtriangle_'+i));	
	}

function ActiveDialog4 (text, stat, x, y, id, href, width)
	{
	map_i++;
	document.getElementById('Mdiv').innerHTML+="<div style='left:"+x+"px; top:"+y+"px; position:absolute;' class='Ddialog' id='"+id+"_p'><table border='0' cellpadding='0' cellspacing='0' class='Dtable'><tr><td width='9'><img src='images/Dleft_"+stat+".png' border='0' id='Dleft_"+map_i+"' /></td><td class='Dcenter_"+stat+"' id='Dcenter_"+map_i+"'>"+text+"</td><td width='12'><img src='images/Dright_"+stat+".png' border='0' id='Dright_"+map_i+"' /></td></tr><tr><td colspan='3'><img src='images/Dtriangle_"+stat+"4.png' border='0' class='Dtriangle' id='Dtriangle_"+map_i+"' /></td></tr></table><div style='position:absolute; margin-top:-25px; overflow:hidden; height:25px; width:"+width+"px;' onmouseover='activate("+map_i+",\"a\",4)' onmouseout='activate("+map_i+",\"p\",4)'><a href='"+href+"'><img src='images/top.gif' border='0' /></a></div></div>";
//	fixPNG(document.getElementById('Dleft_'+i));fixPNG(document.getElementById('Dcenter_'+i));fixPNG(document.getElementById('Dright_'+i));fixPNG(document.getElementById('Dtriangle_'+i));	
	}

