/**
 * @author stefan
 */
window.addEvent('domready',function(){
    $$('img.thumbnail').each(function(thumb){
	    var tip_img_src = thumb.get('src').replace('/tn_','/');
	    var tip_img_alt = thumb.get('alt');
	    //thumb.store('tip:title', 'This is the Title');
	    thumb.store('tip:text', new Element('img',{'src':tip_img_src,'alt':tip_img_alt}) );
	
	    var SimpleTip = new Tips( thumb, {
	    	showDelay: 0,
	    	hideDelay: 0,
		    offsets: {x: 10, y: 10},
		    fixed: false
	    });
    });

    ReMooz.assign('.remooz', {
        'origin': 'img',
        //'shadow': 'onOpenEnd', // fx is faster because shadow appears after resize animation
        'shadow': 'onOpen', // fx is faster because shadow appears after resize animation
        'resizeFactor': 0.8, // resize to maximum 80% of screen size
        'cutOut': false, // don't hide the original
        'opacityResize': 0.4, // opaque resize
        'dragging': true, // disable dragging
        'centered': true // resize to center of the screen, not relative to the source element
    });

});