﻿// Don't Touch
// Search box and mousover images
function replaceme(which,img) {
	which.src = img;
	}
	function restoreme(which,img) {
		which.src = img;
	}
	function searchBoxOn(){
		var divheight = 0;
		document.getElementById('myDiv').style.visibility = "visible";
		for (i = 0; i <= 55; i++){
		document.getElementById("myDiv").style.height= divheight + "px";
		divheight = i;
		}
	}
	function searchBoxHide(){
		var divheight = 55;
		for (i = 0; i >= divheight; i--){
		document.getElementById("myDiv").style.height= divheight + "px";
		divheight = i;
		}
		document.getElementById('myDiv').style.visibility = "hidden";
	}
	
// Drop down for 'What Are You Breaking'
// Don't Touch
function getUrl(op){
	for(var n=1;n<33;n++){
		if (op == n) {
			document.location.href="/what-are-you-breaking/" + ((n < 10) ? ("0" + n) : n) + "";
		}
	}
}

// Drop down for 'Ramco Ramfos Hammers'
// Ascending order...change the url listed for the product
function getUrlHammers (op){
	if (op == 01) {
    document.location.href="/store/products/ramco-ramfos-tf01";
	}
	if (op == 02) {
	document.location.href="/store/products/ramco-ramfos-tf02";
	}
	if (op == 03) {
    document.location.href="/store/products/ramco-ramfos-tf03";
	}
	if (op == 04) {
    document.location.href="/store/products/ramco-ramfos-tf04";
	}
	if (op == 05) {
    document.location.href="/store/products/ramco-ramfos-tf04h";
	}
	if (op == 06) {
    document.location.href="/store/products/ramco-ramfos-tf05";
	}
	if (op == 07) {
    document.location.href="/store/products/ramco-ramfos-tf06";
	}
	if (op == 08) {
    document.location.href="/store/products/ramco-ramfos-tf10";
	}
	if (op == 09) {
    document.location.href="/store/products/ramco-ramfos-tf14";
	}
	if (op == 10) {
    document.location.href="/store/products/ramco-ramfos-tf17";
	}
	if (op == 11) {
    document.location.href="/store/products/ramco-ramfos-tf20";
	}
	if (op == 12) {
    document.location.href="/store/products/ramco-ramfos-tf25";
	}
	if (op == 13) {
    document.location.href="/store/products/ramco-ramfos-tf30";
	}
	if (op == 14) {
    document.location.href="/store/products/ramco-ramfos-tf40";
	}
	if (op == 15) {
    document.location.href="/store/products/ramco-ramfos-tf50";
	}
	if (op == 16) {
    document.location.href="/store/products/ramco-ramfos-tf70";
	}
	if (op == 17) {
    document.location.href="/tool-style-sheet";
	}
}

// Drop down for 'OEM Compatible Tools'
// Ascending order...change the url listed for the product
// Default url is '/forms/112/ramco-sales-inquiry'
function getUrlOEM (op){
	if (op == 01) {
    document.location.href="/store/category/allied";
	}
	if (op == 02) {
	document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 03) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 04) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 05) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 06) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 07) {
    document.location.href="/store/category/bti-teledyne";
	}
	if (op == 08) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 09) {
    document.location.href="/store/category/caterpillar";
	}
	if (op == 10) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 11) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 12) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 13) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 14) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 15) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 16) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 17) {
    document.location.href="/store/category/furukawa-kent";
	}
	if (op == 18) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 19) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 20) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 21) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 22) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 23) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 24) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 25) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 26) {
    document.location.href="/store/category/indeco";
	}
	if (op == 27) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 28) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 29) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 30) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 31) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 32) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 33) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 34) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 35) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 36) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 37) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 38) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 39) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 40) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 41) {
    document.location.href="/store/category/nkp";
	}
	if (op == 42) {
    document.location.href="/store/category/okada";
	}
	if (op == 43) {
    document.location.href="/store/category/rammer";
	}
	if (op == 44) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 45) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 46) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 47) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 48) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 49) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 50) {
    document.location.href="/store/category/stanley";
	}
	if (op == 51) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 52) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 53) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 54) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 55) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
	if (op == 56) {
    document.location.href="/store/category/tramac";
	}
	if (op == 57) {
    document.location.href="/forms/112/ramco-sales-inquiry";
	}
}

// Drop down for 'What Are You Breaking' Page
// Ascending order...add or subtract products to display
// Hide and show products depending on the drop down selection
// Default is set to display 'block'(show all), set display to 'none' to hide product
function ShowReg(op) {
	var op = op;
	document.getElementById('Blunt').style.display='none';
  	document.getElementById('Chisel').style.display='none';
  	document.getElementById('Moil').style.display='none';
  	document.getElementById('Four').style.display='none';
  	document.getElementById('Bush').style.display='none';
  	document.getElementById('Slab').style.display='none';
  	document.getElementById('SlabPower').style.display='none';
  	document.getElementById('Sheet').style.display='none';
  	document.getElementById('Impact').style.display='none';
  	document.getElementById('Frost').style.display='none';
  	document.getElementById('Pipe').style.display='none';
  	document.getElementById('Asphalt').style.display='none';
  	document.getElementById('Bluntr').style.display='none';
  	document.getElementById('Chiselr').style.display='none';
  	document.getElementById('Moilr').style.display='none';
  	document.getElementById('Tamper').style.display='none';

	if (op == 00) {
    document.getElementById('Blunt').style.display='block';
  	document.getElementById('Chisel').style.display='block';
  	document.getElementById('Moil').style.display='block';
  	document.getElementById('Four').style.display='block';
  	document.getElementById('Bush').style.display='block';
  	document.getElementById('Slab').style.display='block';
  	document.getElementById('SlabPower').style.display='block';
  	document.getElementById('Sheet').style.display='block';
  	document.getElementById('Impact').style.display='block';
  	document.getElementById('Frost').style.display='block';
  	document.getElementById('Pipe').style.display='block';
  	document.getElementById('Asphalt').style.display='block';
  	document.getElementById('Bluntr').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
  	document.getElementById('Moilr').style.display='block';
  	document.getElementById('Tamper').style.display='block';
	}
	if (op == 01) {
    document.getElementById('Blunt').style.display='block';
    document.getElementById('Chisel').style.display='block';
    document.getElementById('Bluntr').style.display='block';
    document.getElementById('Chiselr').style.display='block';
	document.getElementById("2").selected = true;
	}
	if (op == 02) {
	document.getElementById('Blunt').style.display='block';
    document.getElementById('Chisel').style.display='block';
    document.getElementById('Bluntr').style.display='block';
    document.getElementById('Chiselr').style.display='block';
	document.getElementById("3").selected = true;
	}
	if (op == 03) {
    document.getElementById('Blunt').style.display='block';
    document.getElementById('Bluntr').style.display='block';
	document.getElementById("4").selected = true;
	}
	if (op == 04) {
    document.getElementById('Slab').style.display='block';
    document.getElementById('SlabPower').style.display='block';
	document.getElementById("5").selected = true;
	}
	if (op == 05) {
    document.getElementById('Chisel').style.display='block';
    document.getElementById('Chiselr').style.display='block';
	document.getElementById("6").selected = true;
	}
	if (op == 06) {
    document.getElementById('Chisel').style.display='block';
    document.getElementById('Chiselr').style.display='block';
	document.getElementById("7").selected = true;
	}
	if (op == 07) {
    document.getElementById('Moil').style.display='block';
  	document.getElementById('Moilr').style.display='block';
    document.getElementById('Four').style.display='block';
    document.getElementById('Bush').style.display='block';
    document.getElementById('Slab').style.display='block';
    document.getElementById('SlabPower').style.display='block';
	document.getElementById("8").selected = true;
	}
	if (op == 08) {
    document.getElementById('Moil').style.display='block';
  	document.getElementById('Moilr').style.display='block';
    document.getElementById('Four').style.display='block';
    document.getElementById('Bush').style.display='block';
    document.getElementById('Slab').style.display='block';
    document.getElementById('SlabPower').style.display='block';
	document.getElementById("9").selected = true;
	}
	if (op == 09) {
    document.getElementById('Slab').style.display='block';
    document.getElementById('SlabPower').style.display='block';
    document.getElementById('Sheet').style.display='block';
	document.getElementById("10").selected = true;
	}
	if (op == 10) {
    document.getElementById('Pipe').style.display='block';
	document.getElementById("11").selected = true;
	}
	if (op == 11) {
    document.getElementById('Pipe').style.display='block';
	document.getElementById("12").selected = true;
	}
	if (op == 12) {
    document.getElementById('Slab').style.display='block';
    document.getElementById('SlabPower').style.display='block';
	document.getElementById("13").selected = true;
	}
	if (op == 13) {
    document.getElementById('Frost').style.display='block';
	document.getElementById("14").selected = true;
	}
	if (op == 14) {
    document.getElementById('Blunt').style.display='block';
  	document.getElementById('Bluntr').style.display='block';
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
    document.getElementById('Moil').style.display='block';
  	document.getElementById('Moilr').style.display='block';
	document.getElementById("15").selected = true;
	}
	if (op == 15) {
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
	document.getElementById("16").selected = true;
	}
	if (op == 16) {
    document.getElementById('Pipe').style.display='block';
	document.getElementById("17").selected = true;
	}
	if (op == 17) {
    document.getElementById('Blunt').style.display='block';
  	document.getElementById('Bluntr').style.display='block';
	document.getElementById("18").selected = true;
	}
	if (op == 18) {
    document.getElementById('Blunt').style.display='block';
  	document.getElementById('Bluntr').style.display='block';
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
	document.getElementById("19").selected = true;
	}
	if (op == 19) {
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
	document.getElementById("20").selected = true;
	}
	if (op == 20) {
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
	document.getElementById("21").selected = true;
	}
	if (op == 21) {
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
	document.getElementById("22").selected = true;
	}
	if (op == 22) {
    document.getElementById('Blunt').style.display='block';
	document.getElementById("23").selected = true;
	}
	if (op == 23) {
    document.getElementById('Blunt').style.display='block';
  	document.getElementById('Bluntr').style.display='block';
	document.getElementById("24").selected = true;
	}
	if (op == 24) {
    document.getElementById('Impact').style.display='block';
	document.getElementById("25").selected = true;
	}
	if (op == 25) {
    document.getElementById('Sheet').style.display='block';
	document.getElementById("26").selected = true;
	}
	if (op == 26) {
    document.getElementById('Blunt').style.display='block';
  	document.getElementById('Bluntr').style.display='block';
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
	document.getElementById("27").selected = true;
	}
	if (op == 27) {
    document.getElementById('Blunt').style.display='block';
  	document.getElementById('Bluntr').style.display='block';
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
	document.getElementById("28").selected = true;
	}
	if (op == 28) {
    document.getElementById('Blunt').style.display='block';
  	document.getElementById('Bluntr').style.display='block';
	document.getElementById("29").selected = true;
	}
	if (op == 29) {
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
	document.getElementById("30").selected = true;
	}
	if (op == 30) {
    document.getElementById('Blunt').style.display='block';
  	document.getElementById('Bluntr').style.display='block';
	document.getElementById("31").selected = true;
	}
	if (op == 31) {
    document.getElementById('Impact').style.display='block';
	document.getElementById("32").selected = true;
	}
	if (op == 32) {
    document.getElementById('Chisel').style.display='block';
  	document.getElementById('Chiselr').style.display='block';
	document.getElementById("33").selected = true;
	}
}
