var trackOptions={loggingHREF:"",loggingURL:"",google:!1,touchclarity:!1,touchclarityHM:!1,eyeblaster:!1},HUKGoogleCode="UA-7971192-2",tcHMlookup=[];tcHMlookup["/"]="Home";tcHMlookup["/cars/"]="Home-Cars";tcHMlookup["/garden/"]="Home-Garden";tcHMlookup["/marine/"]="Home-Marine";tcHMlookup["/atv/"]="Home-ATV";tcHMlookup["/energy/"]="Home-Energy";var onShowroom=typeof showroom!=="undefined";updateLoggingVariables();$(document).ready(function(){bindDownloadPDF()});
function bindDownloadPDF(){$("#productNav .downloadpdf, #downloadBrochurePageLink .downloadpdf").unbind("click");$(".downloadpdf, .downloadBrochures a").click(function(){window.open($(this).attr("href"));doLogging($(this).attr("href"));return!1})}function updateLoggingVariables(a){if(!a)a=document.location;a=a.toString().toLowerCase();trackOptions.loggingURL=a.indexOf("http://")!=-1?"/"+a.split("/").slice(3).join("/"):a;trackOptions.loggingHREF=a}
function doLogging(a){updateLoggingVariables(a);trackOptions.touchclarity&&tc_log(trackOptions.loggingURL);trackOptions.touchclarityHM&&tc_heatmapping_log(trackOptions.loggingURL);trackOptions.eyeblaster&&eb_log(trackOptions.loggingHREF);trackOptions.google&&ga_log(trackOptions.loggingHREF)}$.ajax({url:"/_assets/behaviour/google/google.js",type:"GET",dataType:"script",cache:!0,success:function(){trackOptions.google=!0;ga_log()}});
function ga_log(a){var b=typeof showroom!=="undefined"?showroom.googleCode:HUKGoogleCode;try{_gat._getTracker(b)._trackPageview(a)}catch(c){}}typeof tc_logging_active=="undefined"&&(tc_logging_active=!0);tc_site_id=146;tc_server_url="honda.touchclarity.com";tc_log_path="/_assets/behaviour/touchclarity";
function tc_heatmapping_log(a){if((a=tcHMlookup[a])&&trackOptions.touchclarityHM)clickHeatSite="Honda-UK",clickHeatGroup=a,clickHeatServer="http://www.sophus3.co.uk/honda/hm/click.php",initClickHeat()}var tcUrl="logging.min.js";onShowroom?tcUrl="dwLogging.min.js":window.location.href.indexOf("/motorcycles/")>-1&&(tcUrl="mcLogging.min.js");
$.ajax({url:"/_assets/behaviour/touchclarity/"+tcUrl,type:"GET",dataType:"script",cache:!0,success:function(){trackOptions.touchclarity=!0;if(tcHMlookup[trackOptions.loggingURL])$.ajax({url:"/_assets/behaviour/touchclarity/hms3.js",type:"GET",dataType:"script",cache:!0,async:!1}),trackOptions.touchclarityHM=!0,tc_heatmapping_log(trackOptions.loggingURL);$.ajax({url:"http://sophus3.co.uk/s3q/honda/s3DropOffPopIN.js",type:"GET",dataType:"script",cache:!0});$.ajax({url:"http://honda-uk.active-e.sophus3.com/server.php?request=track&output=jcrpt&nse="+
Math.random(),type:"GET",dataType:"script",cache:!0})}});onShowroom||$.ajax({url:"/_assets/behaviour/eyeblaster/logging.js",type:"GET",dataType:"script",cache:!0,success:function(a){trackOptions.eyeblaster=!0;try{eb_log(trackOptions.loggingHREF)}catch(b){eval(a),eb_log(trackOptions.loggingHREF)}}});
