// common js file for Vehicles section // This should contain js functions specific to the vehicles section to // minimise in-page js functions and also keep the js files to a manageable size // FUNCTION LIST // launchFeature() // showFeature() function launchFeature(pageURL) { // window.open(pageURL,"feature","scrollbars=auto,width=350,height=300"); popWindow(pageURL, "feature", 350, 300, 2, 0, 0); } function launchPrint(pageURL) { popWindow(pageURL, "print", 457, 520, 1, 0, 0); } function showFeature(column,feature) { var panel = document.getElementById("col"+column+"featurepanel"+feature); var divSet = document.getElementsByTagName("DIV"); for (var divNo=0;divNo!=divSet.length-1;divNo++) { if (divSet[divNo]!=panel) { if (divSet[divNo].id.match("col"+column+"featurepanel")) { divSet[divNo].style.display="none"; } } } panel.style.display="block"; } function popEmail(url) { popWindow("/home/vehicles/emailafriend/index.html?emailurl="+url, "email", 478, 473, 1, 0, 0); } function popPluginHelp() { popWindow("/home/vehicles/plugin.html","nissanplugin", 460, 250, 1, 0, 0) } function launchSpecialEdition(url){ popWindow(url, "bodypopup", 440, 400, 1, 0, 0); } function launchGradesAndPricesPopup(url, windowname){ popWindow(url, windowname, 459, 560, 1, 0, 0); }