function lookup(inputString) {
   if(inputString.length <3) {
      $('#suggestions').fadeOut(); // Hide the suggestions box
   } else {
      $.post("inc/ajax_search_suggestions.php", {queryString: ""+inputString+""}, function(data) { // Do an AJAX call
		//var parentOffset = $('#top-links').offset();
		//$('#suggestions').css('right', parentOffset.left);
		//alert(parentOffset.left);
        $('#suggestions').fadeIn(); // Show the suggestions box
        $('#suggestions').html(data); // Fill the suggestions box
      });
   }
}

/* Contact form on side */
$('.slide-out-div').tabSlideOut({
    tabHandle: '.handle',                              //class of the element that will be your tab
    pathToTabImage: 'images/Contact.png',          //path to the image for the tab *required*
    imageHeight: '122px',                               //height of tab image *required*
    imageWidth: '40px',                               //width of tab image *required*    
    tabLocation: 'right',                               //side of screen where tab lives, top, right, bottom, or left
    speed: 300,                                        //speed of animation
    action: 'click',                                   //options: 'click' or 'hover', action to trigger animation
    topPos: '200px',                                   //position from the top
    fixedPosition: true                               //options: true makes it stick(fixed position) on scroll
});
