makefield='makesearch';rangefield='rangesearch';function jqInit(){$('.clue').cluetip({splitTitle:'|',tracking:true,sticky:false,closePosition:'bottom',width:320,dropShadow:false,positionBy:'mouse'});$('.clueh').cluetip({sticky:false,closePosition:'bottom',width:320});}$(document).ready(function(){if((screen.width<=1024)){$("link[rel=stylesheet]:last").attr({href:"/styles/smallscreen.css"});}$('#slideshow').cycle({fx:'fade',speed:'slow',timeout:6000,pager:'#slideshownav',pause:1});$('#nav a').click(function(){$('#slideshow').cycle('pause');});$('.opener a').click(function(){aa=$(this).parent().parent().parent().find('.infosnippet');xx=aa.is(":visible")if(xx){$(this).parent().parent().addClass("headingopened");$(this).html("Close");}else{$(this).parent().parent().removeClass("headingopened");$(this).html("View");}$(this).parent().parent().parent().find('.infosnippet').toggle(0);$(this).parent().parent().parent().find('.infocontent').toggle(0);});});function st(tab){for(i=0;i<10;i++){try{document.getElementById("tab"+i).style.display="none";}catch(e){}}document.getElementById("tab"+tab).style.display="block";}function getRanges(){doDataSet();if(document.getElementById(rangefield)){removeAllOptions(rangefield)}var make=gv(makefield);if(make!=0){execute('getNewCarListerRanges',vehicletype,type,make,0,datayear,datauser,datacountry,'',addblankoption,auctiondata,auctiondataS,populateRanges);}else{disable('rangesearch');}}function populateRanges(data){doDataSet();addOptions("rangesearch",data,"id","strrange");if(document.getElementById('rangesearch').options.length!=0){document.getElementById('rangesearch').disabled=false;}}function getQuote(which){document.getElementById('chosentype').value=which;document.getElementById('sendEmail').click();}
