//[HDIV]

var hda=new Array();
function opacity(id,opacStart,opacEnd,millisec) {var speed=Math.round(millisec/100);var timer=0;if(opacStart>opacEnd){for(i=opacStart;i>=opacEnd;i--){setTimeout("changeOpac("+i+",'"+id+"')",(timer*speed));timer++;}} else if(opacStart<opacEnd){for(i=opacStart;i<=opacEnd;i++){setTimeout("changeOpac("+i+",'"+id+"')",(timer*speed));timer++;}}}
function changeOpac(opacity, id){var object=document.getElementById(id).style;object.opacity=(opacity/101);object.MozOpacity=(opacity/101);object.KhtmlOpacity=(opacity/100);object.filter="alpha(opacity="+opacity+")";}
function blenddiv(divid, millisec){var speed=Math.round(millisec/100);var timer=0;for(i=0;i<=100;i++){setTimeout("changeOpac("+i+",'"+divid+"')",(timer*speed));timer++;}}
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;hda.push('hdp_'+id);hdp.onmousedown=stopEvent;document.onmousedown1=function(id) {document.getElementById('hdp_'+id).className=''};if(clclose) document.onmousedown=function() {for(var i=0;i<hda.length;i++) document.getElementById(hda[i]).className='';};document.getElementById('hdpc_'+id).onmousedown=function(e) {document.onmousedown1(id);return false;}}
function showHdiv(id,ms) {if(ms!=0)changeOpac(0,'hdp_'+id);hdp=document.getElementById('hdp_'+id);hdp.className='popup';if(ms!=0) blenddiv('hdp_'+id,ms);}

//[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]
