$(document).ready(function(){

	//TOOLTIP
    
$('.sizes a').each(function()
   {    
   
    $(this).qtip({        
       content: {
          url: 'http://www.flowerlover.eu/en/productdata',
          data: { 
              typ: $('#typ').attr('content'),
              id: $(this).attr('content')
          },
          method: 'post'
       },

        position: {
        corner: {
          target: 'rightTop',
          tooltip: 'leftTop' 
        },
        adjust: { y: 10 } 
        },
       style: {  
        tip: { 
        corner: 'leftTop',
        size: 	{x:15,y:15}
        },
        border: {
          radius: 0,
          width: 1,
          color: '#b6cde6'
     },
        width: 250,
        background: '#d8e7f7',
        color: '#5c83a0'
    }
    });
    
 });
    
    //SLIDESHOW
    
        $('#slideshow').cycle({
         fx:     'scrollHorz',

                speed:  'slow',
                timeout: 10000,
                pager:  '#nav-img', 
                prev:   '#prev', 
                next:   '#next', 
                pagerAnchorBuilder: function(idx, slide) {
                    // return sel string for existing anchor
                    return '#nav-img li:eq(' + (idx) + ') a';
                }
            });

            $('#direct').click(function() {
                $('#nav-img li:eq(2) a').triggerHandler('click');
                return false;
            });
            
    //COLORBOX

    $("a[class='zoom']").colorbox({

      current: "Obrazek {current} z {total}"

    });            
                        
            
            
            
		
});

