window.addEvent('domready', function() {
	if ($('note') && !$('order_form') && !$('input_form')){
		$('note').makeDraggable();
		$('note').setStyle('cursor', 'move');
	}
	if ($('note_wkly')){
		$('note_wkly').makeDraggable();
		$('note_wkly').setStyle('cursor', 'move');
	}
});

function d2f(id, idn) {
	if ((obj=$(id)) != null) {
		obj.style.zIndex = n++%100;
		if (idn) {
			shl('bij');
			sl('bij', bijs[idn]);
		}
	} else {
		hil('bij');
	}
}
function reset() {
	hil('tekst');
	for (i=0; i<12; i++) {
		if ((obj=$('pic_'+i)) != null) {
			obj.style.zIndex = i;
		}
	}
}

function shl(id) {
	if ((obj=($(id))) != null) {
		obj.style.display = 'block';
	}
}
function sh(id){
	if ((obj=$(id)) != null) {
		obj.style.display = ((obj.style.display == 'block')? "none" : "block");
	}
}
function hil(id) {
	if ((obj=$(id)) != null) {
		obj.style.display = 'none';
	}
}
function sl(obn, txt) {
	if (obn == "tekst") {
		txt = txts[txt];
		shl('tekst');
	}
	if ((obj=$(obn)) != null) {
		with (obj) {
			if (document.layers) {
				document.write(unescape(txt));
				document.close();
			} else {
				innerHTML = unescape(txt);
			}
		}
	}
}
