
var isMozilla;var objDiv=null;var originalDivHTML="";var DivID="";var over=false;var DivInfo=new Array();function buildDimmerDiv()
{document.write('<div id="dimmer" class="dimmer"></div>');}
function displayFloatingDiv(divId,title,width,height,left,top,btn)
{if(document.body.scrollHeight>window.screen.height)
document.getElementById('dimmer').style.height=document.body.scrollHeight;DivID=divId;document.getElementById('dimmer').style.visibility="visible";document.getElementById(divId).style.display='block';document.getElementById(divId).style.width=width+'px';document.getElementById(divId).style.height=height+'px';document.getElementById(divId).style.left=left+'px';document.getElementById(divId).style.top=top+'px';var addHeader;originalDivHTML=document.getElementById(divId).innerHTML;if(originalDivHTML!="")
DivInfo[divId]=originalDivHTML;else
originalDivHTML=DivInfo[divId];var clstr='';if(btn=='1'){clstr='<div align="center"><a href="javascript:hiddenFloatingDiv(\''+divId+'\');void(0);">'+'<img alt="Close" title="Close" src="images/close.png" border="0"></a></div>';addHeader='<table cellspacing="0" cellpadding="0" style="width:'+width+'px" class="floatingHeader">'+'<tr class="floatingHeader"><td ondblclick="void(0);" onmouseover="over=true;" onmouseout="over=false;">'+title+'</td>'+'<td align="right"><a href="javascript:hiddenFloatingDiv(\''+divId+'\');void(0);">'+'<img alt="Close" title="Close" src="images/close.gif" border="0"></a></td></tr></table>';}else{addHeader='<table style="width:'+width+'px" class="floatingHeader">'+'<tr class="floatingHeader"><td ondblclick="void(0);" onmouseover="over=true;" onmouseout="over=false;">'+title+' '+'<span align="right">&nbsp;</span></td></tr></table>';}
document.getElementById(divId).innerHTML=addHeader+originalDivHTML+clstr;document.getElementById(divId).className='dimming';document.getElementById(divId).style.visibility="visible";}
function hiddenFloatingDiv(divId)
{document.getElementById(divId).innerHTML="";document.getElementById(divId).style.visibility='hidden';document.getElementById('dimmer').style.visibility='hidden';DivId="";}
function MouseDown(e)
{if(over)
{if(isMozilla){objDiv=document.getElementById(DivID);X=e.layerX;Y=e.layerY;return false;}
else{objDiv=document.getElementById(DivID);objDiv=objDiv.style;X=event.offsetX;Y=event.offsetY;}}}
function MouseMove(e)
{if(objDiv){if(isMozilla){objDiv.style.top=(e.pageY-Y)+'px';objDiv.style.left=(e.pageX-X)+'px';return false;}
else
{objDiv.pixelLeft=event.clientX-X+document.body.scrollLeft;objDiv.pixelTop=event.clientY-Y+document.body.scrollTop;return false;}}}
function MouseUp()
{objDiv=null;}
function init()
{isMozilla=(document.all)?0:1;if(isMozilla)
{document.captureEvents(Event.MOUSEDOWN|Event.MOUSEMOVE|Event.MOUSEUP);}
document.onmousedown=MouseDown;document.onmousemove=MouseMove;document.onmouseup=MouseUp;buildDimmerDiv();}
init();
