
    jQuery.noConflict();
    jQuery(function() {
        jQuery('#categories a.photo').lightBox();
             jQuery('#kompozycje a.preview').lightBox(); 
    });
    this.imagePreview = function(){	
		
		xOffset = 240;
		yOffset = 30;
		
	jQuery("a.preview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		jQuery("body").append("<p id='preview'><img src='"+ this.href +"' alt='Galeria Sliwinski' />"+ c +"</p>");								 
		jQuery("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		jQuery("#preview").remove();
    });	
	jQuery("a.preview").mousemove(function(e){
		jQuery("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


jQuery(document).ready(function() {
	jQuery("img.foto_podmien").bind("click", function() {
		jQuery("#replace_img").attr("src", this.alt);
		// $('#photos').css('background', 'url('+this.alt+')');
	});

	imagePreview();
});
 


