//$(window).load(function () {

$(document).ready(function(){
	
	$("#nav-one li").hover(
	function(){ $("ul", this).fadeIn("fast"); },
	function() { }
	);
	if (document.all) {
		$("#nav-one li").hoverClass ("sfHover");
	}
	
	$('.flash').click(function () {
		$(this).fadeOut('slow');
	});
});

function selectFile(o){
	var filename = o.value.toLowerCase();
	if (filename.indexOf('swf') + 3 == filename.length) {
		$("#swfplay").show("slow");
	}else{
		$("#swfplay").hide("slow");
	}
}

$(document).ready(function(){
	$("#nav-one li").hover(
	function(){ $("ul", this).fadeIn("fast"); },
	function() { }
	);
	if (document.all) {
		$("#nav-one li").hoverClass ("sfHover");
	}
});

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover(
		function() { $(this).addClass(c);  },
		function() { $(this).removeClass(c); }
		);
	});
};
