//[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,co){co=(co==null)?0:co;if(co==1){ck=$.cookie('hdiv');if(ck==null)ck='';if(ck.indexOf('|'+id+'|')==-1){$.cookie('hdiv',ck+'|'+id+'|',1);}else return;}
hda=id;opa=(op==null)?1:op;pos=(po==null)?0:po;pi=(pi==null)?0:pi;w=$(window).width();h=$(window).height();st=(pi==0)?$(window).scrollTop():0;dw=$('#'+id).width();dh=$('#'+id).height();if(pos==1)$('#'+id).css({left:((w-dw)/2),top:((h-dh)/2)+st});else if(pos==2)$('#'+id).css({left:5,top:5+st});else if(pos==3)$('#'+id).css({left:(w-dw-40),top:5+st});else if(pos==4)$('#'+id).css({left:5,top:(h-dh-45)+st});else if(pos==5)$('#'+id).css({left:(w-dw-40),top:(h-dh-45)+st});if(pi==1)$('#'+id).css({position:'fixed'});$('#'+id).fadeIn(ms);if(ha!=false)(ha!=null)?$('#'+id).draggable({handle:'handle'}):$('#'+id).draggable();}
function hide_Hdiv(id){hda='';$('#'+id).fadeOut(500)};

//[END]
//[OPENPIC]

function openpic(title,url,lo,me,re,sc,st,to,closingtime,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('','','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+='<\/td><\/tr><\/table><\/body><\/HTML>';aw.document.write(temp);
 if (closingtime!=0) aw.setTimeout('window.close()',closingtime);
}

//[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]
//[LOAD_URL_FROM_POP]

function load(file,target){if(target != '') target.window.location.href=file;else window.location.href=file;}

//[END]

