 function SendForm()
 {
    $.ajax({
     type:     'POST',
     url:      'sendform',     
     data:     $('form[name="question"]').serialize(),    
     success:  function(msg)
     {
         $('<img id="proper" src="gfx/images/ok.'+((jQuery.browser.msie && jQuery.browser.version < 7) ? 'gif' : 'png')+'" alt="ok"/>').appendTo('#fo');
         $('form[name="question"] input').val('');
         $('form[name="question"] textarea').val('');
         setTimeout(function(){$('#proper').remove()},3000);
     }
   });  
 }

function Enlarge(o)
{
      var nsrc = $(o).attr('alt');
      var img  = $('<img id="closeme" src="'+nsrc+'" alt="Certification"/>');
      img.css('opacity',0);
      img.css('left',((parseInt($(window).width(),10)-450)/2)+'px');
      
      $('<div id="overlay"></div>').appendTo('body');
      
      $('body').height();
      $(window).height();
      
      if(parseInt($(document).height(),10) > parseInt($(window).height(),10))
      {
         $('#overlay').css('height',$(document).height());
      }
      else
      {
         $('#overlay').css('height',$(window).height());
      }
            
      $('#overlay').css({
         opacity:0,
         display:'block'
      });
      
      $('#overlay').animate({
         opacity:0.5  
      },
      "fast",
      function(){
	      img.appendTo('body');
	      img.animate({opacity:1})
	      $('#closeme').bind('click',function(){
	         $('#overlay').remove();
	         $('#closeme').remove();
	      });	      
      });
}
 
 $(document).ready(function(){
   $('#globe').bind('mouseover',function(){
      $('#globe').animate({
         width: '880px',
         height: '880px',
         top: '-140px',
         left: '-230px'
      });   
   }).bind('mouseout',function(){
      $('#globe').animate({
         width: '500px',
         height: '500px',
         top: '0px',
         left: '80px'
      });   
   });
   
   
   $('.mini3').bind('click',function(){
      Enlarge(this);
   });
   
	if(jQuery.browser.msie && jQuery.browser.version < 7){
	   $('#globe').attr('src','gfx/images/map.gif');
	}   
   
   
 });