var isMozilla;var objDiv=null;var DivID="";var over=false;function displayFloatingDiv(divId,left,top)
{DivID=divId;$(divId).style.left=left+'px';$(divId).style.display="block";}
function hiddenFloatingDiv(divId)
{$(divId).style.visibility='hidden';DivID="";}
function MouseDown(e)
{if(over)
{if(isMozilla){objDiv=$(DivID);X=e.layerX;Y=e.layerY;return false;}
else{objDiv=$(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;}
function displayWindow(divId)
{$(divId).style.display="block";displayFloatingDiv(divId,screen.width/4,screen.height/6);}
function addListener(element,type,expression,bubbling)
{bubbling=bubbling||false;if(window.addEventListener){element.addEventListener(type,expression,bubbling);return true;}
else if(window.attachEvent){element.attachEvent('on'+type,expression);return true;}else return false;}
function openDialog(html,divId,width,height,title){title="<div style='padding-left:5px;float:left; font-weight:bold; width:85%;text-align:left'>"+title+"</div>";var effect=new PopupEffect(html,{className:"popup_effect1"});Dialog.confirm($(divId).innerHTML,{className:"alphacube",width:width,height:height,title:title})
DivID=document.getElementsByClassName('dialog')[0]
addListener(document.getElementsByClassName('top table_window')[0],'mouseover',function(e){over=true},true)
addListener(document.getElementsByClassName('top table_window')[0],'mouseout',function(e){over=false},true)
window.onscroll=function(){window.scroll(0,0)}}
function enableScrolling()
{window.onscroll="";}
init();
