/* 

Bootup Script
v. 2.0

last mod: 11-3-09
by: Mark

jQuery calls.


*/


/*################################################################################## */

$(document).ready(function() {
	
	$('#navigation > ul > li a').append('<span class="swipe"></span>').css('background', 'none');
	$('#navigation > ul > li').hover(function () {
		$(this).children('a').find('.swipe').stop().animate({ width:'100%'}, 400);
	}, function() {
		$(this).children('a').find('.swipe').stop().css('width', '0');
	});
		
	if ($('body.inner').length > 0 ) {
		var divElem = $('body.inner #quick-links');
		var headerElem = $('h1', divElem);
		var ulElem = $('ul', divElem).addClass('quickie').hide();
		var actionBool = false;
		
		headerElem.bind( "mouseenter", function() {
			if (! actionBool) {
				ulElem.slideDown('fast');
				actionBool = true;
			}
		});
		divElem.bind( "mouseleave", function() {
			ulElem.slideUp('fast', function() { actionBool = false; });
		});
	}
	
},function(){
	GUnload();
});
