jQuery(document).ready(function($) {

    //ADDING CLASSES  
    $("#userlos-close").click(function() {
   		$("#userlos").fadeOut();
   		return false;
   	});
});






//$(document).ready(function() {
/*Loading newest image to the slider
$(function() {
	var img = new Image();						
	$(img).load(function() {
		$(img).hide();
		$('#img').removeClass('loading').append(img);
		$(img).fadeIn('slow');
		
		//newest image slide-up description
		$('#img').hover(function(e) {
			$('#newest_info').hoverFlow(e.type, {bottom: 80} );
		}, function(e) {
			$('#newest_info').hoverFlow(e.type, {bottom: 0} );
		});

	}).attr('src', 'http://forde.ehost.pl/970/wp-content/themes/starkers/img/newest.jpg'); //the HARD CODED newest image link!
});

// main menu animation
$(function(){
var base = $('li.current_page_item').position().left;
$('#slide').stop().animate({ "left" : base }, 200);
});

$('li.page_item').hover(function() {
	var pos = $(this).position().left;
	$('#slide').stop().animate({ "left" : pos }, 200);
}, function() {
	var current = $('li.current_page_item').position().left;
	$('#slide').stop().animate({ "left" : current }, 200);
});


$(function() {
	$('.color img').animate({ "opacity" : 0 }, 10);
	$('.light img').animate({ "opacity" : 0 }, 10);
	
	$('.viewed img').animate({ "opacity" : 1 }, 10);
	
	//var pNr = $('li').val();
	//window.alert( $('li').val());

});
$('#p_1').hover(function(e){
		$('#p_c_1.not img').hoverFlow(e.type, {opacity: 1}, 300 );
		$('#p_i_1.not img').hoverFlow(e.type, {opacity: 1}, 300 );
	}, function(e) {
		$('#p_c_1.not img').hoverFlow(e.type, {opacity: 0}, 300 );
		$('#p_i_1.not img').hoverFlow(e.type, {opacity: 0}, 300 );
});
$('#p_2').hover(function(e){
		$('#p_c_2.not img').hoverFlow(e.type, {opacity: 1}, 300 );
		$('#p_i_2.not img').hoverFlow(e.type, {opacity: 1}, 300 );
	}, function(e) {
		$('#p_c_2.not img').hoverFlow(e.type, {opacity: 0}, 300 );
		$('#p_i_2.not img').hoverFlow(e.type, {opacity: 0}, 300 );
});
$('#p_3').hover(function(e){
		$('#p_c_3.not img').hoverFlow(e.type, {opacity: 1}, 300 );
		$('#p_i_3.not img').hoverFlow(e.type, {opacity: 1}, 300 );
	}, function(e) {
		$('#p_c_3.not img').hoverFlow(e.type, {opacity: 0}, 300 );
		$('#p_i_3.not img').hoverFlow(e.type, {opacity: 0}, 300 );
});*/








//});

