// JavaScript Document

<!--

//**********Disable Right Click******************
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 


//**************Right Side Adds *********************
function rotateads(ad1,ad2,ad3,ad4,ad5) {

availimages = new Array()
	availimages["sg"] = 'http://www.mileagepros.com/mpsjpgs/rightads/scangaugeII.jpg'
	availimages["kiwi"] = 'http://www.mileagepros.com/mpsjpgs/rightads/gopro1.jpg'
	availimages["xm"] = 'http://www.mileagepros.com/mpsjpgs/rightads/xmount.jpg'
	availimages["sgc"] = 'http://www.mileagepros.com/mpsjpgs/rightads/scangaugeIIcable.jpg'
	availimages["dh"] = 'http://www.mileagepros.com/mpsjpgs/rightads/dashhawk.jpg'
	availimages["mpz"] = 'http://www.mileagepros.com/mpsjpgs/rightads/mpzfrictionreducer.jpg '
	availimages["knn"] = 'http://www.mileagepros.com/mpsjpgs/rightads/knn.jpg'
	availimages["gp7"] = 'http://www.mileagepros.com/mpsjpgs/rightads/gp7.jpg'
	
availurls = new Array()
	availurls["sg"] = 'http://www.mileagepros.com/products/scangauge/'
	availurls["kiwi"] = 'http://www.mileagepros.com/products/gopro/'
	availurls["xm"] = 'http://www.mileagepros.com/products/scangauge/xmount/'
	availurls["sgc"] = 'http://www.mileagepros.com/products/scangauge/sgcable.php'
	availurls["dh"] = 'http://www.mileagepros.com/products/msd/dashhawk/'
	availurls["mpz"] = 'http://www.mileagepros.com/products/torco/frictionreducer.php'
	availurls["knn"] = 'http://www.mileagepros.com/products/knn/'
	availurls["gp7"] = 'http://www.mileagepros.com/products/torco/gp7.php'

adImages = new Array(availimages[ad1],availimages[ad2],availimages[ad3],availimages[ad4],availimages[ad5])
adUrl = new Array(availurls[ad1],availurls[ad2],availurls[ad3],availurls[ad4],availurls[ad5])
rotate()
}
	
	thisAd = 0
	imgCt = 5/*adImages.length*/
	
	function rotate() {
		if (document.images) {
			thisAd++
			if (thisAd == imgCt) {
				thisAd = 0
			}
			document.adbanner.src=adImages[thisAd]
			setTimeout("rotate()",5*1000)
		}
	}
	
	function newLocation() {
		document.location.href = adUrl[thisAd]
	}
	
if (document.images) {
	addon = new Image
	addoff = new Image
	addon.src = "http://www.mileagepros.com/mpsjpgs/cart/addtocart_on.jpg"
	addoff.src = "http://www.mileagepros.com/mpsjpgs/cart/addtocart_off.jpg"
	}
else {
	addon = ""
	addoff = ""
}