//[(#REM) Inclure le code Google analytics - 28 juin 2011]

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1017958-6']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


//[(#REM) Suivi liens sortants par Google analytics - 29 juin 2011]
//[(#REM) marche pas ?? :  http://www.google.com/support/analyticshelp/bin/answer.py?hl=fr&answer=1136920]
//[(#REM) devrait marcher : http://www.seomix.fr/webmarketing/webanalytics/lien-externe-google-analytics/]
if(typeof jQuery == 'function') {
 jQuery(function () {
 jQuery('a:not([href*="' + document.domain + '"])').click(function () {
 _gaq.push(['_trackEvent', 'clic-sortie', 'sortie vers ' + jQuery(this).attr('href')]);
 });
 });
}
else {
 window.onload = function () {
 var links = document.getElementsByTagName('a');for (var x=0; x < links.length; x++) {links[x].onclick = function () {
 var mydomain = new RegExp(document.domain, 'i');
 if(!mydomain.test(this.getAttribute('href'))) {
 _gaq.push(['_trackEvent', 'clic-sortie', 'sortie vers ' + jQuery(this).attr('href')]);
 }};
 }};
}

//[(#REM) Script par Mestickets pour rech complète hors billetterie ]
function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

//[(#REM) Script à insérer si habillage avec background cliquable - 7 oct 2011]
/**Script à insérer si background cliquable 
//Définit un lien vers la page de destination et rend le reste du site (id=page) non cliquable
// Finalement inutile car autre technique depuis février 2012

window.onload = function(){
   document.getElementById('habillage').onclick = function(e){
      window.location = 'http://www.mestickets.com/';	  
	  
   };
   document.getElementById('page').onclick = function(e){
      if(!e) e = window.event;
      e.returnValue = false;
      e.cancelBubble = true;
      return false;
   };
 };
 */
