jQuery.noConflict();
jQuery(document).ready(function(){

  /* Mainmenu */
  jQuery('#mainmenu li:first').addClass('first-child');
  jQuery('#mainmenu li:last').addClass('last-child');
  jQuery('#mainmenu li').hover(function(){
      jQuery('ul:first',this).css('display', 'block');
  }, function(){
      jQuery('ul:first',this).css('display', 'none');
  });
  jQuery('#mainmenu li:has(ul)').find('a:first').append(' <span>&raquo;</span>');
  
  
  /* Homepage slider */
  jQuery('#homepage-slider .items').cycle({speed:700,timeout:5000,pager:'.nav',pause:true,pagerAnchorBuilder:function(idx,slide){return'<a></a>';}});
  
  /* FAncybox */
  jQuery('.gallery .gallery-item a').attr({'rel':'gallery-group'}).append('<span class="zoom pngfix"/>');
  jQuery('a:has(img)[href$=".bmp"],a:has(img)[href$=".gif"],a:has(img)[href$=".jpg"],a:has(img)[href$=".jpeg"],a:has(img)[href$=".png"],a:has(img)[href$=".BMP"],a:has(img)[href$=".GIF"],a:has(img)[href$=".JPG"],a:has(img)[href$=".JPEG"],a:has(img)[href$=".PNG"]').fancybox({'padding':1,'overlayColor':'#000'});


});
