function jQueryInit() {

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ phpQuery Behaviors

// Open External Links in Seperate Page
$("a[rel=external]").external();



// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Theme Behaviors

// Run Lightbox
$(".lightbox").lightbox();

// Add Color Swither
var colors = new Array();
colors['Ash']      = '333333';
colors['Calypso']  = '006666';
colors['Envy']     = '006633';
colors['Rust']     = '663300';
colors['Crimson']  = '660000';
colors['Amethyst'] = '660066';
var theList = '<ul id="style">';
for(var name in colors) 
{
	theList += '<li><a href="#" rel="'+colors[name]+'" title="'+name+'">&nbsp;</a></li>';
}
theList += '<span id="colorName">Ash</span></ul>';
$('body').append(theList);

// Set Background per Cookie
var theBG = $.cookie('background_color');
if(theBG)
{
	var theBGColor = '#'+colors[theBG];
	$('body').animate({backgroundColor:theBGColor},1000);
	$('span#colorName').fadeOut('1000',function(){
		$('span#colorName').text(theBG);
		$('span#colorName').fadeIn('1000');
	});
}

// Switch Background Colors
$('ul#style a').each(function(){
	var theColor  = '#'+$(this).attr('rel');
	var theStatus = $(this).attr('title');
	$(this).css({'backgroundColor':theColor});
	$(this).attr('href','#'+theStatus);
	$(this).click(function(event){
		//$('body').css({'backgroundColor':theColor});
		$('body').animate({backgroundColor:theColor},1000);
		$('span#colorName').fadeOut('1000',function(){
			$('span#colorName').text(theStatus);
			$('span#colorName').fadeIn('1000');
		});
		if(theStatus == 'Ash')
		{
			$.cookie('background_color',null,{path:'/',expires:-1});
		}
		else
		{
			$.cookie('background_color',theStatus,{path:'/',expires:99});
		}
		event.preventDefault();
		return false;
	});
});


// AJAX Navigation
$('ul#nav a').each(function(){
	$(this).navAJAX();
});



$('ul#nav a').each(function(){
	if($('body').attr('id') == $(this).text())
	{
		$(this).addClass('navActive');
	}
	else
	{
		$(this).removeClass('navActive');
	}
});



}
