$(document).ready(function() {
			 var leftVal;
			 var topVal;
			 var c = $('#adv1').position();
				leftVal=c.left-15+"px";
				topVal=c.top+65+"px";
				//alert('x='+leftVal+'  y='+topVal);


		  
		  $('#adv1').hover(function(e) {
			  //getting height and width of the message box
/*			  var height = $('#adv1_p').height();
			  var width = $('#adv1_p').width();*/
			  //calculating offset for displaying popup message
			  //show the popup message and hide with fading effect
			  $('#adv1_p').css({left:leftVal,top:topVal}).show(); $('#fade1').fadeOut(100); 
			  //alert('x='+leftVal+'  y='+topVal); 
			  });
		  $("#adv1").mouseout(function() { $('#adv1_p').fadeOut(1000); $('#fade1').fadeIn(1000);});	
		 
		  $('#adv2').hover(function(e)
			{

			  /*var height = $('#adv2_p').height();
			  var width = $('#adv2_p').width();

			  leftVal=e.pageX+"px";
			  topVal=e.pageY+10+"px";*/

			  $('#adv2_p').css({left:leftVal,top:topVal}).show();
			   $('#fade1').fadeOut(100);
			});
		  $("#adv2").mouseout(function(){$('#adv2_p').fadeOut(1000); $('#fade1').fadeIn(1000);});
		  
			  $('#adv3').hover(function(e)
			{
/*			  var height = $('#adv3_p').height();
			  var width = $('#adv3_p').width();
			  leftVal=e.pageX+"px";
			  topVal=e.pageY+10+"px";*/
			  $('#adv3_p').css({left:leftVal,top:topVal}).show();
			   $('#fade1').fadeOut(100);
			});
		  $("#adv3").mouseout(function(){$('#adv3_p').fadeOut(1000); $('#fade1').fadeIn(1000);});
			$('#adv4').hover(function(e)
			{
/*			  var height = $('#adv4_p').height();
			  var width = $('#adv4_p').width();
			  leftVal=e.pageX+"px";
			  topVal=e.pageY+10+"px";*/
			  $('#adv4_p').css({left:leftVal,top:topVal}).show();
			   $('#fade1').fadeOut(100);
			});
		  $("#adv4").mouseout(function(){$('#adv4_p').fadeOut(1000); $('#fade1').fadeIn(1000);});
		  
		  $('#adv5').hover(function(e)
			{
/*			  var height = $('#adv5_p').height();
			  var width = $('#adv5_p').width();
			  leftVal=e.pageX+"px";
			  topVal=e.pageY+10+"px";*/
			  $('#adv5_p').css({left:leftVal,top:topVal}).show();
			   $('#fade1').fadeOut(100);
			});
		  $("#adv5").mouseout(function(){$('#adv5_p').fadeOut(1000); $('#fade1').fadeIn(1000);});
		  
		  $('#adv6').hover(function(e)
			{
/*			  var height = $('#adv6_p').height();
			  var width = $('#adv6_p').width();
			  leftVal=e.pageX+"px";
			  topVal=e.pageY+10+"px";*/
			  $('#adv6_p').css({left:leftVal,top:topVal}).show();
			   $('#fade1').fadeOut(100);
			});
		  $("#adv6").mouseout(function(){$('#adv6_p').fadeOut(1000); $('#fade1').fadeIn(1000);});
		  
		  $('#adv7').hover(function(e)
			{
/*			  var height = $('#adv7_p').height();
			  var width = $('#adv7_p').width();
			  leftVal=e.pageX+"px";
			  topVal=e.pageY+10+"px";*/
			  $('#adv7_p').css({left:leftVal,top:topVal}).show();
			   $('#fade1').fadeOut(100);
			});
		  $("#adv7").mouseout(function(){$('#adv7_p').fadeOut(1000); $('#fade1').fadeIn(1000);});
		  $('#adv8').hover(function(e)
			{
/*			  var height = $('#adv8_p').height();
			  var width = $('#adv8_p').width();
			  leftVal=e.pageX+"px";
			  topVal=e.pageY+10+"px";*/
			  $('#adv8_p').css({left:leftVal,top:topVal}).show();
			   $('#fade1').fadeOut(100);
			});
		  $("#adv8").mouseout(function(){$('#adv8_p').fadeOut(1000); $('#fade1').fadeIn(1000);});
		  
		  $('#adv9').hover(function(e)
			{
/*			  var height = $('#adv9_p').height();
			  var width = $('#adv9_p').width();
			  leftVal=e.pageX+"px";
			  topVal=e.pageY+10+"px";*/
			  $('#adv9_p').css({left:leftVal,top:topVal}).show();
			   $('#fade1').fadeOut(100);
			});
		  $("#adv9").mouseout(function(){$('#adv9_p').fadeOut(1000); $('#fade1').fadeIn(1000);});		
		  
		  $('#adv10').hover(function(e)
			{
/*			  var height = $('#adv10_p').height();
			  var width = $('#adv10_p').width();
			  leftVal=e.pageX+"px";
			  topVal=e.pageY+10+"px";*/
			  $('#adv10_p').css({left:leftVal,top:topVal}).show();
			   $('#fade1').fadeOut(100);
			});
		  $("#adv10").mouseout(function(){$('#adv10_p').fadeOut(1000); $('#fade1').fadeIn(1000);});	  
  });
