$(document).ready(function(){





$("div.glavmenu ul li:0 a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"200px"}).show();
$(this).css('background-position',"center -100px")
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});


$("div.glavmenu ul li:gt(0):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"200px"}).show();
$(this).css('background-position',"center -200px")
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});


$("div.glavmenu ul li:gt(1):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"200px"}).show();
$(this).css('background-position','center -100px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});


$("div.glavmenu ul li:gt(2):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"200px"}).show();
$(this).css('background-position','center -200px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});



$("div.glavmenu ul li:gt(3):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"300px"}).show();
$(this).css('background-position','center -300px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});

$("div.glavmenu ul li:gt(4):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"300px"}).show();
$(this).css('background-position','center -400px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});

$("div.glavmenu ul li:gt(5):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"300px"}).show();
$(this).css('background-position','center -300px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});


$("div.glavmenu ul li:gt(6):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"300px"}).show();
$(this).css('background-position','center -400px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});


$("div.glavmenu ul li:gt(7):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"400px"}).show();
$(this).css('background-position','center -100px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});

$("div.glavmenu ul li:gt(8):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"400px"}).show();
$(this).css('background-position','center -200px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});


$("div.glavmenu ul li:gt(9):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"400px"}).show();
$(this).css('background-position','center -100px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});


$("div.glavmenu ul li:gt(10):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"400px"}).show();
$(this).css('background-position','center -200px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});

$("div.glavmenu ul li:gt(11):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"500px"}).show();
$(this).css('background-position','center -300px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});

$("div.glavmenu ul li:gt(12):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"500px"}).show();
$(this).css('background-position','center -400px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});

$("div.glavmenu ul li:gt(13):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"500px"}).show();
$(this).css('background-position','center -300px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});


$("div.glavmenu ul li:gt(14):lt(1) a").hover(function(){
var mtext = $(this).next(".menuitem").html();
$("div#header p").html(mtext);
$("div#header").css({"top":"500px"}).show();
$(this).css('background-position','center -400px')
}, function(){
$("div#header").hide();
$("div#header p").html("");
$(this).css('background-position','center 0px')
});




});
