$(document).ready(function() { 
  var top = -1000; 
  var easing = 'easeInQuad'; 
  $(".datepicker").datepicker();

   
  $('#click-elem').click(function() { 
  $('#nonebox').animate({'top' : 4}, {queue:false, duration:300, easing: easing}); 
  for(i=1;i<4;i++)
  	{
		var video=document.getElementById('video_'+i);
			video.style.visibility='hidden';
	}
  }); 
   
  $('#box-close').click(function() { 
  $('#nonebox').animate({'top' : top}, {queue:false, duration:500, easing: easing});
  for(i=1;i<4;i++)
  	{
		var video=document.getElementById('video_'+i);
			video.style.visibility='visible';
	} 
  }); 

   // Notice the use of the each() method to acquire access to each elements attributes
   $('a[tooltip]').each(function()
   {
   	$(this).css({color:'#000'});
      $(this).qtip({
         content: $(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
		 position: {
					   corner: {
						  target: 'bottomRight',
						  tooltip: 'topLeft'
					   }
					},
         style: { 
		  width: 200,
		  padding: 5,
		  background: '#FFF6E4',
		  color: 'black',
		  textAlign: 'center',
		  border: {
		  width: 7,
		  radius: 5,
		  color: '#ddd'
      },
      tip: 'topLeft',
      name: 'dark' // Inherit the rest of the attributes from the preset dark style
   }
      });
	   $(this).css({ padding:"0 15px 0 0",backgroundImage: "url(../images/forms/question.png)", backgroundRepeat:"no-repeat", backgroundPosition:"100% 50%"});
   });
 $('img[tooltip]').each(function()
   {
   	$(this).css({color:'#000'});
      $(this).qtip({
         content: $(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
		 position: {
					   corner: {
						  target: 'bottomRight',
						  tooltip: 'topLeft'
					   }
					},
         style: { 
		  width: 200,
		  padding: 5,
		  background: '#FFF6E4',
		  color: 'black',
		  textAlign: 'center',
		  border: {
		  width: 7,
		  radius: 5,
		  color: '#ddd'
      },
      tip: 'topLeft',
      name: 'dark' // Inherit the rest of the attributes from the preset dark style
   }
      });
	  
   });
 
}); 

 var MapZoom=12;
	  
	  var map, geoResult;



	

