$(document).ready(function(){
                  $("a[rel^='lightbox']").prettyPhoto({
              				animationSpeed: 'fast', /* fast/slow/normal */
              				padding: 40, /* padding for each side of the picture */
              				opacity: 0.8, /* Value betwee 0 and 1 */
              				showTitle: true, /* true/false */
              				allowresize: false, /* true/false */
              				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
              				theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
              				hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
              				modal: false, /* If set to true, only the close button will close the window */
              				changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
              				callback: function(){} /* Called when prettyPhoto is closed */
			             });
			             
$(document).ready(function () {
        $('.qtip').each(function()
            {
                var rel = $(this).attr('rel');

                $(this).qtip(
                {
                    content: {

                    text: $('#' + rel)
                    },
                    position: {
                    corner: {
                        target: 'topMiddle',
                        tooltip: 'bottomMiddle'
                    }
                    },
                    style: {
                    tip: true,
                    border: {
                    width: 0.5,
                    radius: 5,
                    color: '#eeeeee'
                    },

                    background: 'transparent url(/media/image/i/dialog-bg.png) top center repeat-x'
                    }
                })
        });
});

$('[bubble]').tooltip({
                delay: 0,
                showURL: false,
                bodyHandler: function() {
                return $(this).attr('bubble');
                }
            });
        });

$(function () {
            $('.teaser-wrapper').before('<div id="thumbNav">')
            .cycle({
                fx:     'fade',
                speed:   1000,
                timeout: 8000,
                pause:   1,
                cleartypeNoBg:  true,
                pager:  '#thumbNav'
            });

        });

