
function setborder(obj)
{
	obj.style.border = "solid #a09fa7 1px";
	obj.style.backgroundColor = "#f1f1ce";
}

function resetborder(obj)
{
	obj.style.border = "";
	obj.style.backgroundColor = "transparent";
}

wmtt = null;

//document.onmousemove = fly_move;


function fly_move(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	
	width = (document.all) ?  document.body.clientWidth : window.innerWidth;
	
	if (wmtt != null) {
		if(x > (width/2 + 80))
		{
			x = x-2;	
		}
		wmtt.style.left = (x + 10) + "px";
		wmtt.style.top 	= (y + 10) + "px";
	}
	

}



/* 
text ==> text that will be written into the div 
divname ==> name of div that will be shown 
*/

function fly_start(text, divname) {
		
	if (document.layers){
	    //Netscape 4 specific code
	    pre = 'document.';
	    post = '';
		post1 = '';		
	    scr_h = window.innerHeight;
	}
	if (document.getElementById){
	    //Netscape 6 specific code
	    pre = 'document.getElementById("';
	    post = '").style';
		post1 = '")';		
	    scr_h = window.innerHeight;

	}
	if (document.all){
	    //IE4+ specific code
	    pre = 'document.all.';
	    post = '.style';
		post1 = '';		
	    scr_h = document.body.clientHeight;
	}
	
	// standard is overdiv
	if(divname == "")
		divname = "overDiv";
		
	wmtt = null;
	wmtt = eval(pre + divname + post1);	
	
	
	if (wmtt != null) 
	{
		// old style
		if(divname == "overDiv")
			wmtt.innerHTML = "<TABLE WIDTH=190 CELLPADDING=0 CELLSPACING=0 BGCOLOR='#c0c0c0' style='border-style:solid; border-color:#c0c0c0; border-width:1'><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR='#eeeeee'><TR><TD VALIGN=TOP align=center><FONT FACE='Arial,Helvetica'  SIZE='1' class='flyout'><div align=left>"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
		
		//if(text != "" && divname != "overDiv")
			wmtt.innerHTML = text;
			
		//wmtt.style.display = "block";	
	}
}


function fly_stop() {
	if (wmtt != null) 
		wmtt.style.display = "none";
		wmtt = null;
}


