//<![CDATA[

var cpcbiotech = {

  DOMready: function () {

    if ($("p[rel*='traccia-contatti']").length > 0) { cpcbiotech.TracciamentoAnalytics('inviata-modulo-informazioni-' + lingua + '.html') };
    if ($("p[rel*='traccia-info-prodotto']").length > 0) { cpcbiotech.TracciamentoAnalytics('inviata-modulo-informazioni-prodotto-' + lingua + '.html') };    
    if ($('.slideshow').length > 0) { cpcbiotech.slideshow() };
    if ($(".AbannerHome").length > 0) { cpcbiotech.AbannerHome() };
    if ($('.popUp').length > 0) { cpcbiotech.popUp() };
	if ($('.gallery').length > 0) { cpcbiotech.gallery() };
    if ($('.popUpInfo').length > 0) { cpcbiotech.popUpInfo() };
    
  }, // fine DOMReady

  slideshow: function () {
    $('.slideshow').cycle({
      fx: 'fade'
      //speed:  2500
    });
  }, /* fine Aslishow */

  AbannerHome: function () {
    $('.bannerHome').flash({
      swf: 'http://www.cpcbiotech.it/swf/lactomator.swf',
      height: 307,
      width: 321
    });
  }, /* fine AbannerHome */

  popUp: function () {
    $(".popUp").fancybox({
      'width': 700,
      'height': 500,
      'autoScale': false,
      'transitionIn': 'none',
      'transitionOut': 'none',
      'type': 'iframe'
    });

  }, // fine popup
  
   gallery: function () {
    $(".gallery li a").fancybox();

  }, // fine popup

  popUpInfo: function () {
    $(".popUpInfo").fancybox({
      'width': 600,
      'height': 600,
      'autoScale': false,
      'transitionIn': 'none',
      'transitionOut': 'none',
      'type': 'iframe'
    });
  },

  TracciamentoAnalytics: function (pagina) {
    try {
      var pageTracker = _gat._getTracker('UA-23979815-1');
      pageTracker._trackPageview(pagina);
    }
    catch (err) { }
  }

} // chiusura classe cpcbiotech

$(document).ready(function () { cpcbiotech.DOMready() });
//]]>
