Mazda
  • TUSTIN MAZDA: (888) 319-3506
  • HUNTINGTON BEACH: (888) 717-4232
Info

Inventory

Sorry, no items matching your request were found.

Reset Search
var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; function setIframeStyle() { if(isMobile){ document.getElementById('myIframe').style.height='100%'; } } if(isMobile.any()) { document.addEventListener('DOMContentLoaded', function(){ var linksTarget = document.querySelectorAll('#btn_VvrWindow'); for (var i = 0; i < linksTarget.length; i++) { var img = document.createElement('img'); img.setAttribute('src',linksTarget[i].getAttribute('src')); var a = document.createElement('a'); a.setAttribute('href','#openModal'); a.setAttribute('data-url',linksTarget[i].getAttribute('data-url')); a.setAttribute('id','btn_VvrWindowLink_'+i); a.onclick = setIframeStyle; a.setAttribute('onclick','setIframeStyle()') a.appendChild(img); linksTarget[i].outerHTML += a.outerHTML; var elem = document.getElementById('btn_VvrWindow'); elem.parentNode.removeChild(elem); LinkTargetClick(document.getElementById('btn_VvrWindowLink_'+i)); } configFrame(window.innerWidth-10,window.innerHeight,true); }); }else{ /*Configuration at first*/ document.addEventListener('DOMContentLoaded', function(){ var Width = 910;//parseInt(linkTarget.getAttribute('data-targetwidth')); var Height = 715;//parseInt(linkTarget.getAttribute('data-targetheight')); //parameters var linksTarget = document.querySelectorAll('#btn_VvrWindow'); //linkTarget.setAttribute('href','#openModal'); // For eache vehicle for (var i = 0; i < linksTarget.length; i++) { var img = document.createElement('img'); img.setAttribute('src',linksTarget[i].getAttribute('src')); var a = document.createElement('a'); a.setAttribute('href','#openModal'); a.setAttribute('data-url',linksTarget[i].getAttribute('data-url')); a.setAttribute('id','btn_VvrWindowLink_'+i); a.appendChild(img); a.setAttribute('onclick','setIframeStyle()') linksTarget[i].outerHTML += a.outerHTML; var elem = document.getElementById('btn_VvrWindow'); elem.parentNode.removeChild(elem); LinkTargetClick(document.getElementById('btn_VvrWindowLink_'+i)); } configFrame(Width,Height,false); }); function wndsize(){ var w = 0;var h = 0; //IE if(!window.innerWidth){ if(!(document.documentElement.clientWidth == 0)){ //strict mode w = document.documentElement.clientWidth;h = document.documentElement.clientHeight; } else{ //quirks mode w = document.body.clientWidth;h = document.body.clientHeight; } } else { //w3c w = window.innerWidth;h = window.innerHeight; } return {width:w,height:h}; } document.onkeydown = function(evt) { evt = evt || window.event; if (evt.keyCode == 27) { document.getElementById('lnkClose').click(); } }; } //global function configFrame(Width,Height, isMobile){ // Create the