$(function () {
	$('.dropdown').each(function () {
		$(this).parent().eq(0).hover(function () {
			$('.dropdown:eq(0)', this).show();
		}, function () {
			$('.dropdown:eq(0)', this).hide();
		});
	});
});

/* German Drulyk */
/* Created on Nov 5, 2009*/

function tabbed_nav()
{
	// Get the pathname from the current URL
	var currentURL = window.location.pathname;
	// Create array to hold segments of the pathname
	var temp = new Array();
	// Split the pathname wherever a forward-slash ( / ) exists
	temp = currentURL.split("/");
	
	// Re-use array to split last item wherever a period exists
	// Last item in array should be (ex: index.html or contact.php or whatever)
	temp = temp[temp.length - 1].split(".");
	// Store first item from the new array (ex: index or contact with no file extension)
	var currentPage = temp[0];
	
	// Find out if current URL has a filename in it
	if(currentPage != '')
	{ //Filename found
		//Check if an object with this ID exists in this document
		if(document.getElementById(currentPage))
		{ //Object with this ID exists on document
			// Use jQuery to style proper anchor tag with this ID
			$('a#'+currentPage).css({'background-color':'#fff','color':'#000'});
		}
		else
		{ //No objects with this ID exist in document
			//do nothing to avoid throwing error
		}
	}
	else
	{ // No filename exists in URL. Change tab color for link that is your index page
	  // User is probably on (ex: www.sample.com/ or www.sample.com/projects/09/company/)
		$('a#index').css({'background-color':'#fff','color':'#000'});
	}
}
