$(document).ready(function() {
	$('.menu_poga').hover(function() {
		$(this).addClass('menu_poga_over');
		var lapasid = ($(this).attr('lapasid'));
		
	}, function() {
		$(this).removeClass('menu_poga_over');
	});
	
	$('.menu_poga_in').hover(function() {
		$(this).addClass('menu_poga_in_over');
	}, function() {
		$(this).removeClass('menu_poga_in_over');
	});
	
	$('ul.dropdown ul li').hover(function() {
		$(this).addClass('overm1');
	}, function() {
		$(this).removeClass('overm1');
	});
	
	$('.menu_poga').click(function(){
		var lapasid = ($(this).attr('lapasid'));
		//'index.php?id='+lapasid;
		window.location = lapasid; 
	});
	
	$('.menu_poga_in').click(function(){
		var lapasid = ($(this).attr('lapasid'));
		//'index.php?id='+lapasid;
		window.location = lapasid;
	});
	
	$(document).pngFix();
	
	var pos = $("#top_bilde").offset();
	var width = $("#top_bilde").width();	
	//$("#debug").val(pos.left);
	$("#lenta").css( { "left": (pos.left-75) + "px" } );
	
	$(window).bind("resize", resizeWindow);
	function resizeWindow( adjustment ) {
		var pos = $("#top_bilde").offset();
		var width = $("#top_bilde").width();	
		//$("#debug").val(pos.left);
		$("#lenta").css( { "left": (pos.left-75) + "px" } );
	}
	

	
});

