$(document).ready(function() {
$("#menu li a").wrapInner( '<span class="out"></span>' ).append( '<span class="bg"></span>' );
$("#menu li a").each(function() {
$( '<span class="over">' +  $(this).text() + '</span>' ).appendTo( this );
});

$("#menu li a").hover(function() {
$(".out",	this).stop().animate({'top':	'45px'},	250); // move down - hide
$(".over",	this).stop().animate({'top':	'0px'},		250); // move down - show
$(".bg",	this).stop().animate({'top':	'0px'},		120); // move down - show

}, function() {
$(".out",	this).stop().animate({'top':	'0px'},		250); // move up - show
$(".over",	this).stop().animate({'top':	'-45px'},	250); // move up - hide
$(".bg",	this).stop().animate({'top':	'-45px'},	120); // move up - hide
});

$("#menu2 li a").wrapInner( '<span class="out"></span>' );
$("#menu2 li a").each(function() {
$( '<span class="over">' +  $(this).text() + '</span>' ).appendTo( this );
});

$("#menu2 li a").hover(function() {
$(".out",	this).stop().animate({'top':	'45px'},	200); // move down - hide
$(".over",	this).stop().animate({'top':	'0px'},		200); // move down - show

}, function() {
$(".out",	this).stop().animate({'top':	'0px'},		200); // move up - show
$(".over",	this).stop().animate({'top':	'-45px'},	200); // move up - hide
});

});

function loadCount( fname ){
var req = '';
req = encodeURIComponent(fname);
$.post('./loadcount.php',{fname:req});
}

function subpage(){
var page = document.getElementById("page").value;
window.location="?page="+page;
}
