// JavaScript Document
var Hint={
	init:function() {
		this.leftfix=238;
		this.topfix=(document.all)? 11 : 9;
		this.cont=document.getElementById('floats');
		this.targs=this.getElementsByClass('note02', this.cont, 'div');
		this.handlers=this.getElementsByClass('float_handler');
		this.imgs=this.getElementsByClass('float_img');
		this.hlen=this.handlers.length;
		for (var i=0;i<this.hlen;i++) {
			this.handlers[i].no=this.targs[i].no=i;
			this.handlers[i].onmouseover=this.targs[i].onmouseover=this.onover;
			this.handlers[i].onmouseout=this.targs[i].onmouseout=this.onout;
			this.targs[i].style.display='none';
		}
	}, onover:function(){
		var targ=Hint.targs[this.no];
		if (Hint.fcs!=null) {Hint.targs[Hint.fcs].style.display='none';MM_swapImgRestore();}
		if (Hint.timer!=null) clearTimeout(Hint.timer);
		
		var pos=Hint.findPos(Hint.handlers[this.no]);
		//var left=pos[0]-Hint.leftfix;
		var left=pos[0]+Hint.handlers[this.no].offsetWidth+10;
		//if (left<0) left=pos[0]+Hint.handlers[this.no].offsetWidth+10;
		
		var top=pos[1]-Hint.topfix;
		targ.style.left=left+'px';
		targ.style.top=top+'px';
		
		//alert('l '+left+' left '+pos[0]+' top'+pos[1]+' act '+targ.style.left);
		
		targ.style.display='inline';
		Hint.fcs=this.no;
		//MM_swapImage(Hint.imgs[this.no].name,'','images/question_c3.gif',1);
	}, onout:function(){
		Hint.timer=setTimeout('Hint.execout()', 500);
	}, execout:function() {
		if (Hint.timer!=null) clearTimeout(Hint.timer);
		Hint.targs[Hint.fcs].style.display='none';
		Hint.fcs=null;
		MM_swapImgRestore();
	}, findPos:function(obj) {
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			curleft = obj.offsetLeft;
			curtop = obj.offsetTop;
			while (obj = obj.offsetParent) {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}
		}
		return [curleft,curtop];
	}, getElementsByClass:function(searchClass,node,tag) {
		var classElements = new Array();
		if ( node == null ) node = document;
		if ( tag == null ) tag = '*';
		var els = node.getElementsByTagName(tag);
		var elsLen = els.length;
		var pattern = new RegExp('(^|\\s)'+searchClass+'(\\s|$)');
		for (i = 0, j = 0; i < elsLen; i++) {
			if ( pattern.test(els[i].className) ) {
				classElements[j] = els[i];
				j++;
			}
		}
		return classElements;
	}
};

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
