﻿function ADCHADmoveTo(obj, x, y) {
	if (document.getElementById) {
		document.getElementById('adc_hads_style').style.left = x;
		document.getElementById('adc_hads_style').style.top = y;
	}
}
		
function ADCHADinit(){
	if(document.getElementById){
		obj = document.getElementById("adc_hads_style");
		obj.style.top = "-40px";
	}
}
		
function ADCHADslideDown(){
	if(document.getElementById){
		if(parseInt(obj.style.top) < 0){
			obj.style.top = parseInt(obj.style.top) + 5 + "px";
			setTimeout("ADCHADslideDown()",50);
		}
	}
}
		
function ADCHADslideUp(){
	if(document.getElementById){
		if(parseInt(obj.style.top) > -40){
			obj.style.top = parseInt(obj.style.top) - 5 + "px";
			setTimeout("ADCHADslideUp()",50);
		}
	}
}
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all


function hads_addbookmark(favurl,favtext){
if (document.all)
if (ie4||ns6) window.external.AddFavorite(favtext,favurl)
else window.sidebar.addPanel(favtext,favurl)
}