//[HDIV]

var hda='';var opa;
function initLogin(id,clclose){if($('#'+id).length==0) return false;$('#'+id).appendTo(document.body);$('#'+id).bind("mousedown",function(event) {event.stopPropagation();});if(clclose) $(document).bind("mousedown",function(e){if((hda!='')&&(e.pageX<($(window).width()-15)))hide_Hdiv(hda);});}
function show_Hdiv(id,ms,ha,op,po,pi){hda=id;opa=(op==null)?1:op;pos=(po==null)?0:po;w=$(window).width();h=$(window).height();dw=$('#'+id).width();dh=$('#'+id).height();if(pos==1)$('#'+id).css({left:((w-dw)/2),top:((h-dh)/2)});else if(pos==2)$('#'+id).css({left:5,top:5});else if(pos==3)$('#'+id).css({left:(w-dw-15),top:5});else if(pos==4)$('#'+id).css({left:5,top:(h-dh-45)});else if(pos==5)$('#'+id).css({left:(w-dw-15),top:(h-dh-45)});
pi=(pi==null)?0:pi;if(pi==1)$('#'+id).css({position:'fixed'});$('#'+id).show(ms);if(ha!=false)(ha!=null)?$('#'+id).draggable({handle:'handle'}):$('#'+id).draggable();}
function hide_Hdiv(id){hda='';$('#'+id).hide(1000)};

//[END]
//[DROP_SCRIPT]

var b_el=null;var tog=false;
function ToggleBody(e_id,r){var b_state='none';var img=r+'images/expand.gif';if(tog&&(b_el!=null)&&(b_el.id!=e_id+"Body"))b_el.style.display='none';
if(document.getElementById){b_el=document.getElementById(e_id+"Body");u_img=document.getElementById(e_id+"Up");} else if(document.all){b_el=document.all[e_id+"Body"];u_img=document.all[e_id+"Up"];}
if(b_el!=null){if(b_el[0]){b_el=b_el[0];u_img=u_img[0];}if(b_el.style.display=="none"){img=r+"images/collapse.gif";b_state='block';}u_img.src=img;b_el.style.display=b_state;}return false;}

//[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 cellspacing="0" cellpadding="0" style="width:100%;height:100%;background:#FFFFFF"><tr><td width="100%"><p align="center"><a href="javascript:window.close();"><img width="'+w+'" border="0" src="'+url+'"><\/a>';
 
 temp+='<tr><td height="100%"><p align="center" style="color:#000000;font: 9px Verdana;"><a href="javascript:window.close();">Close</a><\/td><\/tr>';

 temp+='<\/td><\/tr><\/table><\/body><\/HTML>';aw.document.write(temp);
 if (closingtime!=0) aw.setTimeout('window.close()',closingtime);
}

//[END]

