//[HDIV]

var hda='';var opa;
function stopEvent(e){if(!e) var e=window.event;e.cancelBubble=true;if(e.stopPropagation) e.stopPropagation();}
function initLogin(id,clclose){hdp=document.getElementById(id);if(!hdp) return false;hdp.onmousedown=stopEvent;if(clclose) document.onmousedown=function() {if(hda!='')hide_Hdiv(hda);};}
function show_Hdiv(id,ms,ha,op,po,pi){hda=id;opa=(op==null)?1:op;pos=(po==null)?0:po;if(pos==1)$(id).position();else if(pos==2)$(id).position({position:'topLeft'});else if(pos==3)$(id).position({position:'topRight',edge:'topRight'});else if(pos==4)$(id).position({position:'bottomLeft',edge:'bottomLeft'});else if(pos==5)$(id).position({position:'bottomRight',edge:'bottomRight'});pi=(pi==null)?0:pi;if(pi==1)$(id).pin();new Fx.Tween(id,{duration:ms}).start('opacity',0,opa);if(ha!=false)var myDrag=(ha!=null)?$(id).makeDraggable({'handle':$(ha)}):$(id).makeDraggable();}
function hide_Hdiv(id){hda='';new Fx.Tween(id,{duration:500}).start('opacity',opa,0);}

//[END]
//[LOAD_URL_FROM_POP]

function load(file,target)
{
 if(target != '') target.window.location.href=file;
 else window.location.href=file;
}

//[END]
//[OPENHTML]

function openhtml(url,lo,me,re,sc,st,to,w,h,t,l)
{
 if(t<0 || l<0){l=Math.round((screen.availWidth-w)/2);t=Math.round((screen.availHeight-h)/2)-25;}
 aw=window.open(url,'_blank','toolbar='+to+',menubar='+me+',scrollbars='+sc+',resizable='+re+',status='+st+',location='+lo+',width='+w+',height='+h+',top='+t+',left='+l);
 aw.opener=self;aw.focus();return false;
}

//[END]
