//[HDIV]

var hda='';
function stopEvent(e){if(!e) var e=window.event;e.cancelBubble=true;if(e.stopPropagation) e.stopPropagation();}
function initLogin(id,clclose){hdp=document.getElementById('hdp_'+id);if(!hdp) return false;hdp.onmousedown=stopEvent;if(clclose) document.onmousedown=function() {if(hda!='')hideHdiv(hda);};}
function showHdiv(id,ms){hda=id;new Fx.Style('hdp_'+id,'opacity',{duration:ms}).start(0,1);var myDrag=$('hdp_'+id).makeDraggable();}
function hideHdiv(id){hda='';new Fx.Style('hdp_'+id,'opacity',{duration:500}).start(1,0);}

//[END]
//[OPENPIC]

function openpic(title,url,lo,me,re,sc,st,to,closingtime,w,h,t,l)
{
 
 var h=parseInt(h)+15;

 if(t<0 || l<0){l=Math.round((screen.availWidth-w)/2);t=Math.round((screen.availHeight-h)/2)-25;}
 aw=window.open('','','toolbar='+to+',menubar='+me+',scrollbars='+sc+',resizable='+re+',status='+st+',location='+lo+',width='+w+',height='+h+',top='+t+',left='+l);
 temp='<html><head><title>'+title+'<\/title><\/head><body style="margin:0;padding:0"><table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:100%;background:#FFFFFF"><tr><td width="100%"><p align="center"><a href="javascript:window.close();"><img src="'+url+'" border="0"><\/a>';
 
 temp+='<tr><td height="100%"><p align="center" style="color:#000000;font: 9px Verdana;">'+title+'<\/td><\/tr>';

 temp+='<\/td><\/tr><\/table><\/body><\/HTML>';aw.document.write(temp);
 if (closingtime!=0) aw.setTimeout('window.close()',closingtime);
}

//[END]
