<!--

// scripts for logo and navigation menu

getUrlVars = function() { // Example use: var first = getUrlVars()['me'];
	var vars = [], hash;
	var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
	for(var i = 0; i < hashes.length; i++)
	{
		hash = hashes[i].split('=');
		vars.push(hash[0]);
		vars[hash[0]] = hash[1];
	}
	return vars;
}

moveEye = function(navitem) {
	// pop up navigation item text and move eye towards active item
	$('#logo').attr('src', 'img/logo-eye-' + navitem + '.png');
	$('#nav-' + navitem).attr('src', 'img/nav-' + navitem + '-eye.png');
}

resetEye = function(activepage) {
	// reset the eye position in the logo
	$('#logo').attr('src', 'img/logo-eye-normal.png');
	
	// reset the navigation menu items
	$('#nav-story').attr('src', 'img/nav-story-inactive.png');
	$('#nav-toy').attr('src', 'img/nav-toy-inactive.png');
	$('#nav-getthem').attr('src', 'img/nav-getthem-inactive.png');
	$('#nav-news').attr('src', 'img/nav-news-inactive.png');
	
	if($('#nav-' + activepage).size() > 0) {
		$('#nav-' + activepage).attr('src', 'img/nav-' + activepage + '-active.png');
	}
}

-->
