function url_info() {
	var the_url = location.protocol + '//' + location.host + '/';
	// Check to see if in testbox
	var url_pieces = location.pathname.split('/');
	if (url_pieces[1] == 'devfiles') {
		the_url = the_url + 'devfiles/dward/purpose_unlimited/';
	}
	return the_url;
}
// Create nav-menu hover
$(document).ready(function() {
	// Add arrow icon after links
	$('a.arrow').each(function() {
		$(this).after('&nbsp;&nbsp;<img src="http://purposeunlimited.com/images/right-arrow.gif" alt="->" style="margin-top: -4px" />');
	});
	// Sign-up form script 
	if ($('form#sign-up-form')) {
		$('form#sign-up-form input[type="text"]').each(function() {
			$(this).focus(function() {
				$(this).select();
				//$(this).val('');
			});
		});
	}
	$('#accordion a').click(
	function() {
		if($('#accordion div').is(':hidden')){
		$('#accordion div').slideDown();
	}
	else{
		$('#accordion div').slideUp();}			
	});
	
	$('#navbar li a').each(function() {
		$(this).attr('href', url_info() + $(this).attr('href'));
	});
});
