﻿//var global_event_active = false ;
//$(function() {
//	$('#RollOver').bind('mouseover', function(e){
//			if (! global_event_active) {
//				global_event_active = true ;
//				var toppos = e.clientY + "px" ;
//				$('#RollOverText').css( {top:toppos})
//				$('#RollOverText').fadeIn("fast").fadeOut(3000,function(){global_event_active=false;});
//			}
//				
//	});
	//$('#RollOver').bind('mouseout', function(event){$('#RollOverText').fadeOut(2000);});
//	$('#RollOver').mousemove(
//		function(e) {
//			//$('#RollOverText').show();
//			// e.PageX e.clientX
//			var height = $('#RollOverText').height();
//			var width = $('#RollOverText').width();
//			var leftpos = e.clientX - (width/2) +"px" ;
//			var toppos = e.clientY + "px" ;
//			$('#RollOverText').css( {top:toppos,left:leftpos})
//		
//		}
//	
//	) ;
//});



var oWindow = '';
  
function openwin(WinUrl,winname,width,height,features) {
 
// Note: This has an adjustment of minus 15 pixels.  Remove if want to.
  var winleft = ((screen.width - width) / 2)-15;
  var wintop  = (screen.height - height) / 2;
  
  if(!oWindow.closed && oWindow && oWindow.location)  {

	oWindow.moveTo(winleft,wintop);
	oWindow.location.href = WinUrl;
	oWindow.focus();
	}
	else
	{
	oWindow = window.open(WinUrl,winname,'width=' + width + ',height=' + height + ',top=' + wintop + ',left=' + winleft + ',' + features);
	oWindow.focus();
	}
	
	if (window.focus) {oWindow.focus()}
	
}