<!--
var tmr = null;
var ebd = null;
function makeSound(file) {
	if (true) return;
if (!ebd) {
var snd = document.createElement('embed');
snd.setAttribute("name", "hoversound");
snd.setAttribute("id", "hoversound");
snd.setAttribute("src", file);
snd.setAttribute("autostart", "true");
snd.setAttribute("loop", "true");
snd.setAttribute("volume", "250");
snd.setAttribute("hidden", "true");
document.getElementById("sound-holder").parentNode.appendChild(snd);
if (tmr) {
clearTimeout(tmr);
}
tmr = setTimeout('killSound()', 2000);
ebd = true;
}
else {
clearTimeout(tmr);
killSound();
return makeSound(file);
}
}
function killSound() {
document.getElementById("sound-holder").parentNode
.removeChild(document.embeds['hoversound']);
ebd = null;
}
//-->



// JavaScript Document
//Animate Navigation Bar
$(document).ready(function() {
	//Main Menu Hover
	$('#navigation li.hasmenu').hoverIntent({
		timeout: 250,
		over: function() {
			$(this).css("background-color","#");
			var kids = $(this).children(".submenu");
				$(kids[0]).animate({
					height: 'show',
					opacity: 1
				},{
					duration: 500,
					queue: true
				});
			},
		out: function() {
			var kids = $(this).children(".submenu");
			$(kids[0]).animate({
				height: 'hide',
				opacity: 0
			},{
				duration: 400,
				queue: true,
				complete: $(this).css("background-color","#")
			})
		}
	});
	
	//Submenu Hover
	$('#navigation ul.submenu li').hover(
		function() {
			$(this).animate({
				color:"#000",
				marginLeft:'+=20px'
			},{
				duration: 250,
				queue: true,
				complete: function() {
					$(this).animate({
						marginLeft:'-=10px'
					}, {
						duration: 100,
						queue: true
					});
				}
			})
		},
		function() {
			$(this).animate({
				color:"#FFF",
				marginLeft:'-=10px'
			},{
				duration: 400
			})
		}		
	);
});

//Add Rounded Corners to Animation Bar

