$(document).ready(function(){
  $('a[rel^=lightbox]').colorbox({maxWidth:'1024',maxHeight:'800'})
  $('#customer-links a.email').colorbox({maxWidth:'1024',maxHeight:'800'});
  $('#menu > ul').superfish( {shadow:false});
  $('#link-newsletter').click(function(){
    $.fn.colorbox({href:'#newsletter', open:true, inline: true, width: "50%", height: "50%"});
    return false;
   });

		/*$(function(){
			$('#slider').slides({
				preload: true,
				generateNextPrev: true
			});
		});*/


$('#slider').slides({
      containerClick: false,         // Click container for next slide
      play:      4000,          // Set to positive number for auto start and interval time
      slidespeed:     0,           // Speed of slide animation
      fadespeed:      3000,           // Speed of fade animation
      effect:         'fade',
      hoverPause:    false 
    });

  // open registration in new window
  $('#entry-48>a').bind('click', function(){ window.open(this.href); return false; });

  // add rounded corners
//  $('#menu>ul>li>a').corner("top 5px cc:#fff");
  // $('#menu ul ul').corner("bottom 7px");
  // $('#searchform input').corner("4px cc:#9babb0");
});

