jQuery(document).ready(function($) {
	$('table.list tr:not(.noHover)').mouseover(function() {
		$(this).attr('bgcolor', '#F2F2F2');
	}).mouseout(function () {
		$(this).attr('bgcolor', '#FFFFFF');
	});
	
	$('.opa70').mouseover(function () {
		if ($.support.opacity) {
			$(this).css('opacity', 1);
		} else {
			$(this).get(0).filters.alpha.opacity = 100;
		}
	}).mouseout(function() {
		if ($.support.opacity) {
			$(this).css('opacity', 0.7);
		} else {
			$(this).get(0).filters.alpha.opacity = 70;
		}
	});
	$('.opa80').mouseover(function () {
		if ($.support.opacity) {
			$(this).css('opacity', 1);
		} else {
			$(this).get(0).filters.alpha.opacity = 100;
		}
	}).mouseout(function() {
		if ($.support.opacity) {
			$(this).css('opacity', 0.8);
		} else {
			$(this).get(0).filters.alpha.opacity = 80;
		}
	});
});


//Tip Box Display, version 1.0
//Bontrager Connection, LLC
//http://www.willmaster.com/
//-> Functions findPosX and findPosY by 
// Peter-Paul Koch & Alex Tingle at 
// http://www.quirksmode.org/js/findpos.html and 
// http://blog.firetree.net/2005/07/04/javascript-find-position/
var TipBoxID = "TipBox";
var tip_box_id;
function findPosX(obj)
{
var curleft = 0;
if(obj.offsetParent)
while(1) 
{
   curleft += obj.offsetLeft;
   if(!obj.offsetParent)
      break;
   obj = obj.offsetParent;
}
else if(obj.x)
   curleft += obj.x;
return curleft;
}
function findPosY(obj)
{
var curtop = 0;
if(obj.offsetParent)
while(1)
{
   curtop += obj.offsetTop;
   if(!obj.offsetParent)
      break;
   obj = obj.offsetParent;
}
else if(obj.y)
   curtop += obj.y;
return curtop;
}
function DisplayTipBox(me,offX,offY,contentId) {
var tipO = me;
tip_box_id = document.getElementById(TipBoxID);
var x = findPosX(me);
var y = findPosY(me);
tip_box_id.style.left = String(parseInt(x + offX) + 'px');
tip_box_id.style.top = String(parseInt(y + offY) + 'px');
var strContent = jQuery('#' + contentId).html();
tip_box_id.innerHTML = strContent;
tip_box_id.style.display = "block";
//tipO.onclick = HideTip;
jQuery(tipO).bind('mouseleave', function(e) {
		  if (e.pageX <= x || e.pageX >= x + jQuery(me).width() || e.pageY <= y) {
			  // we only allow to exit downwards
			  HideTip();
		  }
	  });
	  jQuery(tip_box_id).bind('mouseleave', function() {
		  // when leaving tipbox
		  HideTip();
	  });
} // function DisplayTip()
function HideTip() { tip_box_id.style.display = "none"; }

