$(document).ready(function () {	
		$('.topLvlNav').hoverIntent(
			function () {
				//show its submenu
				$('ul', this).slideDown(100);
			}, 
			function () {
				//hide its submenu
				$('ul', this).slideUp(100);			
			});
		
		
	// RANDOM AWARD STUFF
	

		$(".featured").each(function()
			{
				var n = Math.floor( Math.random() * 5 );
				$(this).html("<img style='margin:0 24px' src='img/loading.gif' />").load('portfolio.php .featureMe:eq('+n+')', function()
				{
					$(".twoCol", this).unwrap().removeClass("spacer");
					$(".category",this).remove();
					$(".twoCol:eq(1)", this).prepend($(".twoCol h2", this));
					$(".twoCol h2", this).css('marginTop','0px');
					$(".twoCol:eq(0)", this).remove();
					$(".twoCol", this).unwrap();
					$("a[rel='portItem']").colorbox({title:"Navicor Creative - More on the <a href='portfolio.php'>portfolio page</a>. "});

					$(this).hide().fadeIn(1500);
					
				});
			});
			
});



/* ~~~~~ END DOC READY ~~~ */


/* ~~~~~~~~ Headline Flash Stuff
*/

	var flashvars = {};
	var params = {};
		params.scale = "noborder";
		params.bgcolor = "#4F082B";
		params.salign = "T";
		params.wmode = "transparent";
		params.allowFullScreen = "true";
		params.allowScriptAccess = "always";
	var attributes = {};
		attributes.id = "flashType";
		attributes.name = "flashType";
		
