


function addEvent(elm, evType, fn, useCapture) {
  if (elm.addEventListener) {
    elm.addEventListener(evType, fn, useCapture);
    return true;
  } else if (elm.attachEvent) {
    var r = elm.attachEvent('on' + evType, fn);
    return r;
  }
  else {
    elm['on' + evType] = fn;
  }
}

function preventDefault(e) {
  if (e.preventDefault) {
      e.preventDefault();
  }

  try {
    e.returnValue = false;
  } catch (e) {
  }
}

function target(e) {
  var tmp;

  try {
    tmp = e.target;
    if (tmp != undefined) { return tmp; }
  } catch(e) {
  }

  try {
    tmp = e.srcElement;
    return tmp;
  } catch(e) {
  }

  return tmp;
}

var gc_foto_actual_1 = 0;
var gc_foto_1 ;
var total_fotos_1 = 0;
var img_id_1;

 

function cambiaFoto_1() {
  gc_foto_actual_1++;
  img_id_1.src = gc_foto_1[gc_foto_actual_1 % total_fotos_1];
}

 
function init() {
    img_id_1 = document.getElementById('fotos_concesionario_1');
  if (img_id_1) {
      gc_foto_1 = Array(1);
gc_foto_1[0] = 'http://www.vwcanarias.com/fotos/gc_imgs/' + 'phpo3XQkrQDwLwv' ;
    total_fotos_1 = 1 ;
 img_id_1.src = 'http://www.vwcanarias.com/fotos/gc_imgs/' + 'phpo3XQkrQDwLwv' ;
  			   }
			   
}
addEvent(window, 'load', init, false);
