$(document).ready(function(){
    $("a.fancbox").fancybox({
  	 // $("a[rel='fancbox']").fancybox({
     overlayOpacity: 0.9
  	});
});
  	
    function popupWindow(){
  window.open('popup.php','popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=600,height=850')
}

	
function init_gallery(id){
  $(function() {
     $("#gallery_"+id+" .galleryListElement").jCarouselLite({
        speed: 1000,
        visible: 3,
         scroll: 3,
        btnNext: "#gallery_"+id+" .next",
        btnPrev: "#gallery_"+id+" .prev",
        vertical: false,
        circular:false
    });
  });
}
    
              sIFR.replaceElement("h2", "swf/2sifr.swf", "#FFFFFF", "#FFFFFF", "#FFFFFF", "#FFFFFF", 0, 0, 0, 0);
              
              /*
  sIFR.compatMode = true;
  sIFR.activate();
  
  sIFR.replace({
    selector: 'h2', 
    src: 'swf/2sifr.swf', 
    highsrc: 'swf/2sifr.swf',
    wmode: 'transparent',
    css: {
      '.sIFR-root' : {'color': '#FFFFFF', 'font-weight': 'normal'},
      'a': { 'text-decoration': 'none' },
      'a:link': { 'color': '#000000' },
      'a:hover': { 'color': '#CCCCCC' }
    },
    paddingTop: 20
  });                      */

