// Innerfade Home page
	$(document).ready(function(){
				$('ul#portfolio').innerfade({
				speed: 600,
				timeout: 4000,
				type: 'sequence',
				containerheight: 	'450px',
				slide_timer_on: 	'yes',
				slide_ui_parent: 	'portfolio'
				});
	});
	
// Hover moving effect
	$(document).ready(function() {
			$(".listing_col a").hover(function() {	//On hover...
				$(this).find("span").stop().animate({ 
					marginLeft: "10" //Find the span tag and move it up 40 pixels
				}, 250);
			} , function() { //On hover out...
				$(this).find("span").stop().animate({
					marginLeft: "0" //Move the span back to its original state (0px)
				}, 250);
			});
			
			$(".nav ul li ul li a").hover(function() {	//On hover...
				$(this).find("span").stop().animate({ 
					marginLeft: "10" //Find the span tag and move it up 40 pixels
				}, 250);
			} , function() { //On hover out...
				$(this).find("span").stop().animate({
					marginLeft: "0" //Move the span back to its original state (0px)
				}, 250);
			});
	});

	// Fade loading images
	$(document).ready(function(){
		$(".fade").fadeTo(1, 0);
	});
	
	$(window).load(function(){
		$(".fade").fadeTo("slow", 1);
	});
	
	// Dropdown menu
    $(document).ready(function(){
								   
		$('.nav ul ul').css({display: 'none'});
	
		$('.nav ul li').hover(function(){
			$(this).find('ul:first').css({
				visibility: 'visible',
				display: 'none'
			}).fadeIn('1000');
		},
		function(){
			$(this).find('ul:first').css({
				visibility: 'hidden'
			});
		});
     });
	
	// Goggle map marker positions
	$(document).ready(function() { 
			$('#map_canvas').googleMaps({
					  latitude: 	36.84385,
					  longitude: -76.175525,
				  markers: {
					  latitude: 	36.84385,
					  longitude: -76.175525,
				  }
			  }); 
		  });
	
	
	
	
	
	function lookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("includes/rpc.html", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
			});
		}
	} // lookup
	
	function fill(thisValue) {
		$('#inputString').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
	}
	

