﻿$(document).ready(function() {
    $('#slider1')
  .anythingSlider({
      width: 305,
      height: 247,
      toggleControls: false,
      startStopped: false,
      delay: 7000,
      pauseOnHover: true,
      theme: 'metallic',
      navigationFormatter: function(i, panel) { // add thumbnails as navigation links
          return '<img src="images/' + ['', '', '', ''][i - 1] + '.jpg">';
      }
  })
    // target all images inside the current slider
    // replace with 'img.someclass' to target specific images
  .find('.panel:not(.cloned) img') // ignore the cloned panels
   .attr('rel', 'group')            // add all slider images to a colorbox group
   .colorbox({
       width: '610px',
       height: '494px',
       href: function() { return $(this).attr('src'); },
       // use $(this).attr('title') for specific image captions
       title: '',
       rel: 'group'
   });


   jQuery("a.zoom").fancybox({
       'overlayOpacity': 0.8,
       'zoomSpeedIn': 500,
       'zoomSpeedOut': 500
   });

   jQuery("a[rel=fotograflar]").fancybox({
       'overlayOpacity': 0.8,
       'zoomSpeedIn': 500,
       'zoomSpeedOut': 500
   });
   jQuery("a[rel=yilbasi]").fancybox({
       'overlayOpacity': 0.8,
       'zoomSpeedIn': 500,
       'zoomSpeedOut': 500
   });
   jQuery("a[rel=tasfirin]").fancybox({
       'overlayOpacity': 0.8,
       'zoomSpeedIn': 500,
       'zoomSpeedOut': 500
   });
 
});
