var overs=null;

function preloadImages(){
	overs=new Array();
	var a=imgs;
	for(var c=0;c<a.length;c++){
		var o=new Image();
		o.src=a[c];
		overs.push(o);
	};		
	if(window.innerHeight){
	}

}
function over(obj,p){
	var o=locObj(obj);
	o.os=o.src;
	o.src=p;
}
function out(obj){
	var o=locObj(obj);
	o.src=o.os;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function locObj(o){
	if(typeof o == "string"){
		return MM_findObj(o);
	} else {
		return o;
	};	
}

var curHint="";

function showHint(id,e){
	var obj;
	var x,y;
	if(curHint) objChVis(curHint,0);
	obj=MM_findObj(id);
	if(!obj) return;
	objChVis(id,1);
	x=0;
	y=0;
	
	if(window.event){
		var pp=window.event.srcElement;
		while(pp.tagName!="BODY" && pp.tagName!="body"){
			x+=parseInt(pp.offsetLeft);
			y+=parseInt(pp.offsetTop);
			pp=pp.offsetParent;
		}
	} else {
		x=parseInt(e.pageX);
		y=parseInt(e.pageY);
	};
	x-=30;
	y-=30;

	if(x+231>parseInt(document.body.clientWidth))
		x=parseInt(document.body.clientWidth)-240;

	obj.style.left=x;
	obj.style.top=y;
	curHint=id;
	return false;
}

